@charset "UTF-8";
/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
/*
 * Mapa de clases y overrides tipográficos
 * - .text-muted: aplica el color de texto secundario del sistema visual ETCF.
 * - .bg__pagina: establece el fondo base de página compartido.
 * - Overrides globales: body, headings, .display-1 a .display-6, enlaces y controles de formulario.
 *   Unifican fuentes, color de tinta, suavizado y jerarquía tipográfica.
 */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap");
/* Google font import: Playfair Display for the home description experiment */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap");
/*
 * Mapa del archivo
 * - Este partial no define clases CSS propias.
 * - Centraliza variables de color, fondos, tarjetas y tokens base del tema.
 * - Sirve como fuente de verdad para los partiales que consumen la paleta ETCF.
 */
/**** Variables ****/
/* $secondary:#660000;
$success:#660000;
$info:#660000;
$warning:#660000;
$danger:#660000; */
/* Backgroud de las cards*/
/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
:root {
  --etcf-page-bg: #f8f1e7;
  --etcf-surface: rgba(255, 250, 243, 0.84);
  --etcf-surface-strong: rgba(255, 253, 248, 0.96);
  --etcf-ink: #1e2624;
  --etcf-muted: #66706b;
  --etcf-line: rgba(44, 53, 49, 0.12);
  --etcf-accent: #b78852;
  --etcf-accent-strong: #9b6c3f;
  --etcf-forest: #234640;
  --etcf-forest-strong: #1b3632;
  --etcf-shadow: 0 24px 45px rgba(87, 63, 39, 0.1);
  --etcf-radius-xl: 2rem;
  --etcf-radius-lg: 1.35rem;
  --etcf-radius-md: 1rem;
}

body {
  background: var(--etcf-page-bg);
  color: var(--etcf-ink);
  font-family: "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p,
li,
a,
span,
small,
label,
input,
textarea,
select,
button {
  font-family: "Manrope", sans-serif;
}

a {
  color: var(--etcf-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover {
  color: var(--etcf-accent-strong);
}

.text-muted {
  color: var(--etcf-muted) !important;
}

.bg__pagina,
.page-bg {
  background-color: var(--etcf-page-bg);
}

/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
/*
 * Mapa de clases del sistema de botones e interacción
 * - .btn: botón base ETCF con gradiente, borde dorado y microinteracciones.
 * - .btn-sm: variante compacta del botón base.
 * - .btn-etcf-primary: CTA principal con acabado premium ETCF.
 * - .btn-etcf-ghost: botón fantasma para acciones secundarias con presencia visual.
 * - .btn-etcf-danger: botón de acciones destructivas adaptado al tema ETCF.
 * - .btn-etcf-gold-border: utilidad para remarcar botones con borde dorado.
 * - Overrides Bootstrap: .btn-primary, .btn-outline-primary, .btn-secondary,
 *   .btn-dark, .btn-danger, .btn-light, .page-link, .pagination, .alert-primary,
 *   .nav-tabs, .nav-pills, .dropdown-item.active, .text-primary, .bg-primary,
 *   .text-bg-primary y badges relacionados.
 */
/* Botón base reutilizable en todo el proyecto. */
.btn {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border: 1px solid rgba(244, 221, 187, 0.48);
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(20, 35, 33, 0.18);
  color: #fffaf4;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.35rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:hover {
  background: linear-gradient(180deg, rgba(33, 69, 64, 0.98), rgba(27, 56, 52, 0.98));
  border-color: rgba(244, 221, 187, 0.8);
  color: #fffdf9;
  transform: translateY(-1px);
}
.btn:focus, .btn:active {
  background: linear-gradient(180deg, rgba(33, 69, 64, 0.98), rgba(27, 56, 52, 0.98));
  border-color: rgba(244, 221, 187, 0.8);
  color: #fffdf9;
}
.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(183, 136, 82, 0.24);
}

/* Variante compacta del botón base. */
.btn-sm {
  padding: 0.56rem 1rem;
}

/* Variante primaria propia del sistema ETCF. */
.btn-etcf-primary {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border: 1px solid rgba(244, 221, 187, 0.48);
  box-shadow: 0 16px 28px rgba(20, 35, 33, 0.2);
  color: #fffaf4;
}
.btn-etcf-primary:hover, .btn-etcf-primary:focus {
  background: linear-gradient(180deg, rgba(33, 69, 64, 0.98), rgba(27, 56, 52, 0.98));
  border-color: rgba(244, 221, 187, 0.8);
  color: #fffdf9;
}

/* Override conjunto de variantes Bootstrap para unificarlas con el tema visual. */
.btn-primary,
.btn-outline-primary,
.btn-secondary,
.btn-outline-secondary,
.btn-dark,
.btn-outline-dark,
.btn-danger,
.btn-outline-danger,
.btn-outline-light,
.btn-light,
.btn-etcf-ghost,
.btn-etcf-danger {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border: 1px solid rgba(244, 221, 187, 0.48);
  box-shadow: 0 16px 28px rgba(20, 35, 33, 0.16);
  color: #fffaf4;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active,
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-etcf-ghost:hover,
.btn-etcf-ghost:focus,
.btn-etcf-ghost:active,
.btn-etcf-danger:hover,
.btn-etcf-danger:focus,
.btn-etcf-danger:active {
  background: linear-gradient(180deg, rgba(33, 69, 64, 0.98), rgba(27, 56, 52, 0.98));
  border-color: rgba(244, 221, 187, 0.8);
  color: #fffdf9;
}

/* Estado activo de botones outline primarios. */
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border-color: rgba(244, 221, 187, 0.8);
  box-shadow: 0 16px 28px rgba(20, 35, 33, 0.16);
  color: #fffaf4;
}

/* Override de color de enlaces y textos primarios Bootstrap. */
.text-primary,
.link-primary {
  color: #234640 !important;
}

.link-primary:hover,
.link-primary:focus {
  color: #9b6c3f !important;
}

/* Fondo primario temático para backgrounds y badges. */
.bg-primary,
.text-bg-primary {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98)) !important;
  color: #fffaf4 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.badge.text-bg-primary,
.badge.bg-primary {
  box-shadow: 0 10px 20px rgba(20, 35, 33, 0.14);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Navegación paginada: separaciones y aspecto de enlaces. */
.pagination {
  gap: 0.2rem;
}

.page-link {
  background: rgba(255, 250, 243, 0.92);
  border: 1px solid rgba(29, 61, 57, 0.18);
  color: #234640;
  box-shadow: 0 8px 16px rgba(20, 35, 33, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.page-link:hover, .page-link:focus {
  background: rgba(29, 61, 57, 0.08);
  border-color: rgba(29, 61, 57, 0.32);
  box-shadow: 0 12px 22px rgba(20, 35, 33, 0.1);
  color: #234640;
}
.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 61, 57, 0.18);
}

/* Estado activo e inactivo de la paginación. */
.page-item.active .page-link {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border-color: rgba(244, 221, 187, 0.42);
  color: #fffaf4;
  box-shadow: 0 14px 26px rgba(20, 35, 33, 0.16);
}

.page-item.disabled .page-link {
  background: rgba(255, 250, 243, 0.72);
  border-color: rgba(29, 61, 57, 0.1);
  color: rgba(29, 61, 57, 0.42);
}

/* Override de alerta primaria Bootstrap. */
.alert-primary {
  background: rgba(29, 61, 57, 0.1);
  border-color: rgba(29, 61, 57, 0.22);
  color: #234640;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Overrides de tabs y pills para navegación secundaria. */
.nav-tabs {
  border-bottom-color: rgba(29, 61, 57, 0.16);
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
  color: #234640;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus,
.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
  color: #9b6c3f;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: rgba(29, 61, 57, 0.14) rgba(29, 61, 57, 0.14) rgba(29, 61, 57, 0.16);
  background: rgba(29, 61, 57, 0.05);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border-color: rgba(244, 221, 187, 0.36);
  box-shadow: 0 12px 24px rgba(20, 35, 33, 0.12);
  color: #fffaf4;
}

.dropdown-item.active,
.dropdown-item:active,
.list-group-item.active {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border-color: rgba(244, 221, 187, 0.36);
  color: #fffaf4;
}

.dropdown-item.active,
.dropdown-item:active {
  border-radius: 0.8rem;
}

/* Botón fantasma para acciones secundarias visibles. */
.btn-etcf-ghost {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border: 1px solid rgba(244, 221, 187, 0.48);
  color: #fffaf4;
  backdrop-filter: blur(8px);
}
.btn-etcf-ghost:hover, .btn-etcf-ghost:focus {
  background: linear-gradient(180deg, rgba(33, 69, 64, 0.98), rgba(27, 56, 52, 0.98));
  border-color: rgba(244, 221, 187, 0.8);
  color: #fffdf9;
}

/* Botón de acciones sensibles con estilo ETCF. */
.btn-etcf-danger {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border: 1px solid rgba(244, 221, 187, 0.48);
  color: #fffaf4;
}
.btn-etcf-danger:hover, .btn-etcf-danger:focus {
  background: linear-gradient(180deg, rgba(33, 69, 64, 0.98), rgba(27, 56, 52, 0.98));
  border-color: rgba(244, 221, 187, 0.8);
  color: #fffdf9;
}

/* Utilidad para reforzar el borde dorado del botón. */
.btn-etcf-gold-border {
  border-color: rgba(244, 221, 187, 0.48) !important;
}
.btn-etcf-gold-border:hover, .btn-etcf-gold-border:focus, .btn-etcf-gold-border:active {
  border-color: rgba(244, 221, 187, 0.8) !important;
}

.tooltip-dark .tooltip-inner {
  background-color: #000;
  color: #fff;
}
.tooltip-dark .tooltip-arrow::before {
  border-top-color: #000;
}

.tooltip.tooltip-etcf {
  --bs-tooltip-bg: #000;
  --bs-tooltip-color: #fff;
  --bs-tooltip-opacity: 1;
}
.tooltip.tooltip-etcf .tooltip-inner {
  color: #fff;
  background-color: #000;
}

/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
/*
* Mapa de clases del sistema de tarjetas
* - .card__image: imagen cabecera genÃ©rica para tarjetas.
* - .card__home: tarjeta principal del home con layout en dos zonas y hover elevado.
* - .card__home__image: imagen interna con recorte y zoom al pasar el cursor.
* - .card__home__content: contenedor vertical del contenido de la tarjeta.
* - .card__home__body: cuerpo textual con gradiente oscuro y separaciÃ³n interna.
* - .card__home__title / .card__home__title-link: tÃ­tulo y enlace principal de la tarjeta.
* - .card__subtitle: subtÃ­tulo corto en mayÃºsculas para categorizar contenido.
* - .card__text: extracto resumido truncado en varias lÃ­neas.
* - .card__home__meta: bloque de metadatos secundarios.
* - .card__footer: pie con acciones, fecha y estado.
* - .card__home__date: fecha visible en el footer.
* - .card__home__status: fila de estados o etiquetas.
* - .card__status-badge y modificadores: pÃ­ldoras visuales para estados del contenido.
* - .card__home__resources / .card__resource-pill: lista de recursos asociados.
* - .card__home__meta--content / .card__home__meta--dense: modificador denso para metadatos editoriales.
* - .card__footer--content / .card__action-group: organizan acciones y pie extendido.
* - .card__home--articles / .card__home--content / .card__home--compact / .card__home--plans:
*   variantes por contexto de uso.
*/
/* Imagen superior genÃ©rica de una card. */
.card__image {
  border-top-left-radius: var(--bs-card-border-radius);
  border-top-right-radius: var(--bs-card-border-radius);
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Card principal del home y de listados enriquecidos. */
.card__home {
  background: rgba(255, 251, 245, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.6rem;
  box-shadow: 0 24px 45px rgba(87, 63, 39, 0.1);
  display: grid;
  height: 100%;
  min-height: 30rem;
  grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  will-change: transform;
}
.card__home:hover {
  box-shadow: 0 28px 48px rgba(87, 63, 39, 0.14);
  transform: translateY(-6px);
}
.card__home .card__home__image {
  display: block;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.55s ease;
  width: 100%;
}
.card__home:hover .card__home__image {
  transform: scale(1.05);
}
.card__home .card__home__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.card__home .card__home__body {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  color: #f8f1e7;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.8rem 0.95rem 0.35rem;
  min-height: 0;
}
.card__home .card__home__title {
  color: #e0b87d;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.card__home .card__home__title-link {
  color: inherit;
  text-decoration: none;
}
.card__home .card__home__title-link:hover, .card__home .card__home__title-link:focus {
  color: #f4ddbb;
}
.card__home .card__subtitle {
  color: rgba(248, 241, 231, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}
.card__home .card__text {
  color: rgba(248, 241, 231, 0.92);
  display: -webkit-box;
  font-size: 0.86rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-align: left;
}
.card__home .card__home__meta {
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.1rem;
}
.card__home .card__home__meta--content,
.card__home .card__home__meta--dense {
  margin-top: 0.1rem;
}
.card__home .card__home__meta--content > div,
.card__home .card__home__meta--dense > div {
  font-size: 0.75rem;
}
.card__home .card__home__meta > div {
  align-items: center;
  color: rgba(248, 241, 231, 0.88);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.77rem;
  gap: 0.38rem;
}
.card__home .card__home__meta > div i {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fffaf4 !important;
  display: inline-flex;
  height: 1.45rem;
  justify-content: center;
  width: 1.45rem;
}
.card__home .card__footer {
  align-items: center;
  background: linear-gradient(180deg, rgba(24, 50, 47, 0.98), rgba(24, 50, 47, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #66706b;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0 1rem 0.75rem;
  flex: 0 0 auto;
}
.card__home .card__home__date {
  color: rgba(248, 241, 231, 0.76);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card__home .card__home__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.card__home .card__status-badge {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.6rem;
  text-decoration: none;
  text-transform: uppercase;
}
.card__home .card__status-badge[hx-get] {
  cursor: pointer;
}
.card__home .card__status-badge[hx-get]:hover {
  filter: brightness(1.15);
}
.card__home .card__status-badge--active,
.card__home .card__status-badge--public {
  background: rgba(255, 255, 255, 0.12);
  color: #f8f1e7;
}
.card__home .card__status-badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 241, 231, 0.82);
}
.card__home .card__status-badge--private {
  background: rgba(224, 184, 125, 0.16);
  color: #f4ddbb;
}
.card__home .card__home__resources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.card__home .card__resource-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(248, 241, 231, 0.9);
  display: inline-flex;
  font-size: 0.72rem;
  gap: 0.35rem;
  padding: 0.28rem 0.58rem;
}
.card__home .card__footer--content {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.55rem;
}
.card__home .card__action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: 100%;
}
.card__home .card__action-group .btn {
  padding: 0.5rem 0.9rem;
}
.card__home .card__excerpt-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: rgba(248, 241, 231, 0.9);
  padding: 0.8rem 0.9rem;
}
.card__home .card__excerpt-label {
  color: #e0b87d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.card__home .card__excerpt-text {
  font-size: 0.82rem;
  line-height: 1.55;
}
.card__home.card__home--articles .card__home__title {
  color: #e0b87d;
}
.card__home.card__home--articles .card__footer {
  background: linear-gradient(180deg, rgba(24, 50, 47, 0.98), rgba(24, 50, 47, 0.98));
}
.card__home.card__home--articles.card__home--content {
  min-height: 0;
}
.card__home.card__home--articles.card__home--content .card__home__image {
  object-position: center top;
}
.card__home.card__home--articles.card__home--content .card__home__body {
  gap: 0.4rem;
  padding: 0.68rem 0.82rem 0.25rem;
}
.card__home.card__home--articles.card__home--content .card__home__title {
  font-size: 1.08rem;
}
.card__home.card__home--articles.card__home--content .card__resource-pill {
  font-size: 0.68rem;
  padding: 0.22rem 0.5rem;
}
.card__home.card__home--articles.card__home--content .card__action-group {
  gap: 0.45rem;
}
.card__home.card__home--articles.card__home--content .card__action-group .btn {
  padding: 0.42rem 0.76rem;
}
.card__home.card__home--articles.card__home--compact {
  display: flex;
  min-height: 20.5rem;
}
.card__home.card__home--articles.card__home--compact .card__home__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.card__home.card__home--articles.card__home--compact .card__home__body {
  gap: 0.45rem;
  padding: 0.9rem 0.95rem 0.3rem;
}
.card__home.card__home--articles.card__home--compact .card__home__title {
  font-size: 1.08rem;
}
.card__home.card__home--articles.card__home--compact .card__home__meta--content,
.card__home.card__home--articles.card__home--compact .card__home__meta--dense {
  margin-top: 0.15rem;
}
.card__home.card__home--articles.card__home--compact .card__footer--content {
  gap: 0.45rem;
}
.card__home.card__home--articles.card__home--compact .card__action-group {
  gap: 0.45rem;
}
.card__home.card__home--articles.card__home--compact .card__action-group .btn {
  padding: 0.42rem 0.76rem;
}
.card__home.card__home--plans {
  background: rgba(255, 250, 243, 0.9);
  border-color: rgba(244, 221, 187, 0.2);
}
.card__home.card__home--plans .card__home__title {
  color: #e0b87d;
  font-size: 1.3rem;
}
.card__home.card__home--plans .card__subtitle {
  color: rgba(248, 241, 231, 0.78);
}
.card__home.card__home--plans .card__home__meta > div i {
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf4 !important;
}
.card__home.card__home--plans .card__footer {
  background: linear-gradient(180deg, rgba(24, 50, 47, 0.98), rgba(24, 50, 47, 0.98));
}

@media (max-width: 767.98px) {
  .card__home {
    min-height: 27.5rem;
  }
  .card__home .card__home__body {
    padding: 0.75rem 0.85rem 0.35rem;
  }
  .card__home .card__home__image {
    height: 100%;
  }
  .card__home .card__footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .card__home .card__action-group {
    width: 100%;
  }
  .card__home.card__home--content {
    min-height: 21.5rem;
  }
  .card__home.card__home--compact {
    min-height: 19.25rem;
  }
}
/*
 * Mapa de clases de imagen y media
 * - .card__img__vertical: formato vertical para tarjetas y cabeceras estrechas.
 * - .card__img__cuadrada: formato cuadrado para tarjetas y cabeceras.
 * - .card__img__horizontal: formato horizontal estándar para tarjetas o bloques media.
 * - .card__hero__img__lg: imagen hero panorámica grande.
 * - .card__hero__img__sm: imagen hero compacta.
 * - .imagen__foto: miniatura vertical de persona o recurso.
 * - .row__img: contenedor de fila con transición para efectos de escala.
 * - .scaled__img__big: amplía una imagen destacada.
 * - .scaled__img__small: reduce una imagen secundaria.
 * - .iconos: tamaño uniforme para iconos decorativos.
 * - .imagen__foto__circular: avatar circular recortado al centro.
 * - .chart-container: contenedor genérico para gráficos responsivos.
 */
/* Imagen vertical para cards de retrato o piezas altas. */
.card__img__vertical {
  width: 466px;
  height: 750px;
  object-fit: cover;
  object-position: center top;
}

/* Imagen horizontal estándar para miniaturas apaisadas. */
.card__img__horizontal {
  width: 640px;
  height: 480px;
  object-fit: cover;
  object-position: center center;
}

/* Imagen horizontal estándar para miniaturas apaisadas. */
.card__img__cuadrada {
  width: 500px;
  height: 500px;
  object-fit: cover;
  object-position: center center;
}

/* Cabecera grande (1600 x 400) */
.card__hero__img__lg {
  width: 1600px;
  height: 400px;
  object-fit: cover;
}

/* Cabecera pequeña (600 x 480) */
.card__hero__img__sm {
  width: 600px;
  height: 480px;
  object-fit: cover;
}

/* Fotos cuadradas de cards (400 x 400) */
.card__img__cuadrada {
  width: 400px;
  height: 400px;
  object-fit: cover;
  object-position: center top;
}

.imagen__foto {
  width: 60px;
  height: 90px;
  object-fit: cover;
  object-position: center top;
}

/* Contenedor con transición para composiciones de varias imágenes. */
.row__img {
  transition: 0.3s;
}

/* Estados de escala para destacar o reducir imágenes. */
.scaled__img__big {
  transform: scale(1.1);
  z-index: 100;
}

.scaled__img__small {
  transform: scale(0.9);
}

/* Tamaño homogéneo para iconos gráficos. */
.iconos {
  width: 2rem;
  height: 2rem;
}

/* Avatar circular centrado. */
.imagen__foto__circular {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 600px;
}
.chart-container > canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   GALERÍA DE RECURSOS HISTÓRICOS
   ========================================================================== */
.recursos-media-row {
  align-items: stretch;
}

.row__img {
  position: relative;
}
.row__img .recurso-card {
  overflow: hidden;
  height: 100%;
  z-index: 1;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

/* Tarjeta activa */
.row__img.scaled__img__big .recurso-card {
  transform: scale(1.08);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
  z-index: 20;
}
.row__img.scaled__img__big .recurso-overlay {
  opacity: 1;
  visibility: visible;
}
.row__img.scaled__img__big .recurso-overlay .recurso-overlay-contenido {
  transform: translateY(0);
}

/* Resto de tarjetas */
.row__img.scaled__img__small .recurso-card {
  transform: scale(0.9);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Imagen
-------------------------------------------------------------------------- */
.recurso-imagen-wrapper {
  position: relative;
  overflow: hidden;
}
.recurso-imagen-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   Overlay
-------------------------------------------------------------------------- */
.recurso-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.05) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.recurso-overlay-contenido {
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.recurso-overlay-contenido h3,
.recurso-overlay-contenido .h5,
.recurso-overlay-contenido p {
  color: #fff;
}
.recurso-overlay-contenido p:last-child {
  margin-bottom: 0;
}

/*
 * Archivo reservado para utilidades de columnas.
 * - Actualmente no define clases CSS propias.
 * - Mantener este partial como punto de entrada si el layout requiere helpers de columnas en el futuro.
 */
/*
 * Mapa de clases del encabezado visual
 * - .tipografia__cabecera: da estilo premium a cabeceras destacadas con títulos, subtítulos y tarjetas transparentes.
 */
.tipografia__cabecera {
  padding: 2rem 2.5rem 2.5rem !important;
}
.tipografia__cabecera > div {
  backdrop-filter: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tipografia__cabecera .card-title {
  color: #fff9f1;
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: 0.92;
  margin-bottom: 0;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}
.tipografia__cabecera h1,
.tipografia__cabecera h5,
.tipografia__cabecera p {
  color: #fffdf9;
}
.tipografia__cabecera h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.tipografia__cabecera h5,
.tipografia__cabecera div {
  font-family: "Manrope", sans-serif;
  line-height: 1.8;
}

@media (max-width: 767.98px) {
  .tipografia__cabecera {
    padding: 1rem !important;
  }
}
/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
/*
* Mapa de clases y overrides de navegación superior
* - #sticky_navigation: navbar fija con blur, gradiente y jerarquía visual institucional.
* - .navbar-nav: agrupación horizontal de enlaces principales.
* - .nav-link: enlace de navegación con hover y estado activo.
* - .dropdown-menu: contenedor del menú desplegable.
* - .dropdown-item: acción individual dentro del desplegable.
* - .dropdown-header: cabecera semántica de grupos dentro del dropdown.
* - .navbar-toggler: botón de despliegue para navegación móvil.
* - Overrides puntuales: .form-select y otros elementos embebidos en la barra.
*/
@media (min-width: 992px) {
  #sticky_navigation .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}
#sticky_navigation {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(20, 35, 33, 0.18);
}
#sticky_navigation .container-fluid {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
#sticky_navigation .navbar__brand {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
  margin-right: 1.35rem;
  padding-right: 0.4rem;
  text-decoration: none;
}
#sticky_navigation .navbar__logo {
  flex: 0 0 auto;
  display: block;
}
#sticky_navigation .navbar__brand-text {
  color: #fff8ef;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
#sticky_navigation .navbar-nav {
  gap: 0.2rem;
}
#sticky_navigation .nav-link {
  border-radius: 999px;
  color: rgba(255, 249, 241, 0.84) !important;
  font-size: 0.95rem;
  padding: 0.72rem 0.95rem !important;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
#sticky_navigation .nav-link:hover, #sticky_navigation .nav-link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fffdf8 !important;
  transform: translateY(-1px);
}
#sticky_navigation .nav-link.active {
  background: rgba(183, 136, 82, 0.2);
  box-shadow: inset 0 0 0 1px rgba(230, 210, 181, 0.18);
  color: #fff8ef !important;
}
#sticky_navigation .dropdown-menu {
  background: rgba(255, 251, 245, 0.96);
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 1.15rem;
  box-shadow: 0 22px 42px rgba(19, 30, 28, 0.16);
  padding: 0.75rem;
}
#sticky_navigation .dropdown-item {
  border-radius: 0.8rem;
  color: #1e2624;
  font-weight: 600;
  padding: 0.6rem 0.85rem;
}
#sticky_navigation .dropdown-item:hover, #sticky_navigation .dropdown-item:focus, #sticky_navigation .dropdown-item.active {
  background: rgba(183, 136, 82, 0.12);
  color: #9b6c3f;
}
#sticky_navigation .dropdown-header {
  color: #234640 !important;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}
