/* ═══════════════════════════════════════════════════════════════
   Formación continuada de auditores
   /auditoria/hacerse-auditor-de-cuentas/formacion-continuada
   Figma node 22889:76906
   ═══════════════════════════════════════════════════════════════ */

.fc-hero {
  position: relative;
  width: 100%;
  height: 288px;
  overflow: hidden;
  background: #0a0a0a;
}

.fc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/figma/formacion-continuada-detail-hero.webp');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 36%;
  z-index: 0;
}

.fc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.fc-hero__container {
  position: relative;
  z-index: 2;
  width: 1280px;
  max-width: calc(100% - 48px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.fc-hero__content {
  width: 100%;
  max-width: 1152px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fc-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.fc-breadcrumb__link,
.fc-breadcrumb__current {
  color: #fafafa;
  text-decoration: none;
  white-space: nowrap;
}

.fc-breadcrumb__link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.fc-breadcrumb__sep {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.fc-breadcrumb__sep path {
  stroke: #fafafa;
}

.fc-hero__title {
  width: 100%;
  margin: 0;
  color: #fafafa;
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
}

.fc-page {
  width: 100%;
  background: #ffffff;
}

.fc-page__container {
  width: 1280px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 64px 0;
}

.fc-notice {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.fc-notice__icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.fc-notice__icon-wrap svg {
  width: 20px;
  height: 20px;
}

.fc-notice__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fc-notice__eyebrow {
  margin: 0;
  color: #b91c1c;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.fc-notice__title {
  margin: 0;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
}

.fc-notice__text {
  max-width: 876px;
  margin: 0;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}

.fc-notice__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  height: 36px;
  padding: 8px 16px;
  background: #172554;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #fafafa;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.fc-notice__button svg {
  width: 16px;
  height: 16px;
}

.fc-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.fc-topbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  width: 157px;
  padding: 8px 16px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.fc-topbar__btn svg {
  width: 16px;
  height: 16px;
}

.fc-topbar__select-wrap,
.fc-sidebar__select-wrap {
  position: relative;
}

.fc-topbar__select-wrap {
  width: 210px;
  height: 36px;
}

.fc-topbar__select,
.fc-sidebar__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #525252;
}

.fc-topbar__select {
  width: 100%;
  height: 100%;
  padding: 8px 32px 8px 12px;
}

.fc-topbar__chevron,
.fc-sidebar__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #525252;
  pointer-events: none;
}

.fc-separator {
  width: 100%;
  height: 0;
  margin-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.fc-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-top: 16px;
}

.fc-sidebar {
  width: 305px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.fc-sidebar__header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-sidebar__title {
  margin: 0;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.fc-sidebar__field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-sidebar__label {
  margin: 0;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.fc-sidebar__select-wrap {
  width: 100%;
  height: 36px;
}

.fc-sidebar__select {
  width: 100%;
  height: 100%;
  padding: 8px 36px 8px 12px;
}

.fc-sidebar__btn-search {
  width: 100%;
  height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: #b91c1c;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #fafafa;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.fc-sidebar__btn-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 148px;
  height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.fc-sidebar__btn-clear svg {
  width: 16px;
  height: 16px;
}

.fc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fc-panel {
  width: 955px;
  max-width: 100%;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
}

.fc-table {
  width: 915px;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Inter', sans-serif;
}

.fc-table--three col:nth-child(1) { width: 605px; }
.fc-table--three col:nth-child(2) { width: 116px; }
.fc-table--three col:nth-child(3) { width: 194px; }

.fc-table__head {
  height: 40px;
  padding: 0 8px;
  border-bottom: 1px solid #e5e5e5;
  color: #525252;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
}

.fc-table__head--right {
  text-align: right;
}

.fc-table__cell {
  height: 52px;
  padding: 0 8px;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  vertical-align: middle;
  border-bottom: 1px solid #e5e5e5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-table tbody tr:last-child .fc-table__cell {
  border-bottom: 0;
}

.fc-table__cell--strong {
  font-weight: 500;
}

.fc-table__cell--actions {
  text-align: right;
}

.fc-table--three th:nth-child(1),
.fc-table--three td:nth-child(1) { width: 605px; }
.fc-table--three th:nth-child(2),
.fc-table--three td:nth-child(2) { width: 116px; }
.fc-table--three th:nth-child(3),
.fc-table--three td:nth-child(3) { width: 194px; }

.fc-table--two th:nth-child(1),
.fc-table--two td:nth-child(1) { width: 721px; }
.fc-table--two th:nth-child(2),
.fc-table--two td:nth-child(2) { width: 194px; }

.fc-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #0a0a0a;
  text-decoration: none;
}

.fc-icon-button svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1024px) {
  .fc-hero {
    height: auto;
    min-height: 220px;
    padding: 40px 0;
  }

  .fc-layout {
    flex-direction: column;
  }

  .fc-sidebar,
  .fc-main,
  .fc-panel {
    width: 100%;
  }

  .fc-sidebar {
    align-items: stretch;
  }

  .fc-sidebar__btn-clear {
    width: 100%;
  }

  .fc-panel {
    overflow-x: auto;
  }

  .fc-table {
    min-width: 915px;
  }
}

@media (max-width: 768px) {
  .fc-hero__title {
    font-size: 28px;
    line-height: 34px;
  }

  .fc-notice,
  .fc-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-topbar__btn,
  .fc-topbar__select-wrap,
  .fc-notice__button {
    width: 100%;
  }
}

/* ===== Action Buttons in Hero (AUD_044) ===== */
.normativa-btn-edit,
.normativa-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.normativa-btn-edit {
  background-color: #b91c1c !important;
  color: #fafafa !important;
}

.normativa-btn-edit:hover {
  background-color: #991b1b !important;
}

.normativa-btn-add {
  background-color: #1e3a8a !important;
  color: #fafafa !important;
}

.normativa-btn-add:hover {
  background-color: #1e40af !important;
}

/* ===== Card Grid View Mode ===== */
.fc-table--grid,
.fc-table--grid thead,
.fc-table--grid tbody,
.fc-table--grid tr,
.fc-table--grid td {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.fc-table--grid thead {
  display: none !important;
}

.fc-table--grid tbody {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
}

.fc-table--grid tr {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  height: 100% !important;
  min-height: 130px !important;
  margin: 0 !important;
}

.fc-table--grid td {
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.fc-table--grid .fc-table__cell--strong {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  color: #0a0a0a !important;
  margin-bottom: 8px !important;
}

.fc-table--grid td:not(.fc-table__cell--strong):not(.fc-table__cell--actions) {
  font-size: 13px !important;
  color: #64748b !important;
  margin-bottom: 12px !important;
}

.fc-table--grid .fc-table__cell--actions {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
}

/* Ocultar el pie de acciones cuando la tarjeta no tiene botón de descarga
   (p. ej. documentos sin archivo adjunto), para que no quede un hueco vacío. */
.fc-table--grid .fc-table__cell--actions:empty {
  display: none !important;
  border-top: 0 !important;
  padding-top: 0 !important;
}