#sticky_navigation .dropdown-divider {
  border-top-color: rgba(44, 53, 49, 0.1);
}
#sticky_navigation .form-select {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(230, 210, 181, 0.28) !important;
  border-radius: 999px;
  box-shadow: none;
  color: #fff7ef !important;
  font-weight: 700;
  padding-left: 0.9rem;
  padding-right: 2rem;
}
#sticky_navigation .form-select option {
  color: #1e2624;
}
#sticky_navigation .navbar-toggler {
  border-color: rgba(230, 210, 181, 0.26);
  border-radius: 1rem;
  padding: 0.55rem 0.75rem;
}

@media (max-width: 991.98px) {
  #sticky_navigation .navbar-collapse {
    background: rgba(24, 50, 47, 0.96);
    border: 1px solid rgba(230, 210, 181, 0.12);
    border-radius: 1.4rem;
    margin-top: 0.9rem;
    padding: 1rem;
  }
  #sticky_navigation .d-flex.align-items-center.gap-3 {
    align-items: stretch !important;
    flex-direction: column;
    margin-top: 1rem;
  }
}
/*
* Mapa de clases del menú lateral
* - .menu-lateral-row: contenedor maestro que define anchos y comportamiento del layout lateral.
* - #id_scroll_menu_lateral: panel lateral scrolleable y colapsable.
* - .menu-lateral-shell: estructura interna del menú.
* - .menu-lateral-panel: superficie visual principal del menú.
* - .menu-lateral-header: cabecera del bloque lateral.
* - .menu-lateral-title: título del menú o subsección.
* - .menu-lateral-divider: separador visual entre grupos.
* - .menu-lateral-toggle: control para colapsar o expandir el lateral.
* - .menu-lateral-content: zona navegable con enlaces y utilidades.
* - .is-collapsed: estado del menú lateral cuando se reduce a iconos.
*/
.menu-lateral-row {
  --menu-collapsed-width: 4.5rem;
  --menu-right-col-width: 16.666667%;
  align-items: stretch !important;
}

.menu-lateral-row > .menu-filtros-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch !important;
  min-height: 0 !important;
  overflow: hidden;
  transition: flex-basis 0.28s ease, max-width 0.28s ease, width 0.28s ease;
}

.menu-filtros-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  transition: opacity 0.2s ease;
}

.menu-filtros-body > .card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-bottom: 0;
}

.menu-lateral-row > .menu-filtros-column.is-collapsed {
  flex: 0 0 var(--menu-collapsed-width) !important;
  max-width: var(--menu-collapsed-width) !important;
  width: var(--menu-collapsed-width) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.menu-lateral-row > .menu-filtros-column.is-collapsed .menu-filtros-body {
  display: none;
}

.menu-filtros-toggle {
  white-space: nowrap;
  position: absolute;
  top: 50%;
  right: 0.45rem;
  left: auto;
  transform: translateY(-50%);
  z-index: 5;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 61, 57, 0.12);
  color: #1d3d39;
  box-shadow: 0 0.5rem 1rem rgba(29, 61, 57, 0.12);
  transition: left 0.28s ease, right 0.28s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.menu-filtros-toggle:hover, .menu-filtros-toggle:focus {
  background: #f8f1e7;
  border-color: rgba(183, 136, 82, 0.5);
  color: #7a5733;
}

.menu-lateral-row > .menu-filtros-column.is-collapsed .menu-filtros-toggle {
  right: auto;
  left: 0.45rem;
}

.menu-lateral-row > #id_scroll_menu_lateral,
.menu-lateral-row > #id_scroll_menu_lateral > .card,
.menu-lateral-row > #id_scroll_menu_lateral .menu-lateral-shell,
.menu-lateral-row > #id_scroll_menu_lateral .menu-lateral-shell > .row,
.menu-lateral-row > #id_scroll_menu_lateral .menu-lateral-panel {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98)) !important;
}

#id_scroll_menu_lateral {
  position: relative !important;
  display: flex;
  top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch !important;
  --menu-expanded-width: 100%;
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98)) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #f8f1e7;
  overflow: hidden;
  transition: flex-basis 0.28s ease, max-width 0.28s ease, width 0.28s ease;
}
#id_scroll_menu_lateral::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(183, 136, 82, 0.85), rgba(244, 221, 187, 0.45), rgba(183, 136, 82, 0));
  z-index: 2;
}
#id_scroll_menu_lateral > .card,
#id_scroll_menu_lateral .menu-lateral-shell,
#id_scroll_menu_lateral .menu-lateral-shell > .row,
#id_scroll_menu_lateral .menu-lateral-panel {
  height: 100%;
  min-height: 100%;
}
#id_scroll_menu_lateral > .card,
#id_scroll_menu_lateral .menu-lateral-shell,
#id_scroll_menu_lateral .menu-lateral-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
#id_scroll_menu_lateral > .card {
  margin-bottom: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98)) !important;
  transform: translateX(0);
  transform-origin: left center;
  transition: transform 0.28s ease, width 0.28s ease, min-width 0.28s ease;
}
#id_scroll_menu_lateral .menu-lateral-shell {
  padding-left: 0;
  padding-right: 0;
}
#id_scroll_menu_lateral .menu-lateral-shell > .row {
  margin-left: 0;
  margin-right: 0;
}
#id_scroll_menu_lateral .menu-lateral-panel {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98)) !important;
  color: #f8f1e7;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative;
}
#id_scroll_menu_lateral .menu-lateral-header {
  position: relative;
  min-height: 2.25rem;
  padding-bottom: 0.8rem;
}
#id_scroll_menu_lateral .menu-lateral-title {
  color: #f8f1e7 !important;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0 !important;
  padding-bottom: 0.55rem;
  position: relative;
  text-transform: uppercase;
}
#id_scroll_menu_lateral .menu-lateral-title::after {
  content: "";
  width: 3.25rem;
  height: 2px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205, 160, 101, 0.95), rgba(244, 221, 187, 0.8));
}
#id_scroll_menu_lateral .menu-lateral-divider {
  border-color: rgba(255, 255, 255, 0.08) !important;
  opacity: 1;
}
#id_scroll_menu_lateral .menu-lateral-toggle {
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 0.45rem;
  right: auto;
  transform: translateY(-50%);
  z-index: 5;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8f1e7;
  transition: left 0.28s ease, right 0.28s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#id_scroll_menu_lateral .menu-lateral-toggle:hover, #id_scroll_menu_lateral .menu-lateral-toggle:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(244, 221, 187, 0.5);
  color: #f4ddbb;
}
#id_scroll_menu_lateral .menu-lateral-content {
  color: #f8f1e7;
}
#id_scroll_menu_lateral .menu-lateral-content a {
  color: rgba(248, 241, 231, 0.84) !important;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, transform 0.2s ease;
}
#id_scroll_menu_lateral .menu-lateral-content a:hover, #id_scroll_menu_lateral .menu-lateral-content a:focus {
  color: #f4ddbb !important;
  text-decoration: underline;
  text-decoration-color: rgba(244, 221, 187, 0.9);
}
#id_scroll_menu_lateral .menu-lateral-content i {
  color: #f8f1e7 !important;
}
#id_scroll_menu_lateral .menu-lateral-content > .d-flex.justify-content-between.align-items-center {
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
#id_scroll_menu_lateral .menu-lateral-content > .d-flex.justify-content-between.align-items-center span {
  color: #f8f1e7 !important;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#id_scroll_menu_lateral .menu-lateral-content > .d-flex.justify-content-between.align-items-center i {
  color: #f8f1e7 !important;
}
#id_scroll_menu_lateral .menu-lateral-content .collapse {
  padding-top: 0.2rem;
}
#id_scroll_menu_lateral .menu-lateral-content .collapse > .d-flex.justify-content-between.align-items-center.mb-2 {
  padding: 0.35rem 0;
}
#id_scroll_menu_lateral .menu-lateral-content .collapse > .d-flex.justify-content-between.align-items-center.mb-2 span {
  color: #f8f1e7 !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
#id_scroll_menu_lateral .menu-lateral-content .collapse > .d-flex.justify-content-between.align-items-center.mb-2 i {
  color: #f8f1e7 !important;
}
#id_scroll_menu_lateral .menu-lateral-content .collapse > .d-flex.align-items-center.mb-2 {
  padding: 0.25rem 0;
}
#id_scroll_menu_lateral .menu-lateral-content .collapse > .d-flex.align-items-center.mb-2 i {
  color: rgba(248, 241, 231, 0.92) !important;
}
#id_scroll_menu_lateral + *, #id_scroll_menu_lateral + * + * {
  transition: flex-basis 0.28s ease, max-width 0.28s ease, width 0.28s ease;
}
#id_scroll_menu_lateral.is-collapsed {
  flex: 0 0 var(--menu-collapsed-width) !important;
  max-width: var(--menu-collapsed-width) !important;
  width: var(--menu-collapsed-width) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#id_scroll_menu_lateral.is-collapsed > .card {
  width: var(--menu-expanded-width);
  min-width: var(--menu-expanded-width);
  transform: translateX(calc(var(--menu-collapsed-width) - var(--menu-expanded-width)));
}
#id_scroll_menu_lateral.is-collapsed .menu-lateral-title,
#id_scroll_menu_lateral.is-collapsed .menu-lateral-divider,
#id_scroll_menu_lateral.is-collapsed .menu-lateral-content {
  display: none;
}
#id_scroll_menu_lateral.is-collapsed .menu-lateral-panel {
  padding-left: 0.4rem !important;
  padding-right: 0.4rem !important;
}
#id_scroll_menu_lateral.is-collapsed .menu-lateral-toggle {
  left: auto;
  right: 0.45rem;
}

@media (min-width: 992px) {
  .menu-lateral-row {
    flex-wrap: nowrap !important;
  }
  .menu-lateral-row > #id_scroll_menu_lateral + * + * {
    flex: 0 0 var(--menu-right-col-width) !important;
    max-width: var(--menu-right-col-width) !important;
    width: var(--menu-right-col-width) !important;
    min-width: var(--menu-right-col-width) !important;
    flex-shrink: 0 !important;
  }
  .menu-lateral-row > .menu-filtros-column {
    flex: 0 0 var(--menu-right-col-width) !important;
    max-width: var(--menu-right-col-width) !important;
    width: var(--menu-right-col-width) !important;
    min-width: var(--menu-right-col-width) !important;
    flex-shrink: 0 !important;
  }
  .menu-lateral-row > #id_scroll_menu_lateral.is-collapsed + * {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: auto !important;
  }
  .menu-lateral-row > .menu-filtros-column.is-collapsed {
    min-width: var(--menu-collapsed-width) !important;
  }
}
/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
/*
 * Mapa de clases y overrides de formularios
 * - .miembro-etcf-filter-panel: panel de filtros con acabado premium y cabecera destacada.
 * - .miembro-etcf-filter-title: título del panel de filtros.
 * - .messages y sus items: lista visual para mensajes flash del sistema.
 * - .alert-secondary / .alert-success / .alert-danger: variantes de alertas adaptadas al tema.
 * - .dataTables_wrapper y .dt-* asociados: overrides de DataTables para integrarlo con ETCF.
 * - .selector, .selector-available, .selector-chosen, .selector-filter: personalización del selector dual del admin.
 * - Overrides de formulario: .form-control, .form-select, textarea e inputs comunes.
 */
/* Override base de inputs y controles HTML/Django. */
.form-control,
.form-select,
textarea,
input[type=text],
input[type=search],
input[type=email],
input[type=password],
input[type=number],
input[type=date] {
  background-color: rgba(255, 250, 243, 0.96);
  border: 1px solid rgba(29, 61, 57, 0.18);
  border-radius: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #1e2624;
}
.form-control:focus,
.form-select:focus,
textarea:focus,
input[type=text]:focus,
input[type=search]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=date]:focus {
  background-color: #fffdf8;
  border-color: rgba(29, 61, 57, 0.42);
  box-shadow: 0 0 0 0.2rem rgba(29, 61, 57, 0.14);
  color: #1e2624;
}

/* Panel premium de filtros para listados HTMX o formularios GET. */
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]),
.miembro-etcf-filter-panel {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(247, 240, 229, 0.95));
  border: 1px solid rgba(29, 61, 57, 0.12) !important;
  border-radius: 1.6rem !important;
  box-shadow: 0 20px 44px rgba(20, 35, 33, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  overflow: hidden;
  position: relative;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true])::before,
.miembro-etcf-filter-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(183, 136, 82, 0.82), rgba(244, 221, 187, 0.72), rgba(183, 136, 82, 0));
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > p.text-center.display-6,
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > .miembro-etcf-filter-title,
.miembro-etcf-filter-panel > p.text-center.display-6,
.miembro-etcf-filter-panel > .miembro-etcf-filter-title {
  align-items: center;
  color: #234640;
  display: flex;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 2.2vw, 2.35rem) !important;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.04em;
  margin-bottom: 0 !important;
  padding: 1.25rem 1.2rem 0.85rem !important;
  position: relative;
  text-align: center;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > p.text-center.display-6::after,
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > .miembro-etcf-filter-title::after,
.miembro-etcf-filter-panel > p.text-center.display-6::after,
.miembro-etcf-filter-panel > .miembro-etcf-filter-title::after {
  content: "";
  width: 3.5rem;
  height: 2px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205, 160, 101, 0.95), rgba(244, 221, 187, 0.82));
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true],
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] {
  padding: 0.75rem 0.85rem 1rem;
  position: relative;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] > .row.py-3.px-2,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] > .row.py-3.px-2 {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(29, 61, 57, 0.08);
  border-radius: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  margin: 0 0 0.95rem;
  padding: 0.55rem !important;
  row-gap: 0.65rem;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] > .row.py-3.px-2 > .col,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] > .row.py-3.px-2 > .col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] > .row.py-3.px-2 .btn,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] > .row.py-3.px-2 .btn {
  min-height: 2.9rem;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] > .row.py-3.px-2 .btn-secondary,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] > .row.py-3.px-2 .btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 61, 57, 0.16);
  box-shadow: none;
  color: #234640;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] > .row.py-3.px-2 .btn-secondary:hover, .card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] > .row.py-3.px-2 .btn-secondary:focus,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] > .row.py-3.px-2 .btn-secondary:hover,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] > .row.py-3.px-2 .btn-secondary:focus {
  background: rgba(29, 61, 57, 0.08);
  border-color: rgba(29, 61, 57, 0.26);
  color: #9b6c3f;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] > .p-2.d-flex.justify-content-center.flex-column,
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] > .form-group.p-2.d-flex.justify-content-center.flex-column,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] > .p-2.d-flex.justify-content-center.flex-column,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] > .form-group.p-2.d-flex.justify-content-center.flex-column {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(29, 61, 57, 0.08);
  border-radius: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.95rem 1rem !important;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] .form-label,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] .form-label {
  color: #9b6c3f !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] .form-label strong,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] .form-label strong {
  font-weight: inherit;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] .small,
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] .text-muted,
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] small,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] .small,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] .text-muted,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] small {
  color: rgba(30, 38, 36, 0.68) !important;
  font-size: 0.78rem;
  line-height: 1.45;
}
.card.shadow.rounded-2.border-0.h-100:has(> form[method=get][hx-push-url=true]) > form[method=get][hx-push-url=true] .invalid-feedback.d-block,
.miembro-etcf-filter-panel > form[method=get][hx-push-url=true] .invalid-feedback.d-block {
  background: rgba(150, 59, 63, 0.08);
  border: 1px solid rgba(150, 59, 63, 0.12);
  border-radius: 0.85rem;
  color: #7a2d31;
  font-size: 0.78rem;
  margin-top: 0.2rem;
  padding: 0.45rem 0.65rem;
}

/* Selects generales con mayor contraste y peso visual. */
.form-select,
select {
  color: #234640;
  font-weight: 600;
}

/* Lista de mensajes flash del sistema. */
.messages {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.messages li {
  background: rgba(29, 61, 57, 0.08);
  border: 1px solid rgba(29, 61, 57, 0.16);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(20, 35, 33, 0.06);
  color: #234640 !important;
  padding: 0.85rem 1rem;
}
.messages li.success {
  background: rgba(44, 112, 85, 0.1);
  border-color: rgba(44, 112, 85, 0.22);
}
.messages li.warning {
  background: rgba(183, 136, 82, 0.12);
  border-color: rgba(183, 136, 82, 0.24);
  color: #7f5a32 !important;
}
.messages li.error, .messages li.danger {
  background: rgba(150, 59, 63, 0.1);
  border-color: rgba(150, 59, 63, 0.22);
  color: #7a2d31 !important;
}

/* Overrides de alertas contextuales Bootstrap. */
.alert-secondary {
  background: rgba(29, 61, 57, 0.08);
  border-color: rgba(29, 61, 57, 0.16);
  color: #234640;
}

.alert-success {
  background: rgba(44, 112, 85, 0.1);
  border-color: rgba(44, 112, 85, 0.22);
  color: #1f5a45;
}

.alert-danger {
  background: rgba(150, 59, 63, 0.1);
  border-color: rgba(150, 59, 63, 0.22);
  color: #7a2d31;
}

/* DataTables: inputs, botones y textos adaptados a la identidad ETCF. */
.dataTables_wrapper .dt-length select,
.dataTables_wrapper .dt-input,
.dataTables_wrapper .dt-search input,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
div.dt-container .dt-length select,
div.dt-container .dt-input,
div.dt-container .dt-search input,
div.dt-container .dataTables_filter input,
div.dt-container .dataTables_length select {
  background-color: rgba(255, 250, 243, 0.96);
  border: 1px solid rgba(29, 61, 57, 0.18);
  border-radius: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #1e2624;
}
.dataTables_wrapper .dt-length select:focus,
.dataTables_wrapper .dt-input:focus,
.dataTables_wrapper .dt-search input:focus,
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus,
div.dt-container .dt-length select:focus,
div.dt-container .dt-input:focus,
div.dt-container .dt-search input:focus,
div.dt-container .dataTables_filter input:focus,
div.dt-container .dataTables_length select:focus {
  border-color: rgba(29, 61, 57, 0.42);
  box-shadow: 0 0 0 0.2rem rgba(29, 61, 57, 0.14);
}
.dataTables_wrapper .dt-buttons,
div.dt-container .dt-buttons {
  display: inline-flex;
  overflow: hidden;
  border-radius: 1.85rem;
  box-shadow: 0 14px 26px rgba(20, 35, 33, 0.14);
}
.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper button.dt-button,
.dataTables_wrapper a.dt-button,
div.dt-container .dt-buttons .btn,
div.dt-container button.dt-button,
div.dt-container a.dt-button {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
  color: #fffaf4 !important;
  font-weight: 700;
  margin: 0 !important;
}
.dataTables_wrapper .dt-buttons .btn:not(:first-child),
.dataTables_wrapper button.dt-button:not(:first-child),
.dataTables_wrapper a.dt-button:not(:first-child),
div.dt-container .dt-buttons .btn:not(:first-child),
div.dt-container button.dt-button:not(:first-child),
div.dt-container a.dt-button:not(:first-child) {
  border-left-color: rgba(255, 255, 255, 0.06);
}
.dataTables_wrapper .dt-buttons .btn:hover, .dataTables_wrapper .dt-buttons .btn:focus,
.dataTables_wrapper button.dt-button:hover,
.dataTables_wrapper button.dt-button:focus,
.dataTables_wrapper a.dt-button:hover,
.dataTables_wrapper a.dt-button:focus,
div.dt-container .dt-buttons .btn:hover,
div.dt-container .dt-buttons .btn:focus,
div.dt-container button.dt-button:hover,
div.dt-container button.dt-button:focus,
div.dt-container a.dt-button:hover,
div.dt-container a.dt-button:focus {
  background: linear-gradient(180deg, rgba(33, 69, 64, 0.98), rgba(27, 56, 52, 0.98));
  border-color: rgba(244, 221, 187, 0.42);
  color: #fffdf9 !important;
}
.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td,
div.dt-container table.dataTable thead th,
div.dt-container table.dataTable thead td {
  color: #234640;
}
.dataTables_wrapper div.dt-info,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper div.dt-length,
.dataTables_wrapper div.dt-search,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
div.dt-container div.dt-info,
div.dt-container .dataTables_info,
div.dt-container div.dt-length,
div.dt-container div.dt-search,
div.dt-container .dataTables_length,
div.dt-container .dataTables_filter {
  color: #234640;
}

/* Selector dual del admin de Django adaptado a grids y botones modernos. */
.selector {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 0.5rem;
}
.selector .selector-available,
.selector .selector-chosen {
  width: 100%;
  float: none;
}
.selector h2 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.selector .helptext,
.selector .selector-filter label {
  display: none;
}
.selector .selector-filter {
  margin: 0 0 0.75rem;
}
.selector .selector-filter input {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
}
.selector select {
  width: 100%;
  min-height: 15rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  padding: 0.5rem;
  background: #fff;
}
.selector ul.selector-chooser {
  margin: 4.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.selector ul.selector-chooser li {
  margin: 0;
  list-style: none;
}
.selector ul.selector-chooser a {
  display: block;
  min-width: 11rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(29, 61, 57, 0.78);
  border-radius: 0.5rem;
  background: #fff;
  color: #234640;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.selector ul.selector-chooser a:hover {
  background: rgba(29, 61, 57, 0.08);
}
.selector .list-footer-display {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

@media (max-width: 991.98px) {
  .selector {
    grid-template-columns: 1fr;
  }
  .selector ul.selector-chooser {
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .selector ul.selector-chooser a {
    min-width: 9rem;
  }
}
/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
/*
 * Mapa de clases y overrides del footer
 * - footer, .footer, #footer, .footer-pagina: overrides globales para el pie común del sitio.
 * - .footer-etcf: bloque principal del footer con gradiente, línea superior y tono institucional.
 * - .footer-brand: marca textual del footer.
 * - .footer-links: lista de enlaces agrupados.
 * - .footer-link: enlace individual con hover subrayado.
 * - .footer-muted: texto secundario o legal con menor contraste.
 * - .social-btn: botón circular/cuadrado para redes y accesos externos.
 */
footer,
.footer,
#footer,
.footer-pagina,
footer.container-fluid {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  color: #f8f1e7;
}
footer a,
footer .footer-link,
footer .small,
footer small,
footer p,
footer li,
footer span,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.footer a,
.footer .footer-link,
.footer .small,
.footer small,
.footer p,
.footer li,
.footer span,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
#footer a,
#footer .footer-link,
#footer .small,
#footer small,
#footer p,
#footer li,
#footer span,
#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6,
.footer-pagina a,
.footer-pagina .footer-link,
.footer-pagina .small,
.footer-pagina small,
.footer-pagina p,
.footer-pagina li,
.footer-pagina span,
.footer-pagina h1,
.footer-pagina h2,
.footer-pagina h3,
.footer-pagina h4,
.footer-pagina h5,
.footer-pagina h6,
footer.container-fluid a,
footer.container-fluid .footer-link,
footer.container-fluid .small,
footer.container-fluid small,
footer.container-fluid p,
footer.container-fluid li,
footer.container-fluid span,
footer.container-fluid h1,
footer.container-fluid h2,
footer.container-fluid h3,
footer.container-fluid h4,
footer.container-fluid h5,
footer.container-fluid h6 {
  color: #f8f1e7;
}

.footer-etcf {
  background: linear-gradient(180deg, rgba(29, 61, 57, 0.98), rgba(24, 50, 47, 0.98));
  color: #f8f1e7;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
.footer-etcf::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(183, 136, 82, 0.85), rgba(244, 221, 187, 0.45), rgba(183, 136, 82, 0));
}
.footer-etcf h5 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 1rem !important;
  padding-bottom: 0.55rem;
  position: relative;
  text-transform: uppercase;
  color: #f8f1e7;
}
.footer-etcf h5::after {
  content: "";
  width: 3.25rem;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205, 160, 101, 0.95), rgba(244, 221, 187, 0.8));
}
.footer-etcf .footer-brand {
  letter-spacing: 0.08em;
  color: #f8f1e7;
  font-size: 1.25rem;
}
.footer-etcf .footer-links {
  margin: 0;
  padding: 0;
}
.footer-etcf .footer-link {
  color: rgba(248, 241, 231, 0.82);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-etcf .footer-link:hover {
  color: #f4ddbb;
  text-decoration: underline;
  text-decoration-color: rgba(244, 221, 187, 0.9);
}
.footer-etcf .footer-muted {
  color: rgba(248, 241, 231, 0.66);
}
.footer-etcf .small.text-uppercase.footer-muted,
.footer-etcf .footer-links .small.text-uppercase,
.footer-etcf li.small.text-uppercase.footer-muted {
  color: #e0b87d;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  display: inline-block;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem !important;
  text-transform: uppercase;
}
.footer-etcf .social-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  color: #fffaf4;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.footer-etcf .social-btn:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #234640;
}

/* Utility para destacar etiquetas fuera del footer (misma apariencia que .small.text-uppercase.footer-muted dentro de .footer-etcf) */
.tag-highlight {
  color: #e0b87d;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  display: inline-block;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem !important;
  text-transform: uppercase;
}

/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
/*
* Mapa de clases de la home
* - .bg__pagina: fondo base compartido con otras páginas cuando la home lo requiere.
* - .home-page: lienzo global de portada con gradientes y retícula sutil.
* - .home-section: separador vertical de cada bloque temático.
* - .home-section__container: contenedor interno con efecto glass y borde suave.
* - .home-section__header: cabecera centrada de sección.
* - .home-section__title: título principal de cada módulo.
* - .home-section__description: texto descriptivo bajo el título.
* - .home-grid: grid de tarjetas o módulos destacados.
* - .home-section--featured: variante para la sección principal destacada.
* - .home-section--articles: variante de contenedor orientada a artículos.
* - .home-section--plans: variante de contenedor orientada a planes.
* - .home-empty-state: estado vacío para secciones sin contenido.
*/
/* Lienzo general de la home con textura y gradientes suaves. */
.home-page {
  background: radial-gradient(circle at center, rgb(9, 39, 45) 0%, rgb(17, 61, 65) 26%, rgb(39, 101, 101) 50%, rgb(134, 184, 176) 76%, rgb(241, 248, 246) 100%), radial-gradient(circle at 18% 16%, rgba(247, 251, 250, 0.34), transparent 30%), radial-gradient(circle at 82% 18%, rgba(243, 249, 247, 0.3), transparent 26%), radial-gradient(circle at 50% 88%, rgba(239, 247, 245, 0.24), transparent 32%);
  isolation: isolate;
  min-height: 100vh;
  padding-bottom: 4rem;
  position: relative;
}
.home-page::before {
  content: "";
  inset: 0;
  position: absolute;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 82%);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}
.home-page > * {
  position: relative;
  z-index: 1;
}

/* Sección base de la portada. */
.home-section {
  padding-bottom: 1.3rem;
  padding-top: 1.3rem;
  scroll-margin-top: 7rem;
}

/* Contenedor premium que envuelve cada bloque de la home. */
.home-section__container {
  background: rgba(255, 250, 243, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 2rem;
  box-shadow: 0 18px 34px rgba(87, 63, 39, 0.08);
  padding: 2rem;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.home-section__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(183, 136, 82, 0.55), rgba(183, 136, 82, 0));
}

/* Cabecera y textos de entrada de cada sección. */
.home-section__header {
  margin: 0 0 2.2rem;
  max-width: none;
  text-align: center;
}

.home-section__title {
  color: #1e2624;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  margin: 0;
}

.home-section--featured .home-section__title {
  font-size: clamp(2.3rem, 4.4vw, 4rem);
}

.home-section__description {
  color: #66706b;
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 0.9rem 0 0;
  width: 100%;
  max-width: none;
  font-family: "Playfair Display", serif;
}

/* Forzar ancho completo dentro del contenedor y evitar reglas que centren por max-width.
   Usar selector descendiente (no sólo child) porque la descripción puede estar dentro de .row/.col */
.home-section__container .home-section__description {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  text-align: center; /* mantener el texto centrado, quita si lo quieres alineado a la izquierda */
}

/* Forzar que el párrafo interno no herede restricciones de ancho */
.home-section__container .home-section__description p {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  text-align: center; /* conserva centrado; cambia si prefieres otra alineación */
}

.home-grid {
  margin-top: 0;
  row-gap: 1.9rem;
}

/* Variantes de sección según el tipo de contenido mostrado. */
.home-section--articles .home-section__container {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.97), rgba(255, 250, 243, 0.95));
}
.home-section--articles .home-section__title {
  color: #234640;
}

.home-section--plans .home-section__container {
  background: rgba(255, 250, 243, 0.96);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 34px rgba(87, 63, 39, 0.08);
}
.home-section--plans .home-section__container::before {
  background: linear-gradient(90deg, rgba(183, 136, 82, 0.55), rgba(183, 136, 82, 0));
}

.home-empty-state {
  background: rgba(255, 251, 245, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.8rem;
  box-shadow: 0 18px 36px rgba(87, 63, 39, 0.08);
  max-width: 760px;
  padding: 2rem;
}

@media (max-width: 767.98px) {
  .home-section__container,
  .home-section--plans .home-section__container {
    padding: 1.25rem;
  }
}
/* etcf.scss Fichero principal scss
patch : static_scss/scss/etcf.scss
Este fichero importa todos los partiales necesarios para la
construcción del CSS final de la aplicación ETCF.scss
*/
/*
 * Organización del bundle SCSS
 * - abstracts: variables, tokens y valores reutilizables.
 * - base: tipografía, colores base y resets ligeros del sistema visual.
 * - components: botones, tarjetas, imágenes, video y piezas reutilizables.
 * - layouts: header, navbar, menú lateral, formularios y footer.
 * - pages: reglas de composición específicas por pantalla o dominio funcional.
 *
 * Este archivo no define clases propias; actúa como punto de entrada del compilado.
 */
.auth-login-page {
  background: radial-gradient(circle at 50% 30%, rgba(18, 74, 75, 0.96) 0%, rgba(11, 51, 56, 0.98) 46%, rgb(6, 28, 35) 100%), linear-gradient(180deg, rgb(5, 25, 31) 0%, rgb(7, 34, 41) 100%);
  min-height: calc(100vh - 72px);
  padding: 5.5rem 0 4rem;
  position: relative;
}
.auth-login-page::before, .auth-login-page::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.auth-login-page::before {
  background: radial-gradient(circle at 14% 20%, rgba(124, 211, 197, 0.16), transparent 20%), radial-gradient(circle at 84% 18%, rgba(214, 176, 104, 0.16), transparent 18%), radial-gradient(circle at 56% 76%, rgba(141, 204, 196, 0.12), transparent 24%);
  opacity: 0.9;
}
.auth-login-page::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 90%);
  opacity: 0.5;
}

.auth-login-page__container {
  position: relative;
  z-index: 1;
}

.auth-login-shell {
  align-items: stretch;
  background: linear-gradient(145deg, rgba(11, 58, 61, 0.82), rgba(7, 31, 37, 0.9));
  border: 1px solid rgba(164, 208, 201, 0.12);
  border-radius: 2rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 420px);
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.auth-login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left center, rgba(124, 211, 197, 0.12), transparent 28%), linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 38%);
  pointer-events: none;
}

.auth-login-shell__content,
.auth-login-panel {
  position: relative;
  z-index: 1;
}

.auth-login-shell__content {
  color: rgba(243, 247, 246, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1rem 0.75rem 1rem 0.5rem;
}

.auth-login-brand {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: auto 1fr;
  align-items: start;
}

.auth-login-brand__badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.15rem;
  display: inline-flex;
  height: 5rem;
  justify-content: center;
  width: 5rem;
}

.auth-login-brand__logo {
  display: block;
  height: 3.1rem;
  object-fit: contain;
  width: 3.1rem;
}

.auth-login-brand__eyebrow {
  color: #e3b05d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.auth-login-brand__title {
  color: #f8f7f3;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0;
  max-width: 11ch;
}

.auth-login-brand__text {
  color: rgba(228, 239, 236, 0.88);
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 1.4rem 0 0;
  max-width: 40rem;
}

.auth-login-highlights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.auth-login-highlight {
  background: rgba(5, 19, 24, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: auto 1fr;
  padding: 1rem 1rem 1.05rem;
}

.auth-login-highlight__icon {
  align-items: center;
  background: rgba(96, 201, 182, 0.14);
  border-radius: 999px;
  color: #8ee2d4;
  display: inline-flex;
  font-size: 1rem;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.auth-login-highlight h2 {
  color: #f3f6f5;
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

.auth-login-highlight p {
  color: rgba(224, 236, 233, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.auth-login-panel {
  background: rgba(249, 248, 244, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.75rem;
  box-shadow: 0 24px 45px rgba(3, 15, 20, 0.24);
  padding: 1.8rem;
  align-self: center;
}

.auth-login-panel__meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.auth-login-panel__pill {
  background: rgba(111, 202, 183, 0.18);
  border-radius: 999px;
  color: #114f52;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.38rem 0.8rem;
}

.auth-login-panel__pill--soft {
  background: rgba(227, 176, 93, 0.22);
  color: #8a5d1c;
}

.auth-login-panel__title {
  color: #1b2d31;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 0.98;
  margin: 0 0 0.85rem;
}

.auth-login-panel__subtitle {
  color: #5f6f71;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.auth-login-panel__alert {
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.auth-login-form {
  display: grid;
  gap: 1rem;
}

.auth-login-form__group {
  display: grid;
  gap: 0.42rem;
}

.auth-login-form__label {
  color: #1e3c41 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

.auth-login-form__control {
  background: rgba(243, 247, 248, 0.96);
  border: 1px solid rgba(20, 83, 84, 0.18);
  border-radius: 0.95rem;
  box-shadow: none;
  color: #17363a;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
}

.auth-login-form__control:focus {
  background: #fbfcfc;
  border-color: rgba(22, 104, 103, 0.48);
  box-shadow: 0 0 0 0.18rem rgba(47, 143, 136, 0.16);
}

.auth-login-form__error {
  color: #a53030;
  font-size: 0.88rem;
}

.auth-login-form__submit {
  background: linear-gradient(135deg, #2ea891, #76c8b3);
  border: 0;
  border-radius: 1rem;
  color: #f8fffd;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  min-height: 3.45rem;
  text-transform: uppercase;
}

.auth-login-form__submit:hover,
.auth-login-form__submit:focus {
  background: linear-gradient(135deg, #27947f, #65b9a3);
  color: #f8fffd;
}

.auth-login-form__help {
  color: #657476;
  font-size: 0.93rem;
  line-height: 1.6;
}

.auth-login-form__help a {
  color: #0f5c5d;
  font-weight: 700;
  text-decoration: none;
}

.auth-login-form__help a:hover,
.auth-login-form__help a:focus {
  text-decoration: underline;
}

@media (max-width: 1199.98px) {
  .auth-login-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-login-panel {
    max-width: 34rem;
    width: 100%;
  }
  .auth-login-highlights {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .auth-login-page {
    padding: 4.75rem 0 3rem;
  }
  .auth-login-shell {
    border-radius: 1.5rem;
    padding: 1.1rem;
  }
  .auth-login-shell__content {
    padding: 0.5rem 0.35rem 0;
  }
  .auth-login-brand {
    grid-template-columns: 1fr;
  }
  .auth-login-brand__badge {
    height: 4.25rem;
    width: 4.25rem;
  }
  .auth-login-brand__title {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
    max-width: none;
  }
  .auth-login-brand__text {
    font-size: 1rem;
  }
  .auth-login-panel {
    border-radius: 1.35rem;
    padding: 1.25rem;
  }
}
/*
 * Mapa de clases de la experiencia de consultas
 * - .consultas-feed-page: fondo global de la página de consultas.
 * - .consultas-feed-layout: layout principal del feed.
 * - .consultas-feed-sidebar-stack: pila vertical para sidebar y paneles auxiliares.
 * - .consultas-feed-panel: panel genérico del feed.
 * - .consultas-feed-cover: imagen de portada de bloques de consulta.
 * - .consultas-feed-icon: icono destacado del feed.
 * - .consultas-feed-conversation / .consultas-feed-thread: contenedores de conversación e hilo.
 * - .consultas-feed-question / .consulta-card-question / .consulta-detail-question: estilos para preguntas.
 * - .consultas-feed-answer / .respuesta-card-answer / .respuesta-detail-answer: estilos para respuestas.
 * - .consultas-feed-empty-answer: estado vacío cuando no existe respuesta.
 * - .consultas-feed-reply-box: caja de respuesta o formulario inline.
 * - .consultas-feed-status y variantes open, answered, closed: estados visuales de una consulta.
 * - .consultas-feed-scroll: contenedor con scroll personalizado.
 * - .consulta-card / .respuesta-card: tarjetas resumen de consulta y respuesta.
 * - .consulta-card-title / .respuesta-card-title: títulos clicables de tarjetas.
 * - .consulta-card-status: etiqueta de estado en tarjeta.
 * - .consulta-detail-page / .respuesta-detail-page: fondo específico del detalle.
 * - .consulta-detail-shell / .respuesta-detail-shell: cápsula principal del detalle.
 * - .consultas-detail-header y modificadores: hero del detalle.
 * - .consultas-detail-kicker: sobretítulo del detalle.
 * - .consulta-detail-title / .respuesta-detail-title: títulos principales de detalle.
 * - .consultas-detail-statuses: fila de estados del detalle.
 * - .consultas-detail-grid / .consultas-detail-panel: rejilla y paneles internos.
 * - .consultas-detail-section-title: título de sección interna.
 * - .consultas-detail-meta y familia: metadatos estructurados del detalle.
 * - .consultas-detail-link: enlace con estilo contextual.
 * - .consultas-detail-actions: zona de acciones del detalle.
 * - .consultas-detail-body: cuerpo rich text de la consulta o respuesta.
 */
.consultas-feed-page {
  background: linear-gradient(180deg, #f4efe6 0%, #f7f4ee 32%, #f5f5f5 100%);
}

/* Layout base del feed de consultas y su sidebar. */
.consultas-feed-layout {
  align-items: stretch;
}

.consultas-feed-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Paneles base del feed y de las vistas de detalle. */
.consultas-feed-panel,
.consulta-detail-shell,
.respuesta-detail-shell,
.consulta-card,
.respuesta-card {
  border: 1px solid rgba(35, 45, 65, 0.08);
  box-shadow: 0 18px 48px rgba(33, 37, 41, 0.08);
}

.consultas-feed-panel {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

/* Portada visual de una consulta o bloque destacado. */
.consultas-feed-cover {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 320px);
  object-fit: cover;
  object-position: center;
}

/* Icono destacado que acompaña títulos o bloques de consulta. */
.consultas-feed-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #1f466e 0%, #355f8d 100%);
  flex: 0 0 auto;
}

/* Contenedores de conversación e hilo completo. */
.consultas-feed-conversation {
  border: 1px solid rgba(35, 45, 65, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
}

.consultas-feed-thread {
  border: 1px solid rgba(28, 42, 63, 0.06);
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(33, 37, 41, 0.06);
  overflow: visible;
}

/* Bloques visuales para preguntas y respuestas. */
.consultas-feed-question,
.consulta-card-question,
.consulta-detail-question {
  background: linear-gradient(180deg, #f4eee5 0%, #efe7db 100%);
  border: 1px solid #eadcc9;
  color: #42372c;
}

.consultas-feed-answer,
.respuesta-card-answer,
.respuesta-detail-answer {
  background: linear-gradient(180deg, #f4eee5 0%, #efe7db 100%);
  border-left: 4px solid #b78852;
  color: #42372c;
}

.consultas-feed-empty-answer {
  background: #faf8f3;
  border-color: #dfd6c8 !important;
}

/* Caja de respuesta con formulario inline. */
.consultas-feed-reply-box {
  border: 1px solid rgba(36, 48, 66, 0.12);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.consultas-feed-reply-box .form-label {
  display: block;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  padding-bottom: 0.15rem;
}

.consultas-feed-reply-box textarea.form-control {
  display: block;
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
}

.consultas-feed-status {
  min-width: 7rem;
  text-align: center;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

/* Variantes visuales de estado de la consulta. */
.consultas-feed-status-open,
.consulta-card-status-open {
  background: #fdbb18;
  color: #242424;
}

.consultas-feed-status-answered,
.consulta-card-status-answered {
  background: #1d3d39;
  color: #ffffff;
}

.consultas-feed-status-closed,
.consulta-card-status-closed {
  background: #6b7280;
  color: #ffffff;
}

.consultas-feed-scroll {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.consultas-feed-scroll::-webkit-scrollbar {
  width: 10px;
}

.consultas-feed-scroll::-webkit-scrollbar-track {
  background: #e9e1d5;
  border-radius: 999px;
}

.consultas-feed-scroll::-webkit-scrollbar-thumb {
  background: #a0a7b2;
  border-radius: 999px;
  border: 2px solid #e9e1d5;
}

.consultas-feed-scroll textarea {
  min-height: 6.5rem;
}

.consultas-feed-scroll .ck-editor__editable {
  min-height: 9rem;
}

/* Tarjetas resumen de consulta y respuesta. */
.consulta-card {
  border-radius: 1.35rem;
  box-shadow: 0 14px 34px rgba(33, 37, 41, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 239, 0.98) 100%);
}

.respuesta-card {
  border-radius: 1.35rem;
  box-shadow: 0 14px 34px rgba(33, 37, 41, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 239, 0.98) 100%);
}

.consulta-card-title,
.respuesta-card-title {
  font-size: 1rem;
  line-height: 1.3;
}

.consulta-card-title a,
.respuesta-card-title a {
  color: #21354a;
}

.consulta-card-question,
.respuesta-card-answer {
  border-radius: 1rem;
}

.consulta-card-status {
  min-width: 6.25rem;
  text-align: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
}

/* Contenedores principales de páginas de detalle. */
.consulta-detail-page {
  background: linear-gradient(180deg, #f4efe6 0%, #f7f4ee 32%, #f5f5f5 100%);
}

.respuesta-detail-page {
  background: linear-gradient(180deg, #f4efe6 0%, #f7f4ee 32%, #f5f5f5 100%);
}

.consulta-detail-shell,
.respuesta-detail-shell {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(247, 240, 229, 0.95));
  border: 1px solid rgba(29, 61, 57, 0.12);
  border-radius: 1.6rem;
  box-shadow: 0 24px 52px rgba(20, 35, 33, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.46);
  overflow: hidden;
  position: relative;
}

.consulta-detail-shell::before,
.respuesta-detail-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(183, 136, 82, 0.82), rgba(244, 221, 187, 0.72), rgba(183, 136, 82, 0));
}

.consultas-detail-header {
  padding: 2.4rem 2rem 1.2rem;
  text-align: center;
}

.consultas-detail-header--consulta,
.consultas-detail-header--respuesta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}

/* Títulos, estados y paneles del detalle. */
.consultas-detail-kicker {
  color: #b78852;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.consulta-detail-title,
.respuesta-detail-title {
  color: #1d3d39;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 0.98;
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.consultas-detail-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1rem;
}

.consultas-detail-grid {
  padding: 0 2rem 2rem;
}

.consultas-detail-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 61, 57, 0.08);
  border-radius: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 1.15rem;
}

.consultas-detail-section-title {
  color: #1d3d39;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

.consultas-detail-meta {
  display: grid;
  gap: 0.85rem;
}

.consultas-detail-meta-item {
  align-items: flex-start;
  color: #234640;
  display: flex;
  gap: 0.75rem;
}

.consultas-detail-meta-item i {
  align-items: center;
  background: rgba(29, 61, 57, 0.08);
  border-radius: 999px;
  color: #1d3d39;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.consultas-detail-meta-item div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.consultas-detail-meta-item strong {
  overflow-wrap: anywhere;
}

.consultas-detail-meta-label {
  color: #b78852;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.consultas-detail-link {
  color: inherit;
  text-decoration: none;
}

.consultas-detail-link:hover,
.consultas-detail-link:focus {
  color: #b78852;
}

.consultas-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.consultas-detail-body,
.consulta-detail-question,
.respuesta-detail-answer {
  border-radius: 1.25rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  padding: 1.35rem;
}

.consultas-detail-body p:last-child,
.consulta-detail-question p:last-child,
.respuesta-detail-answer p:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .consultas-feed-layout {
    min-height: calc(100vh - 9.5rem);
  }
  .consultas-feed-sidebar {
    position: sticky;
    top: 6.25rem;
    align-self: start;
  }
  .consultas-feed-scroll {
    max-height: calc(100vh - 10.5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
}
@media (max-width: 767.98px) {
  .consultas-detail-header {
    padding: 2rem 1.2rem 1rem;
  }
  .consultas-detail-grid {
    padding: 0 1rem 1rem;
  }
  .consultas-detail-actions {
    flex-direction: column;
  }
}
/*
 * Mapa de clases de las vistas detail premium
 *
 * Bloque exercise:
 * - .exercise-page / .etcf-detail-page: lienzo general para páginas de detalle.
 * - .exercise-shell: contenedor máximo del detalle.
 * - .exercise-hero: cabecera principal en dos columnas.
 * - .exercise-hero-content / .exercise-hero-sidebar: división entre contenido y resumen.
 * - .exercise-brand / .exercise-brand-text: marca ETCF dentro del hero.
 * - .exercise-eyebrow: sobretítulo pequeño.
 * - .exercise-title: título principal del detalle.
 * - .exercise-subtitle: subtítulo descriptivo.
 * - .exercise-tags / .exercise-tag / .exercise-tag-label / .exercise-tag-value: rejilla de etiquetas resumen.
 * - .exercise-stat-grid / .exercise-stat / .exercise-stat-label / .exercise-stat-value: métricas rápidas.
 * - .exercise-sidebar-list / .exercise-sidebar-item: lista técnica de datos laterales.
 * - .exercise-grid / .exercise-stack: composición de paneles de contenido.
 * - .exercise-panel / .exercise-panel-head / .exercise-panel-kicker / .exercise-panel-icon / .exercise-panel-body:
 *   estructura base de los paneles detail.
 * - .exercise-facts / .exercise-fact: fichas de datos clave.
 * - .exercise-richtext: contenido enriquecido formateado.
 * - .exercise-media-frame / .exercise-media-empty / .exercise-media-caption: presentación de imagen o media.
 * - .exercise-note-empty: estado vacío para comentarios, notas o currículum.
 *
 * Bloque contenido-detail:
 * - .contenido-detail-shell / .contenido-detail-stack: estructura base del detalle de contenidos.
 * - .contenido-detail-hero-card / .contenido-detail-left-hero / .contenido-detail-left-hero-body: hero alternativo para contenidos.
 * - .contenido-detail-kicker / .contenido-detail-title / .contenido-detail-subtitle / .contenido-detail-section-title:
 *   jerarquía tipográfica del detalle de contenido.
 * - .contenido-detail-left-title / .contenido-detail-left-subtitle / .contenido-detail-left-tags / .contenido-detail-left-pills:
 *   variantes del lateral o hero izquierdo.
 * - .contenido-detail-meta-grid / .contenido-detail-meta-card / .contenido-detail-extra-item: metadatos y extras.
 * - .contenido-detail-video / .contenido-detail-video-frame / .contenido-detail-video-fallback / .contenido-detail-video-body:
 *   render y fallback de video.
 * - .contenido-detail-summary / .contenido-detail-summary-body: resumen editorial.
 * - .contenido-detail-richtext: cuerpo enriquecido principal.
 * - .contenido-detail-actions / .contenido-detail-actions-body / .contenido-detail-actions-group / .contenido-detail-actions-count:
 *   acciones y contadores del detalle.
 * - .contenido-detail-extras / .contenido-detail-extras-body / .contenido-detail-tag-row: extras y taxonomías.
 * - .contenido-detail-empty-state: estado vacío de recursos.
 *
 * Bloques relacionados:
 * - .miembro-etcf-detail-page: variante de página detail para miembros.
 * - Reglas responsive: adaptan hero, media, stacks y acciones a tablet y móvil.
 */
.exercise-page,
.detail-page,
.etcf-detail-page {
  --exercise-bg: #f4ecdf;
  --exercise-surface: rgba(255, 250, 243, 0.82);
  --exercise-surface-strong: rgba(255, 253, 248, 0.96);
  --exercise-ink: #1e2624;
  --exercise-muted: #6e746d;
  --exercise-line: rgba(44, 53, 49, 0.12);
  --exercise-accent: #b78852;
  --exercise-accent-strong: #8e663c;
  --exercise-accent-soft: rgba(183, 136, 82, 0.12);
  --exercise-forest: #1d3d39;
  background: radial-gradient(circle at 0% 0%, rgba(183, 136, 82, 0.18), transparent 24%), radial-gradient(circle at 100% 0%, rgba(29, 61, 57, 0.18), transparent 22%), linear-gradient(180deg, #f8f1e7 0%, #efe3d1 52%, #eadbc7 100%);
  color: var(--exercise-ink);
  font-family: "Manrope", sans-serif;
  overflow: hidden;
  padding: 7rem 0 4.5rem;
  position: relative;
}

/* Decoración ambiental del fondo detail. */
.exercise-page::before,
.detail-page::before,
.exercise-page::after,
.detail-page::after,
.etcf-detail-page::before,
.etcf-detail-page::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.exercise-page::before,
.detail-page::before,
.etcf-detail-page::before {
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 78%);
  opacity: 0.45;
}

.exercise-page::after,
.detail-page::after,
.etcf-detail-page::after {
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  top: 2rem;
  right: -8rem;
  filter: blur(12px);
}

.exercise-shell,
.detail-shell,
.etcf-detail-page > .container,
.etcf-detail-page.container {
  max-width: 1380px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
  z-index: 1;
}

/* Hero principal de las fichas detail. */
.exercise-hero,
.detail-hero {
  background: linear-gradient(130deg, rgba(255, 251, 245, 0.82) 0%, rgba(249, 241, 229, 0.76) 48%, rgba(237, 224, 205, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2.2rem;
  box-shadow: 0 26px 60px rgba(95, 68, 39, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  margin-bottom: 2rem;
  overflow: hidden;
  padding: 2.2rem;
  position: relative;
}

.exercise-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 58%, rgba(183, 136, 82, 0.08) 58% 76%, transparent 76%), radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.35), transparent 18%);
  pointer-events: none;
}

.exercise-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 2.2rem;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--exercise-accent), rgba(183, 136, 82, 0));
  pointer-events: none;
}

.exercise-hero-content,
.detail-hero-content,
.exercise-hero-sidebar,
.detail-hero-sidebar {
  position: relative;
  z-index: 1;
}

/* Marca ETCF compacta usada dentro del hero. */
.exercise-brand,
.detail-brand {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(95, 68, 39, 0.08);
  display: inline-flex;
  gap: 0.95rem;
  margin-bottom: 1.4rem;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
}

/* Bloque de identidad del hero: sobretítulo, título y subtítulo. */
.exercise-brand img,
.detail-brand img {
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, #fffdfa, #f4ecdf);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px rgba(95, 68, 39, 0.12);
  object-fit: contain;
  padding: 0.35rem;
}

.exercise-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.05;
}

.detail-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.05;
}

.exercise-brand-text strong {
  color: var(--exercise-forest);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-brand-text strong {
  color: var(--exercise-forest);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.exercise-brand-text span {
  color: var(--exercise-muted);
  font-size: 0.82rem;
}

.detail-brand-text span {
  color: var(--exercise-muted);
  font-size: 0.82rem;
}

.exercise-eyebrow {
  color: var(--exercise-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.detail-eyebrow {
  color: var(--exercise-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.exercise-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.3rem, 6vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
  max-width: 10ch;
  text-wrap: balance;
}

.detail-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.3rem, 6vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
  max-width: 10ch;
  text-wrap: balance;
}

.exercise-subtitle {
  color: rgba(30, 38, 36, 0.78);
  font-size: 1.02rem;
  line-height: 1.95;
  margin: 1.1rem 0 1.5rem;
  max-width: 60ch;
}

.detail-subtitle {
  color: rgba(30, 38, 36, 0.78);
  font-size: 1.02rem;
  line-height: 1.95;
  margin: 1.1rem 0 1.5rem;
  max-width: 60ch;
}

/* Etiquetas resumen mostradas bajo el hero. */
.exercise-tags {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 860px;
}

.detail-tags {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 860px;
}

.exercise-tags-contact {
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
}

.exercise-tag {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.35rem;
  box-shadow: 0 16px 28px rgba(95, 68, 39, 0.08);
  color: var(--exercise-ink);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2.65rem 1fr;
  min-height: 106px;
  padding: 1rem;
}

.detail-tag {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.35rem;
  box-shadow: 0 16px 28px rgba(95, 68, 39, 0.08);
  color: var(--exercise-ink);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2.65rem 1fr;
  min-height: 106px;
  padding: 1rem;
}

.exercise-tag-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.exercise-tag-link:hover,
.exercise-tag-link:focus-visible {
  border-color: rgba(183, 136, 82, 0.4);
  box-shadow: 0 20px 34px rgba(95, 68, 39, 0.12);
  color: inherit;
  outline: none;
  text-decoration: none;
  transform: translateY(-2px);
}

.exercise-tag-link.is-disabled {
  opacity: 0.82;
}

.exercise-tag i {
  align-items: center;
  background: linear-gradient(180deg, rgba(183, 136, 82, 0.18), rgba(183, 136, 82, 0.08));
  border-radius: 0.95rem;
  color: var(--exercise-accent-strong);
  display: inline-flex;
  font-size: 1rem;
  height: 2.65rem;
  justify-content: center;
  width: 2.65rem;
}

.detail-tag i {
  align-items: center;
  background: linear-gradient(180deg, rgba(183, 136, 82, 0.18), rgba(183, 136, 82, 0.08));
  border-radius: 0.95rem;
  color: var(--exercise-accent-strong);
  display: inline-flex;
  font-size: 1rem;
  height: 2.65rem;
  justify-content: center;
  width: 2.65rem;
}

.exercise-tag-label {
  color: var(--exercise-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.38rem;
  text-transform: uppercase;
}

.detail-tag-label {
  color: var(--exercise-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.38rem;
  text-transform: uppercase;
}

.exercise-tag-value {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-tag-value {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.exercise-hero-sidebar {
  align-self: start;
  background: linear-gradient(180deg, rgba(24, 53, 49, 0.98), rgba(18, 40, 37, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.8rem;
  box-shadow: 0 24px 40px rgba(24, 42, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f9f4ec;
  padding: 1.7rem;
}

.detail-hero-sidebar {
  align-self: start;
  background: linear-gradient(180deg, rgba(24, 53, 49, 0.98), rgba(18, 40, 37, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.8rem;
  box-shadow: 0 24px 40px rgba(24, 42, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f9f4ec;
  padding: 1.7rem;
}

.exercise-hero-sidebar h2 {
  color: #f4ddbb;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.detail-hero-sidebar h2 {
  color: #f4ddbb;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

/* Estadísticas compactas y lista técnica del lateral. */
.exercise-stat-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.detail-stat-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.exercise-stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  min-height: 138px;
  padding: 1rem;
  position: relative;
}

.detail-stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  min-height: 138px;
  padding: 1rem;
  position: relative;
}

.exercise-stat::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 221, 187, 0.45), rgba(244, 221, 187, 0));
}

.detail-stat::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 221, 187, 0.45), rgba(244, 221, 187, 0));
}

.exercise-stat-label {
  color: rgba(249, 244, 236, 0.7);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.detail-stat-label {
  color: rgba(249, 244, 236, 0.7);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.exercise-stat-value {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.45rem;
}

.detail-stat-value {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.45rem;
}

.exercise-stat small {
  color: rgba(249, 244, 236, 0.72);
  display: block;
  line-height: 1.6;
}

.detail-stat small {
  color: rgba(249, 244, 236, 0.72);
  display: block;
  line-height: 1.6;
}

.exercise-sidebar-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.detail-sidebar-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.exercise-sidebar-item {
  align-items: start;
  border-top: 1px solid rgba(244, 221, 187, 0.14);
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1.2rem 1fr;
  padding-top: 0.9rem;
}

.detail-sidebar-item {
  align-items: start;
  border-top: 1px solid rgba(244, 221, 187, 0.14);
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1.2rem 1fr;
  padding-top: 0.9rem;
}

.exercise-sidebar-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-sidebar-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.exercise-sidebar-item i {
  color: #f1c78f;
  font-size: 0.98rem;
  margin-top: 0.15rem;
}

.detail-sidebar-item i {
  color: #f1c78f;
  font-size: 0.98rem;
  margin-top: 0.15rem;
}

.exercise-sidebar-item span {
  color: rgba(249, 244, 236, 0.64);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-sidebar-item span {
  color: rgba(249, 244, 236, 0.64);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exercise-sidebar-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-sidebar-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.exercise-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
}

.detail-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
}

.exercise-stack {
  display: grid;
  gap: 1.8rem;
}

.detail-stack {
  display: grid;
  gap: 1.8rem;
}

/* Paneles base reutilizados por casi todas las fichas detail. */
.exercise-panel,
.detail-panel,
.etcf-detail-page .card.border-0.h-100,
.etcf-detail-page .card.border-0.shadow-sm.rounded-4,
.etcf-detail-page .consultas-detail-panel,
.etcf-detail-page .miembro-etcf-wire-panel,
.etcf-detail-page .miembro-etcf-block,
.etcf-detail-page > .container > .card.shadow-lg.border-0.rounded-4.h-100 {
  background: var(--exercise-surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 1.95rem !important;
  box-shadow: 0 22px 50px rgba(95, 68, 39, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  position: relative;
}

.exercise-panel::before,
.detail-panel::before,
.etcf-detail-page .card.border-0.h-100::before,
.etcf-detail-page .card.border-0.shadow-sm.rounded-4::before,
.etcf-detail-page .consultas-detail-panel::before,
.etcf-detail-page .miembro-etcf-wire-panel::before,
.etcf-detail-page .miembro-etcf-block::before,
.etcf-detail-page > .container > .card.shadow-lg.border-0.rounded-4.h-100::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(183, 136, 82, 0.55), rgba(183, 136, 82, 0));
}

.exercise-panel-head {
  align-items: center;
  border-bottom: 1px solid var(--exercise-line);
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
  padding: 1.45rem 1.5rem 1.1rem;
}

.detail-panel-head {
  align-items: center;
  border-bottom: 1px solid var(--exercise-line);
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
  padding: 1.45rem 1.5rem 1.1rem;
}

.exercise-panel-kicker {
  color: var(--exercise-accent-strong);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.28rem;
  text-transform: uppercase;
}

.detail-panel-kicker {
  color: var(--exercise-accent-strong);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.28rem;
  text-transform: uppercase;
}

.exercise-panel-head h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.detail-panel-head h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.exercise-panel-icon {
  align-items: center;
  background: linear-gradient(180deg, rgba(183, 136, 82, 0.2), rgba(183, 136, 82, 0.08));
  border: 1px solid rgba(183, 136, 82, 0.12);
  border-radius: 1rem;
  color: var(--exercise-accent-strong);
  display: inline-flex;
  font-size: 1.15rem;
  height: 3rem;
  justify-content: center;
  min-width: 3rem;
}

.detail-panel-icon {
  align-items: center;
  background: linear-gradient(180deg, rgba(183, 136, 82, 0.2), rgba(183, 136, 82, 0.08));
  border: 1px solid rgba(183, 136, 82, 0.12);
  border-radius: 1rem;
  color: var(--exercise-accent-strong);
  display: inline-flex;
  font-size: 1.15rem;
  height: 3rem;
  justify-content: center;
  min-width: 3rem;
}

.exercise-panel-body {
  padding: 1.5rem;
}

.detail-panel-body {
  padding: 1.5rem;
}

.exercise-facts {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-facts {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Fichas de datos breves dentro de paneles. */
.exercise-fact,
.detail-fact,
.etcf-detail-page .card-text > p.card-text,
.etcf-detail-page .card-body > p,
.etcf-detail-page .consultas-detail-meta-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 245, 0.98));
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 1.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  min-height: 122px;
  padding: 1rem 1rem 1.05rem;
  margin-bottom: 0.95rem;
}

.exercise-fact span {
  color: var(--exercise-muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.62rem;
  text-transform: uppercase;
}

.detail-fact span {
  color: var(--exercise-muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.62rem;
  text-transform: uppercase;
}

.exercise-fact strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-fact strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.exercise-richtext,
.detail-richtext,
.etcf-detail-page .card-text,
.etcf-detail-page .consultas-detail-body,
.etcf-detail-page .miembro-etcf-richtext {
  color: var(--exercise-ink);
  font-size: 1rem;
  line-height: 1.95;
}

.exercise-richtext > :first-child,
.detail-richtext > :first-child,
.etcf-detail-page .miembro-etcf-richtext > :first-child,
.etcf-detail-page .consultas-detail-body > :first-child {
  margin-top: 0;
}

.exercise-richtext > :last-child,
.detail-richtext > :last-child,
.etcf-detail-page .miembro-etcf-richtext > :last-child,
.etcf-detail-page .consultas-detail-body > :last-child {
  margin-bottom: 0;
}

.exercise-richtext h1,
.detail-richtext h1,
.exercise-richtext h2,
.detail-richtext h2,
.exercise-richtext h3,
.detail-richtext h3,
.exercise-richtext h4,
.detail-richtext h4,
.etcf-detail-page .card-text h2,
.etcf-detail-page .card-text h3,
.etcf-detail-page .card-text h4,
.etcf-detail-page .card-text h5,
.etcf-detail-page .consultas-detail-section-title,
.etcf-detail-page .miembro-etcf-section-title {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.1;
  color: var(--exercise-forest);
}

.exercise-note-empty {
  align-items: center;
  background: linear-gradient(135deg, rgba(29, 61, 57, 0.05), rgba(183, 136, 82, 0.08));
  border: 1px dashed rgba(44, 53, 49, 0.14);
  border-radius: 1.25rem;
  color: var(--exercise-muted);
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
}

.detail-note-empty {
  align-items: center;
  background: linear-gradient(135deg, rgba(29, 61, 57, 0.05), rgba(183, 136, 82, 0.08));
  border: 1px dashed rgba(44, 53, 49, 0.14);
  border-radius: 1.25rem;
  color: var(--exercise-muted);
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
}

.exercise-note-empty i {
  color: var(--exercise-accent-strong);
  font-size: 1.2rem;
}

.detail-note-empty i {
  color: var(--exercise-accent-strong);
  font-size: 1.2rem;
}

.exercise-media {
  display: grid;
  gap: 1rem;
}

.detail-media {
  display: grid;
  gap: 1rem;
}

/* Marcos y estados vacíos de imagen/video. */
.exercise-media-frame,
.detail-media-frame,
.etcf-detail-page .ratio,
.etcf-detail-page .d-flex.justify-content-center,
.etcf-detail-page .pt-2.text-center,
.etcf-detail-page .miembro-etcf-photo-card {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.9), rgba(245, 236, 223, 0.95)), linear-gradient(135deg, rgba(29, 61, 57, 0.06), rgba(183, 136, 82, 0.14));
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 1.55rem;
  display: flex;
  justify-content: center;
  min-height: 250px;
  overflow: hidden;
  padding: 0.95rem;
  position: relative;
}

.exercise-media-frame::after,
.detail-media-frame::after,
.etcf-detail-page .ratio::after,
.etcf-detail-page .d-flex.justify-content-center::after,
.etcf-detail-page .pt-2.text-center::after,
.etcf-detail-page .miembro-etcf-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.exercise-media-frame img,
.detail-media-frame img,
.exercise-media-frame video,
.detail-media-frame video,
.etcf-detail-page img.img-fluid,
.etcf-detail-page video,
.etcf-detail-page iframe,
.etcf-detail-page .miembro-etcf-photo {
  border-radius: 1.1rem;
  display: block;
  max-height: 100%;
  object-fit: contain;
  width: 100%;
}

.exercise-media-empty {
  align-items: center;
  color: var(--exercise-muted);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  min-height: 260px;
  padding: 1.5rem;
  text-align: center;
}

.detail-media-empty {
  align-items: center;
  color: var(--exercise-muted);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  min-height: 260px;
  padding: 1.5rem;
  text-align: center;
}

.exercise-media-empty i {
  color: var(--exercise-accent-strong);
  font-size: 2rem;
}

.detail-media-empty i {
  color: var(--exercise-accent-strong);
  font-size: 2rem;
}

.exercise-media-caption {
  align-items: center;
  color: var(--exercise-muted);
  display: flex;
  font-size: 0.9rem;
  gap: 0.6rem;
  justify-content: space-between;
}

.detail-media-caption {
  align-items: center;
  color: var(--exercise-muted);
  display: flex;
  font-size: 0.9rem;
  gap: 0.6rem;
  justify-content: space-between;
}

.exercise-media-caption span {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.detail-media-caption span {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.etcf-detail-page .card-title.pt-5,
.etcf-detail-page .card-body.p-4.p-lg-5,
.etcf-detail-page .consultas-detail-header,
.etcf-detail-page .miembro-etcf-hero {
  background: linear-gradient(130deg, rgba(255, 251, 245, 0.82) 0%, rgba(249, 241, 229, 0.76) 48%, rgba(237, 224, 205, 0.9) 100%);
  border-bottom: 1px solid rgba(44, 53, 49, 0.08);
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
}

.etcf-detail-page .card-title.pt-5 {
  padding-top: 2rem !important;
  padding-bottom: 1.2rem;
  text-align: center;
}

.etcf-detail-page .card-title.pt-5::after,
.etcf-detail-page .consultas-detail-header::after,
.etcf-detail-page .miembro-etcf-hero::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 2rem;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--exercise-accent), rgba(183, 136, 82, 0));
}

.etcf-detail-page .card-title .display-6,
.etcf-detail-page .card-title p.display-6,
.etcf-detail-page .consulta-detail-title,
.etcf-detail-page .respuesta-detail-title,
.etcf-detail-page .miembro-etcf-hero h1 {
  color: var(--exercise-ink);
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  line-height: 0.95;
  margin-bottom: 0;
}

.etcf-detail-page .card-title h5,
.etcf-detail-page .consultas-detail-kicker,
.etcf-detail-page .miembro-etcf-badges {
  color: var(--exercise-accent-strong);
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.etcf-detail-page .miembro-etcf-badges {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0.25rem;
  padding-bottom: 0;
  line-height: 1;
  align-content: flex-start;
}

.etcf-detail-page section.row.justify-content-center.p-5.g-3,
.etcf-detail-page section.row.g-4,
.etcf-detail-page .consultas-detail-grid {
  padding: 1.75rem !important;
  position: relative;
  z-index: 1;
}

.miembro-etcf-detail-page section.row.g-4 {
  padding: 0.5rem 0 !important;
}

.etcf-detail-page .card-body,
.etcf-detail-page .miembro-etcf-block-body {
  padding: 1.5rem;
}

.etcf-detail-page .card-text > h3,
.etcf-detail-page .card-text > h4,
.etcf-detail-page .card-text > h5 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

.etcf-detail-page .card-text a:not(.btn),
.etcf-detail-page .consultas-detail-link {
  color: var(--exercise-forest);
  font-weight: 700;
  text-decoration: none;
}

.etcf-detail-page .card-text a:not(.btn):hover,
.etcf-detail-page .consultas-detail-link:hover {
  color: var(--exercise-accent-strong);
}

.etcf-detail-page .btn,
.etcf-detail-page a.btn {
  color: #fffaf4;
}

.etcf-detail-page .btn:hover,
.etcf-detail-page .btn:focus,
.etcf-detail-page .btn:active,
.etcf-detail-page a.btn:hover,
.etcf-detail-page a.btn:focus,
.etcf-detail-page a.btn:active {
  color: #fffdf9;
}

.etcf-detail-page hr {
  border-color: rgba(44, 53, 49, 0.08);
  opacity: 1;
  margin: 1rem 0;
}

.etcf-detail-page .badge {
  border: 1px solid rgba(183, 136, 82, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.etcf-detail-page .text-bg-light {
  background: rgba(255, 251, 245, 0.96) !important;
  color: var(--exercise-forest) !important;
}

/* Grupo de acciones genéricas dentro de páginas detail. */
.etcf-detail-page .consultas-detail-actions,
.etcf-detail-page .miembro-etcf-actions,
.etcf-detail-page .d-flex.flex-wrap.gap-2.pt-2,
.etcf-detail-page .d-flex.flex-wrap.gap-2.pt-3,
.etcf-detail-page .d-flex.flex-wrap.gap-2.pt-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Subsistema para detalles editoriales o de contenido. */
.contenido-detail-shell {
  display: grid;
  gap: 1.5rem;
}

.contenido-detail-stack {
  display: grid;
  gap: 1rem;
}

.contenido-detail-hero-body,
.contenido-detail-video-body,
.contenido-detail-summary-body,
.contenido-detail-actions-body,
.contenido-detail-extras-body {
  padding: 1.5rem;
}

.contenido-detail-hero-card,
.contenido-detail-video,
.contenido-detail-summary,
.contenido-detail-actions,
.contenido-detail-extras {
  background: var(--exercise-surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 1.95rem !important;
  box-shadow: 0 22px 50px rgba(95, 68, 39, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  position: relative;
}

.contenido-detail-hero-card::before,
.contenido-detail-video::before,
.contenido-detail-summary::before,
.contenido-detail-actions::before,
.contenido-detail-extras::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(183, 136, 82, 0.55), rgba(183, 136, 82, 0));
}

.contenido-detail-hero-card {
  min-height: 0;
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.98), rgba(244, 234, 217, 0.92));
}

.contenido-detail-left-hero {
  min-height: 100%;
}

.contenido-detail-hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.contenido-detail-left-hero-body {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 0.15rem;
  padding: 0.8rem 1.15rem 1rem;
}

.contenido-detail-left-hero-body .exercise-brand,
.contenido-detail-left-hero-body .detail-brand {
  margin-bottom: 0;
}

.contenido-detail-left-hero-body .exercise-eyebrow,
.contenido-detail-left-hero-body .detail-eyebrow {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.contenido-detail-left-title {
  font-size: clamp(2.8rem, 4.2vw, 4.7rem);
  max-width: none;
  margin-top: 0 !important;
}

.contenido-detail-left-subtitle {
  margin: 0;
  max-width: 34ch;
}

.contenido-detail-left-tags {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  width: 100%;
  margin-top: 0.6rem;
}

.contenido-detail-left-tags .exercise-tag,
.contenido-detail-left-tags .detail-tag {
  min-height: 0;
}

.contenido-detail-left-tags .exercise-tag-value a,
.contenido-detail-left-tags .detail-tag-value a {
  color: inherit;
  text-decoration: none;
}

.contenido-detail-left-tags .exercise-tag-value a:hover,
.contenido-detail-left-tags .detail-tag-value a:hover {
  color: var(--exercise-accent-strong);
}

.contenido-detail-left-pills {
  margin-top: 0.25rem;
}

.contenido-detail-kicker {
  color: var(--exercise-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contenido-detail-title,
.contenido-detail-section-title {
  color: var(--exercise-forest);
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
  margin: 0;
}

.contenido-detail-title {
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
  text-wrap: balance;
}

.contenido-detail-section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.contenido-detail-subtitle {
  color: rgba(30, 38, 36, 0.78);
  font-size: 1rem;
  line-height: 1.8;
}

.contenido-detail-meta-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Metadatos y extras del detalle de contenido. */
.contenido-detail-meta-card,
.contenido-detail-extra-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 245, 0.98));
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 1.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 1rem;
}

.contenido-detail-meta-card span,
.contenido-detail-extra-item span,
.contenido-detail-count-label {
  color: var(--exercise-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contenido-detail-meta-card strong,
.contenido-detail-extra-item strong,
.contenido-detail-actions-count strong {
  color: var(--exercise-forest);
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contenido-detail-extras-body {
  display: grid;
  gap: 0.9rem;
}

.contenido-detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contenido-detail-pdf-link,
.contenido-detail-video-fallback a {
  color: var(--exercise-forest);
  font-weight: 700;
  text-decoration: none;
}

.contenido-detail-pdf-link:hover,
.contenido-detail-video-fallback a:hover {
  color: var(--exercise-accent-strong);
}

.contenido-detail-pdf-link i,
.contenido-detail-muted i {
  margin-right: 0.45rem;
}

.contenido-detail-muted,
.contenido-detail-video-fallback {
  color: var(--exercise-muted);
}

.contenido-detail-video-body,
.contenido-detail-summary-body {
  display: grid;
  gap: 1rem;
}

.contenido-detail-video-body {
  align-content: start;
  gap: 0.5rem;
}

.contenido-detail-video .contenido-detail-section-head {
  margin-bottom: 0.15rem;
}

.contenido-detail-video .contenido-detail-kicker {
  margin-bottom: 0.35rem !important;
}

/* Caja de video y estados vacíos de recursos. */
.contenido-detail-video-frame {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(245, 236, 223, 0.95));
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 1.55rem;
  overflow: hidden;
}

.contenido-detail-empty-state {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(245, 236, 223, 0.95));
  border: 1px dashed rgba(44, 53, 49, 0.14);
  border-radius: 1.55rem;
  min-height: 340px;
}

.contenido-detail-pdf-state {
  gap: 1.75rem;
  padding: 2.5rem 2rem 2rem;
}

.contenido-detail-pdf-icon {
  font-size: 2.4rem;
  margin-top: 0.15rem;
}

.contenido-detail-pdf-copy {
  color: var(--exercise-muted);
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.45;
  max-width: 36rem;
  text-wrap: balance;
}

.contenido-detail-pdf-actions-shell {
  background: rgba(255, 251, 245, 0.86);
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 2.2rem 1.5rem;
  width: min(100%, 38rem);
}

.contenido-detail-pdf-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contenido-detail-pdf-btn {
  min-width: 12rem;
}

.contenido-detail-infografia-figure {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(245, 236, 223, 0.95));
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 1.55rem;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}

.contenido-detail-infografia-figure img {
  display: block;
  height: auto;
  width: 100%;
}

.etcf-infografia-zoom-icon {
  align-items: center;
  background: rgba(29, 61, 57, 0.78);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(29, 61, 57, 0.24);
  color: #fffaf4;
  display: inline-flex;
  font-size: 1rem;
  height: 2.75rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transform: translateY(-0.15rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 2.75rem;
  z-index: 1;
}

.contenido-detail-infografia-figure:hover .etcf-infografia-zoom-icon,
.contenido-detail-infografia-figure:focus-visible .etcf-infografia-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.etcf-infografia-viewer-open {
  overflow: hidden;
}

.etcf-infografia-viewer {
  display: grid;
  inset: 0;
  place-items: center;
  padding: 1rem;
  position: fixed;
  z-index: 1080;
}

.etcf-infografia-viewer[hidden] {
  display: none !important;
}

.etcf-infografia-viewer__backdrop {
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(2px);
  inset: 0;
  position: absolute;
}

.etcf-infografia-viewer__dialog {
  background: #fff;
  border: 1px solid rgba(15, 44, 48, 0.14);
  border-radius: 1.5rem;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  position: relative;
  width: min(1200px, 100vw - 2rem);
  z-index: 1;
}

.etcf-infografia-viewer__header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid rgba(15, 44, 48, 0.1);
  display: flex;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem 1rem 0.75rem;
  position: relative;
}

.etcf-infografia-viewer__title {
  color: var(--exercise-forest);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
  width: 100%;
}

.etcf-infografia-viewer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--exercise-forest);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.etcf-infografia-viewer__close i {
  font-size: 1.45rem;
}

.etcf-infografia-viewer__close:hover {
  transform: scale(1.08);
  background: #fff;
  box-shadow: 0 0.75rem 1.8rem rgba(0, 0, 0, 0.28);
}

.etcf-infografia-viewer__body {
  padding: 1rem;
  overflow-y: auto;
  background: #fff;
}

.etcf-infografia-viewer__image {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 44, 48, 0.08);
  display: block;
  height: auto;
  margin: 0 auto;
  width: 100%;
}

.contenido-detail-richtext {
  color: var(--exercise-ink);
  display: grid;
  font-size: 1rem;
  gap: 1rem;
  line-height: 1.9;
}

.contenido-detail-richtext-body {
  overflow: hidden;
  position: relative;
  transition: max-height 0.28s ease;
}

.contenido-detail-richtext-body.etcf-article-summary-collapsed {
  max-height: 20rem;
}

.contenido-detail-richtext-body.etcf-article-summary-collapsed::after {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(255, 253, 248, 0.96));
  bottom: 0;
  content: "";
  height: 5.5rem;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.contenido-detail-richtext-toggle {
  align-self: start;
  display: inline-flex;
  justify-self: start;
  width: auto;
}

.contenido-detail-richtext-body > :first-child {
  margin-top: 0;
}

.contenido-detail-richtext-body > :last-child {
  margin-bottom: 0;
}

.contenido-detail-richtext-body h1,
.contenido-detail-richtext-body h2,
.contenido-detail-richtext-body h3,
.contenido-detail-richtext-body h4 {
  color: var(--exercise-forest);
  font-family: "Cormorant Garamond", serif;
  line-height: 1.1;
}

.contenido-detail-actions-body {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.contenido-detail-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contenido-detail-actions-count {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 245, 0.98));
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 0.8rem 1.1rem;
  text-align: center;
  min-width: 7rem;
}

.contenido-detail-actions-count .contenido-detail-count-label {
  margin-bottom: 0.2rem;
}

@media (max-width: 1199.98px) {
  .contenido-detail-meta-grid {
    grid-template-columns: 1fr;
  }
  .contenido-detail-left-title {
    max-width: 10ch;
  }
}
@media (max-width: 767.98px) {
  .contenido-detail-hero-body,
  .contenido-detail-video-body,
  .contenido-detail-summary-body,
  .contenido-detail-actions-body,
  .contenido-detail-extras-body {
    padding: 1.2rem;
  }
  .contenido-detail-title {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }
  .contenido-detail-section-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }
  .contenido-detail-left-tags {
    grid-template-columns: 1fr;
  }
  .contenido-detail-actions-body {
    align-items: stretch;
  }
  .contenido-detail-pdf-actions-shell {
    padding: 1.9rem 1.15rem;
  }
  .etcf-infografia-viewer {
    padding: 1rem;
  }
  .etcf-infografia-viewer__dialog {
    border-radius: 1.35rem;
    max-height: calc(100vh - 2rem);
    width: calc(100vw - 2rem);
  }
  .etcf-infografia-viewer__header {
    min-height: 4.75rem;
    padding: 0.9rem 4rem 0.9rem 1rem;
  }
  .etcf-infografia-viewer__title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: 1.1;
  }
  .etcf-infografia-viewer__close {
    height: 2.5rem;
    right: 0.75rem;
    width: 2.5rem;
  }
  .contenido-detail-actions-group {
    width: 100%;
  }
  .contenido-detail-actions-count {
    width: 100%;
  }
  .contenido-detail-pdf-actions-shell {
    width: 100%;
  }
  .contenido-detail-pdf-btn {
    min-width: 0;
    width: 100%;
  }
}
/* Tabla integrada en fichas detail. */
.etcf-detail-page .table-responsive {
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid rgba(44, 53, 49, 0.08);
  border-radius: 1.4rem;
  padding: 0.5rem;
}

.etcf-detail-page .table {
  margin-bottom: 0;
  vertical-align: middle;
}

.etcf-detail-page .table th {
  color: var(--exercise-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.etcf-detail-page .table td, .etcf-detail-page .table th {
  background: transparent;
  border-color: rgba(44, 53, 49, 0.08);
}

@media (max-width: 1199.98px) {
  .exercise-hero,
  .detail-hero,
  .exercise-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .exercise-title {
    max-width: none;
  }
  .detail-title {
    max-width: none;
  }
}
@media (max-width: 991.98px) {
  .exercise-tags {
    grid-template-columns: 1fr;
  }
  .detail-tags {
    grid-template-columns: 1fr;
  }
  .exercise-tags-contact {
    grid-template-columns: 1fr;
  }
  .etcf-detail-page .card-title.pt-5,
  .etcf-detail-page .card-body.p-4.p-lg-5,
  .etcf-detail-page .consultas-detail-header,
  .etcf-detail-page .miembro-etcf-hero,
  .etcf-detail-page section.row.justify-content-center.p-5.g-3,
  .etcf-detail-page section.row.g-4,
  .etcf-detail-page .consultas-detail-grid {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}
@media (max-width: 767.98px) {
  .exercise-page,
  .detail-page,
  .etcf-detail-page {
    padding-top: 6rem;
  }
  .exercise-shell,
  .detail-shell,
  .etcf-detail-page > .container,
  .etcf-detail-page.container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .exercise-hero,
  .detail-hero,
  .exercise-panel-body,
  .detail-panel-body,
  .exercise-hero-sidebar {
    padding: 1.2rem;
  }
  .detail-hero-sidebar {
    padding: 1.2rem;
  }
  .exercise-hero {
    border-radius: 1.6rem;
    gap: 1.25rem;
  }
  .detail-hero {
    border-radius: 1.6rem;
    gap: 1.25rem;
  }
  .exercise-panel-head {
    padding: 1.2rem 1.2rem 1rem;
  }
  .detail-panel-head {
    padding: 1.2rem 1.2rem 1rem;
  }
  .exercise-stat-grid,
  .detail-stat-grid,
  .exercise-facts {
    grid-template-columns: 1fr;
  }
  .detail-facts {
    grid-template-columns: 1fr;
  }
  .exercise-tag,
  .detail-tag,
  .exercise-fact,
  .detail-fact,
  .exercise-stat {
    min-height: 0;
  }
  .detail-stat {
    min-height: 0;
  }
  .exercise-tag {
    grid-template-columns: 2.35rem 1fr;
    padding: 0.9rem;
  }
  .detail-tag {
    grid-template-columns: 2.35rem 1fr;
    padding: 0.9rem;
  }
  .exercise-tag i {
    height: 2.35rem;
    width: 2.35rem;
  }
  .detail-tag i {
    height: 2.35rem;
    width: 2.35rem;
  }
  .exercise-subtitle {
    font-size: 0.96rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }
  .detail-subtitle {
    font-size: 0.96rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }
  .exercise-title,
  .detail-title,
  .etcf-detail-page .card-title .display-6,
  .etcf-detail-page .card-title p.display-6,
  .etcf-detail-page .consulta-detail-title,
  .etcf-detail-page .respuesta-detail-title,
  .etcf-detail-page .miembro-etcf-hero h1 {
    font-size: clamp(2.4rem, 14vw, 3.9rem);
  }
  .exercise-media-frame,
  .detail-media-frame,
  .etcf-detail-page .ratio,
  .etcf-detail-page .d-flex.justify-content-center,
  .etcf-detail-page .pt-2.text-center,
  .etcf-detail-page .miembro-etcf-photo-card {
    min-height: 250px;
  }
  .exercise-media-caption {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-media-caption {
    align-items: flex-start;
    flex-direction: column;
  }
  .etcf-detail-page .card-title.pt-5::after,
  .etcf-detail-page .consultas-detail-header::after,
  .etcf-detail-page .miembro-etcf-hero::after {
    left: 1.25rem;
  }
}
@media (max-width: 575.98px) {
  .exercise-page,
  .detail-page,
  .etcf-detail-page {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }
  .exercise-shell,
  .detail-shell,
  .etcf-detail-page > .container,
  .etcf-detail-page.container {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .exercise-hero,
  .detail-hero,
  .exercise-panel,
  .detail-panel,
  .etcf-detail-page .card.border-0.h-100,
  .etcf-detail-page > .container > .card.shadow-lg.border-0.rounded-4.h-100 {
    border-radius: 1.35rem !important;
  }
  .exercise-brand {
    border-radius: 1.1rem;
    display: grid;
    grid-template-columns: 42px 1fr;
    padding: 0.55rem 0.75rem 0.55rem 0.55rem;
    width: 100%;
  }
  .detail-brand {
    border-radius: 1.1rem;
    display: grid;
    grid-template-columns: 42px 1fr;
    padding: 0.55rem 0.75rem 0.55rem 0.55rem;
    width: 100%;
  }
  .exercise-brand img {
    height: 42px;
    width: 42px;
  }
  .detail-brand img {
    height: 42px;
    width: 42px;
  }
  .exercise-brand-text strong {
    font-size: 0.82rem;
  }
  .detail-brand-text strong {
    font-size: 0.82rem;
  }
  .exercise-brand-text span {
    font-size: 0.74rem;
  }
  .detail-brand-text span {
    font-size: 0.74rem;
  }
  .exercise-panel-head h3 {
    font-size: 1.65rem;
  }
  .detail-panel-head h3 {
    font-size: 1.65rem;
  }
  .exercise-panel-icon {
    height: 2.5rem;
    min-width: 2.5rem;
  }
  .detail-panel-icon {
    height: 2.5rem;
    min-width: 2.5rem;
  }
  .exercise-stat-value {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
  .detail-stat-value {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
  .exercise-media-frame,
  .detail-media-frame,
  .etcf-detail-page .ratio,
  .etcf-detail-page .d-flex.justify-content-center,
  .etcf-detail-page .pt-2.text-center,
  .etcf-detail-page .miembro-etcf-photo-card {
    min-height: 220px;
    padding: 0.75rem;
  }
  .exercise-media-caption {
    font-size: 0.82rem;
  }
  .detail-media-caption {
    font-size: 0.82rem;
  }
}
/*
 * Mapa de clases de entrenamiento
 * - .sesion-programada-chart-wrap: contenedor con altura fija para gráficos de sesión programada.
 */
.sesion-programada-chart-wrap {
  height: 380px;
}

:root {
  --bs-tooltip-bg: #000;
  --bs-tooltip-color: #fff;
}
