/**
 * COACCM — Capa Institucional "Centenario"
 * Registro editorial heritage para un colegio profesional fundado en 1926.
 * Verde corporativo dominante + acento en latón/oro (Mercurio, comercio).
 * Se carga después de style.css y reescribe cabecera, navegación, footer y portada (fh-*).
 *
 * Principios:
 *   · Tipografía serif (Fraunces) en titulares → autoridad, tradición.
 *   · Oro como metal precioso: filetes finos, sellos, versalitas — nunca relleno.
 *   · Interacciones sobrias (sin glass, sin degradados chillones, sin rebotes).
 *
 * Índice:
 *   0. Tokens heritage
 *   1. Tipografía y utilidades
 *   2. Barra de contacto
 *   3. Navegación editorial
 *   4. Sticky header
 *   5. Footer
 *   6. Home — Hero + sello del centenario
 *   7. Home — Banda de cifras (grabado)
 *   8. Home — Secciones y cabeceras
 *   9. Home — Servicios
 *  10. Home — Panel CTA
 *  11. Home — Testimonios
 *  12. Home — Noticias
 *  13. Home — Agenda / X
 *  14. Home — Colaboradores
 *  15. Modo oscuro
 */

/* ==========================================================================
   0. Tokens heritage
   ========================================================================== */
:root {
  --color-brass:       #b58a4b;
  --color-brass-light: #caa14a;
  --color-brass-dark:  #8a6a37;
  --brass-line: rgba(181, 138, 75, 0.5);

  --green-950: #04140e;
  --green-900: #052a1e;

  --paper:     #ffffff;   /* blanco neutro — fondo base */
  --paper-alt: #f8fafc;   /* gris neutro muy suave — secciones alternas */

  /* Los titulares usan serif en todo el tema */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* Fondo neutro de institución (el modo oscuro lo revierte por especificidad) */
body { background: var(--paper); }

/* ==========================================================================
   1. Tipografía y utilidades
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}
h1, h2, h3 { text-wrap: balance; }

:focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 3px;
}

/* Versalita con filete — sustituye al "eyebrow" con guión degradado */
.fh-eyebrow,
.fh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--color-brass-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.fh-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--color-brass);
}
/* Versalita centrada de sección: filete simétrico a ambos lados */
.fh-section-head .fh-eyebrow { justify-content: center; }
.fh-section-head .fh-eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--color-brass);
}

/* Filete ornamental bajo los títulos de sección */
.fh-rule {
  display: block;
  width: 64px;
  height: 0;
  margin: 18px auto 0;
  border: none;
  border-top: 1px solid var(--color-brass);
  position: relative;
}
.fh-rule::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--color-brass);
}

/* Botones editoriales */
.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.fh-btn svg { transition: transform var(--transition-fast); }
.fh-btn:hover svg { transform: translateX(3px); }

/* Primario sobre fondo oscuro: crema con texto verde (diploma) */
.fh-btn-primary {
  background: #f7f2e6;
  color: var(--color-primary) !important;
  border-color: rgba(181, 138, 75, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.fh-btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Contorno latón sobre fondo oscuro */
.fh-btn-outline {
  background: transparent;
  color: #f3ead6 !important;
  border-color: rgba(202, 161, 74, 0.55);
}
.fh-btn-outline:hover {
  background: rgba(202, 161, 74, 0.12);
  border-color: var(--color-brass-light);
  color: #fff !important;
}

/* Sólido verde sobre fondo claro (secciones) */
.fh-btn-solid {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(6, 78, 59, 0.22);
}
.fh-btn-solid:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* Enlace con flecha */
.fh-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.fh-link-arrow svg { transition: transform var(--transition-fast); }
.fh-link-arrow:hover {
  color: var(--color-brass-dark);
  border-bottom-color: var(--color-brass);
  text-decoration: none;
}
.fh-link-arrow:hover svg { transform: translateX(3px); }

.fh-muted { color: var(--color-text-muted); font-size: 0.9rem; }

/* ==========================================================================
   2. Barra de contacto
   ========================================================================== */
.header-contact {
  background: var(--paper);
  padding: 9px 0;
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
  font-size: 0.83rem;
}
.contact-info .btn,
.header-contact .contact-info .btn {
  background: var(--color-primary);
  color: #fff !important;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.contact-info .btn:hover,
.header-contact .contact-info .btn:hover {
  background: var(--green-900);
  border-color: var(--color-brass);
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   3. Navegación editorial (clara, con filete de latón)
   ========================================================================== */
.nav-wrapper {
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(6, 78, 59, 0.1);
  box-shadow: none;
  position: relative;
}
/* Hilo de oro bajo la navegación */
.nav-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-line) 20%, var(--brass-line) 80%, transparent);
}
.nav-wrapper.scrolled {
  background: rgba(250, 247, 240, 0.97);
  box-shadow: 0 6px 24px rgba(4, 20, 14, 0.08);
}

.main-nav .menu > li > a {
  position: relative;
  color: var(--color-primary);
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 20px 15px;
  margin: 0;
  border-radius: 0;
  min-height: auto;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}
/* Subrayado de latón que crece en hover (sin fondo de "pastilla") */
.main-nav .menu > li > a::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 13px;
  height: 1.5px;
  background: var(--color-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li > a:focus,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a {
  background: transparent;
  color: var(--color-brass-dark);
}
.main-nav .menu > li > a:hover::after,
.main-nav .menu > li > a:focus::after,
.main-nav .menu > li.current-menu-item > a::after,
.main-nav .menu > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* Submenús: panel claro con filete superior de latón */
.main-nav .sub-menu {
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-brass);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 18px 40px rgba(4, 20, 14, 0.14);
}
.main-nav .sub-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--color-text);
}
.main-nav .sub-menu a:hover {
  background: var(--paper-alt);
  color: var(--color-primary);
  padding-left: 26px;
}

/* Buscador */
.nav-search .search-field {
  background: rgba(6, 78, 59, 0.04);
  border: 1px solid rgba(6, 78, 59, 0.12);
  color: var(--color-text);
  border-radius: 4px;
  padding: 8px 16px;
  width: 172px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.nav-search .search-field::placeholder { color: var(--color-text-muted); }
.nav-search .search-field:focus {
  background: #fff;
  border-color: var(--color-brass);
  box-shadow: 0 0 0 3px rgba(181, 138, 75, 0.12);
  color: var(--color-text);
}

/* Botón de modo oscuro y hamburguesa sobre fondo claro */
.flavor-dm-btn {
  background: rgba(6, 78, 59, 0.05);
  border: 1px solid rgba(6, 78, 59, 0.12);
  color: var(--color-primary);
  border-radius: 4px;
}
.flavor-dm-btn:hover {
  background: rgba(181, 138, 75, 0.14);
  border-color: var(--color-brass);
  color: var(--color-brass-dark);
  transform: none;
}
.menu-toggle {
  background: transparent;
  border: 1px solid rgba(6, 78, 59, 0.25);
  color: var(--color-primary);
  border-radius: 4px;
}
.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(181, 138, 75, 0.12);
  color: var(--color-brass-dark);
}

/* Menú móvil */
@media (max-width: 991px) {
  .main-nav .menu {
    background: var(--paper);
    backdrop-filter: none;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 22px 36px rgba(4, 20, 14, 0.12);
  }
  .main-nav .menu > li > a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 16px;
  }
  .main-nav .menu > li > a::after { display: none; }
  .main-nav .sub-menu { background: var(--paper-alt); padding-left: 12px; }
  .main-nav .sub-menu a { color: var(--color-text); }
}

/* Compat: cabecera transparente del Customizer (enlaces claros hasta el scroll) */
.layout-transparent .nav-wrapper:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.layout-transparent .nav-wrapper:not(.scrolled)::after { opacity: 0; }
.layout-transparent .nav-wrapper:not(.scrolled) .menu > li > a { color: #fff; }
.layout-transparent .nav-wrapper:not(.scrolled) .menu > li > a::after { background: var(--color-brass-light); }
.layout-transparent .nav-wrapper.scrolled {
  background: rgba(250, 247, 240, 0.97);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

/* ==========================================================================
   4. Sticky header
   ========================================================================== */
.site-header.is-sticky {
  background: transparent;
  box-shadow: none;
}
.site-header.is-sticky .header-contact { display: none; }

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer {
  background:
    radial-gradient(680px circle at 88% -200px, rgba(181, 138, 75, 0.1) 0%, transparent 62%),
    var(--color-bg-dark-deep);
}
.site-footer::before {
  background: linear-gradient(90deg, transparent, var(--color-brass), transparent);
  height: 2px;
}
.footer-widgets { padding: 4em 0 2.5em; }
.footer-widgets .widget-title { color: var(--color-brass-light); }
.footer-widgets ul li a:hover { color: var(--color-brass-light); }
.site-info { padding: 1.8em 0; }
.site-info a:hover { color: var(--color-brass-light); }

/* ==========================================================================
   6. Home — Hero + sello del centenario
   ========================================================================== */
.fh-hero {
  position: relative;
  overflow: hidden;
  min-height: min(70vh, 650px);
  padding: 4em 0;
  display: flex;
  align-items: center;
  background: var(--green-950);
}

.fh-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 177.78vh;
  height: 56.25vw;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fh-hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  border: none;
  opacity: 0.5;
  pointer-events: none;
}

.fh-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(760px circle at 50% -8%, rgba(16, 185, 129, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(4, 20, 14, 0.72) 0%, rgba(5, 42, 30, 0.82) 55%, rgba(4, 18, 13, 0.94) 100%);
}
/* Trama sutil de líneas — textura de grabado, no rejilla de app */
.fh-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 45%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 45%, #000 35%, transparent 80%);
}

.fh-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 940px;
  margin: 0 auto;
  padding: 6em 0 7em;
}

/* Marco grabado (doble filete de latón) */
.fh-hero-frame {
  position: absolute;
  inset: 26px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(202, 161, 74, 0.28);
  box-shadow: inset 0 0 0 4px rgba(202, 161, 74, 0.08);
}
@media (max-width: 640px) { .fh-hero-frame { inset: 14px; } }

/* Emblema del Centenario — logo oficial flotando sobre el vídeo (sin placa) */
.fh-hero-emblem {
  display: inline-flex;
  margin: 0 auto 24px;
  animation: fh-emblem-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fh-hero-emblem img {
  height: 160px;
  width: auto;
  max-width: 320px;
  display: block;
  object-fit: contain;
  /* Sombra suave para separarlo del vídeo sin necesidad de caja */
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.5));
}
@media (max-width: 640px) { .fh-hero-emblem img { height: 120px; } }
@keyframes fh-emblem-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fh-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-brass-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}
.fh-hero-kicker::before,
.fh-hero-kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(202, 161, 74, 0.6);
}

.fh-hero-title {
  color: #fdfaf3;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0.5em auto 0.4em;
  max-width: 24ch;
}
.fh-hero-title em {
  font-style: italic;
  color: var(--color-brass-light);
}

.fh-hero-sub {
  color: rgba(240, 234, 220, 0.82);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.75;
  max-width: 60ch;
  margin: 0 auto;
}

.fh-hero-cta {
  margin-top: 2.6em;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. Home — Banda de cifras (grabado institucional)
   ========================================================================== */
.fh-stats {
  position: relative;
  z-index: 5;
  margin-top: -54px;
}
.fh-stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brass);
  box-shadow: 0 24px 50px -24px rgba(4, 20, 14, 0.3);
  padding: 2.2em 1em;
  text-align: center;
}
.fh-stat {
  padding: 0.4em 1.5em;
  position: relative;
}
.fh-stat + .fh-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 58%;
  background: linear-gradient(180deg, transparent, var(--brass-line), transparent);
}
.fh-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--color-primary);
}
.fh-stat-label {
  display: block;
  margin-top: 8px;
  color: var(--color-text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ==========================================================================
   8. Home — Secciones y cabeceras
   ========================================================================== */
.fh-section { padding: 5.5em 0; background: var(--paper); }
.fh-section-alt { background: var(--paper-alt); }
.fh-page-content { padding: 4em 0; background: var(--paper); }

.fh-section-head { text-align: center; margin-bottom: 3.2em; }
.fh-section-head h2 {
  margin: 0.35em 0 0;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.fh-section-head .fh-eyebrow { justify-content: center; }

.fh-section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5em;
  flex-wrap: wrap;
  margin-bottom: 2.6em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--brass-line);
}
.fh-section-head-row h2 { margin: 0.3em 0 0; font-weight: 600; }

/* ==========================================================================
   9. Home — Servicios
   ========================================================================== */
.fh-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
}

.fh-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 2.2em 2em;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.fh-service-card:hover {
  transform: translateY(-3px);
  border-color: var(--brass-line);
  box-shadow: 0 18px 36px -20px rgba(4, 20, 14, 0.28);
}

/* Medallón de latón para el icono (contorno, no relleno) */
.fh-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--color-brass);
  color: var(--color-primary);
  background: rgba(181, 138, 75, 0.06);
  margin-bottom: 1.2em;
  transition: background var(--transition-base), color var(--transition-base);
}
.fh-service-card:hover .fh-service-icon {
  background: var(--color-primary);
  color: #f7f2e6;
  border-color: var(--color-primary);
}

.fh-service-card h3 {
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.45em;
}
.fh-service-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.fh-service-card .fh-link-arrow { margin-top: 1.3em; }

/* ==========================================================================
   10. Home — Panel CTA
   ========================================================================== */
.fh-cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fdfaf3;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--color-primary) 60%, var(--green-950) 100%);
  padding: 4.2em 2.5em;
}
/* Doble filete de latón interior */
.fh-cta-panel::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(202, 161, 74, 0.3);
  pointer-events: none;
}
.fh-cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(460px circle at 50% -10%, rgba(202, 161, 74, 0.16) 0%, transparent 60%);
}
.fh-cta-panel h2 {
  position: relative;
  color: #fdfaf3;
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 0.5em;
}
.fh-cta-panel p {
  position: relative;
  color: rgba(240, 234, 220, 0.85);
  max-width: 62ch;
  margin: 0 auto 2em;
  font-size: 1.05rem;
  line-height: 1.75;
}
.fh-cta-panel .fh-btn { position: relative; }

/* ==========================================================================
   11. Home — Testimonios
   ========================================================================== */
.fh-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5em;
}
.fh-testimonial {
  position: relative;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 2.4em 2em 2em;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.fh-testimonial:hover {
  border-color: var(--brass-line);
  box-shadow: 0 18px 36px -20px rgba(4, 20, 14, 0.25);
}
.fh-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 2px;
  left: 22px;
  font-family: var(--font-heading);
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(181, 138, 75, 0.28);
  pointer-events: none;
}
.fh-stars { color: var(--color-brass); font-size: 0.95rem; letter-spacing: 3px; }
.fh-testimonial p {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--color-text);
  flex: 1;
  margin: 0;
}
.fh-testimonial footer { font-family: 'Inter', sans-serif; font-size: 0.85rem; }
.fh-testimonial footer strong { display: block; color: var(--color-primary); }
.fh-testimonial footer span { color: var(--color-text-muted); }

/* ==========================================================================
   12. Home — Noticias
   ========================================================================== */
.fh-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
}
.fh-news-grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.fh-news-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.fh-news-card:hover {
  transform: translateY(-3px);
  border-color: var(--brass-line);
  box-shadow: 0 18px 36px -20px rgba(4, 20, 14, 0.28);
}
.fh-news-media { position: relative; display: block; overflow: hidden; }
.fh-news-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fh-news-card:hover .fh-news-media img { transform: scale(1.04); }
.fh-news-date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #f7f2e6;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-left: 2px solid var(--color-brass);
}
.fh-news-date-plain {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--color-brass-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 0 0 0.6em;
}
.fh-news-body { display: flex; flex-direction: column; flex: 1; padding: 1.5em; }
.fh-news-body h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.5em; }
.fh-news-body h3 a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
.fh-news-body h3 a:hover { color: var(--color-brass-dark); }
.fh-news-body > p { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; margin: 0; }
.fh-news-body .fh-link-arrow { margin-top: auto; padding-top: 1.4em; }

/* ==========================================================================
   13. Home — Agenda / X
   ========================================================================== */
.fh-agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3em;
  max-width: 1100px;
  margin: 0 auto;
}
.fh-agenda-title { font-size: 1.55rem; font-weight: 600; margin: 0.3em 0 1.3em; }

.fh-events-list { display: flex; flex-direction: column; margin-bottom: 1.6em; }
.fh-event {
  display: flex;
  gap: 1.3em;
  align-items: flex-start;
  padding: 1.1em 0;
  border-top: 1px solid var(--color-border);
  text-decoration: none !important;
  transition: padding-left var(--transition-fast);
}
.fh-event:last-child { border-bottom: 1px solid var(--color-border); }
.fh-event:hover { padding-left: 8px; }

.fh-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 6px;
  border: 1px solid var(--color-brass);
  background: rgba(181, 138, 75, 0.06);
  flex-shrink: 0;
}
.fh-event-month {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brass-dark);
  line-height: 1;
}
.fh-event-day {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.1;
  margin-top: 3px;
}
.fh-event-info { min-width: 0; }
.fh-event-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.fh-event-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}
.fh-event:hover .fh-event-name { color: var(--color-brass-dark); }

.fh-tweet-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-brass);
  padding: 1.5em;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   14. Home — Colaboradores
   ========================================================================== */
.fh-partners {
  padding: 3.2em 0;
  background: var(--paper);
  border-top: 1px solid var(--color-border);
  overflow-x: hidden;
}
.fh-partners-label {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-brass-dark);
  font-weight: 700;
  margin: 0 0 1.9em;
}
.fh-partners-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2.5em; }
.fh-partner {
  display: flex;
  align-items: center;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity var(--transition-base), filter var(--transition-base);
}
.fh-partner:hover { opacity: 1; filter: grayscale(0); }
.fh-partner img { max-height: 46px; max-width: 140px; width: auto; }

/* ==========================================================================
   15. Modo oscuro
   ========================================================================== */
[data-theme="dark"] body { background: var(--color-bg); }

[data-theme="dark"] .header-contact { background: var(--color-bg-dark); }
[data-theme="dark"] .nav-wrapper {
  background: rgba(6, 13, 23, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .nav-wrapper.scrolled { background: rgba(6, 13, 23, 0.97); }
[data-theme="dark"] .main-nav .menu > li > a { color: #e7e2d4; }
[data-theme="dark"] .main-nav .menu > li > a:hover,
[data-theme="dark"] .main-nav .menu > li > a:focus,
[data-theme="dark"] .main-nav .menu > li.current-menu-item > a,
[data-theme="dark"] .main-nav .menu > li.current-menu-ancestor > a { color: var(--color-brass-light); }
[data-theme="dark"] .nav-search .search-field { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #e2e8f0; }
[data-theme="dark"] .flavor-dm-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: var(--color-brass-light); }
[data-theme="dark"] .menu-toggle { border-color: rgba(255,255,255,0.2); color: #e7e2d4; }

[data-theme="dark"] .fh-section { background: var(--color-bg); }
[data-theme="dark"] .fh-section-alt { background: var(--color-bg-alt); }
[data-theme="dark"] .fh-page-content { background: var(--color-bg); }
[data-theme="dark"] .fh-stats-band,
[data-theme="dark"] .fh-service-card,
[data-theme="dark"] .fh-testimonial,
[data-theme="dark"] .fh-news-card,
[data-theme="dark"] .fh-tweet-card { background: var(--color-bg-alt); border-color: #334155; }
[data-theme="dark"] .fh-stat-number,
[data-theme="dark"] .fh-service-card h3,
[data-theme="dark"] .fh-event-day,
[data-theme="dark"] .fh-event-name,
[data-theme="dark"] .fh-news-body h3 a { color: #e7e2d4; }
[data-theme="dark"] .fh-service-card p,
[data-theme="dark"] .fh-testimonial p { color: #cbd5e1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .fh-hero-emblem { animation: none; }
}

/* ==========================================================================
   16. Archivos CPT y Ventajas (fh-arch-*, fh-card, fh-chip)
   Eventos, Bolsa de Representaciones y Ventajas — registro heritage.
   ========================================================================== */
.fh-arch {
  background: var(--paper-alt);
  padding: 4em 0 5em;
  min-height: 60vh;
}

.fh-arch-head { margin-bottom: 2.8em; text-align: left; }
.fh-arch-head h1 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.35em 0 0.25em;
}
.fh-arch-sub {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin: 0;
  max-width: 60ch;
}
.fh-arch-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5em;
  flex-wrap: wrap;
}

/* Rejillas */
.fh-arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.6em;
  align-items: stretch;
}
.fh-arch-list {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

/* Tarjeta heritage base */
.fh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e7dfcd;
  border-top: 2px solid var(--color-brass);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(58, 42, 18, 0.04), 0 4px 16px rgba(58, 42, 18, 0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}
.fh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(58, 42, 18, 0.09), 0 3px 8px rgba(58, 42, 18, 0.05);
  border-color: #cdae7d;
  border-top-color: var(--color-brass);
}

.fh-card-body { padding: 1.7em 1.8em 1.4em; flex: 1; display: flex; flex-direction: column; }
.fh-card-foot {
  padding: 1.2em 1.8em;
  border-top: 1px solid #efe8d8;
  background: #fcfaf4;
  margin-top: auto;
}

.fh-card-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.4em;
}
.fh-card-title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.fh-card-title a:hover { color: var(--color-brass-dark); }

.fh-card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.1em;
}
.fh-card-excerpt p { margin: 0; color: inherit; font-size: inherit; }

/* Chips */
.fh-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1em;
}
.fh-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(6, 78, 59, 0.07);
  color: var(--color-primary);
  border: 1px solid rgba(6, 78, 59, 0.15);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.fh-chip-muted {
  background: #f6f1e4;
  color: var(--color-brass-dark);
  border-color: #e3d3ae;
}

/* Metadatos */
.fh-meta-list { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.fh-meta-inline { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fh-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  font-size: 0.88rem;
}
.fh-meta-row svg { color: var(--color-brass); flex-shrink: 0; }
.fh-meta-row strong { color: var(--color-text); font-weight: 600; }
.fh-meta-commission { color: var(--color-primary); font-weight: 700; }

.fh-btn-block { width: 100%; }

/* Oferta: tarjeta horizontal con panel lateral */
.fh-offer { flex-direction: row; }
.fh-offer-main { padding: 1.7em 1.8em; flex: 1; min-width: 0; }
.fh-offer-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.9em;
}
.fh-offer-company svg { color: var(--color-brass); }
.fh-offer-side {
  width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 1.7em 1.5em;
  background: #fcfaf4;
  border-left: 1px solid #efe8d8;
}
.fh-offer-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brass-dark);
}

/* Paginación */
.fh-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2.5em;
}
.fh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #e3d3ae;
  border-radius: 4px;
  background: #ffffff;
  color: var(--color-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.fh-pagination .page-numbers:hover { background: #f6f1e4; }
.fh-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: none;
}

/* Estado vacío */
.fh-empty {
  grid-column: 1 / -1;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #d9c9a5;
  border-radius: 6px;
  padding: 3.5em 2em;
}
.fh-empty p { color: var(--color-text-muted); margin: 0; }

@media (max-width: 760px) {
  .fh-arch { padding: 2.5em 0 3.5em; }
  .fh-offer { flex-direction: column; }
  .fh-offer-side {
    width: 100%;
    border-left: none;
    border-top: 1px solid #efe8d8;
    flex-direction: row;
    justify-content: space-between;
  }
  .fh-offer-side .fh-btn { width: auto; }
}

/* Modo oscuro — archivos */
[data-theme="dark"] .fh-arch { background: var(--color-bg); }
[data-theme="dark"] .fh-card,
[data-theme="dark"] .fh-empty { background: var(--color-bg-alt); border-color: #334155; border-top-color: var(--color-brass-dark); }
[data-theme="dark"] .fh-card-foot,
[data-theme="dark"] .fh-offer-side { background: rgba(0, 0, 0, 0.2); border-color: #334155; }
[data-theme="dark"] .fh-card-title a,
[data-theme="dark"] .fh-arch-head h1 { color: #e7e2d4; }
[data-theme="dark"] .fh-chip { background: rgba(16, 185, 129, 0.12); color: #a7f3d0; border-color: rgba(16, 185, 129, 0.25); }
[data-theme="dark"] .fh-chip-muted { background: rgba(181, 138, 75, 0.12); color: var(--color-brass-light); border-color: rgba(181, 138, 75, 0.3); }
[data-theme="dark"] .fh-pagination .page-numbers { background: var(--color-bg-alt); border-color: #334155; color: #e7e2d4; }

/* ==========================================================================
   16. Bolsa de Trabajo - Single Oferta
   ========================================================================== */
.fh-oferta-main {
    padding: 60px 20px;
    background: var(--paper);
}
.fh-oferta-container {
    max-width: 1100px;
    margin: 0 auto;
}
.fh-oferta-back a {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brass-dark);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s;
}
.fh-oferta-back a:hover {
    color: var(--green-900);
}
.fh-oferta-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}
@media (min-width: 992px) {
    .fh-oferta-layout {
        grid-template-columns: 2fr 1fr;
        gap: 60px;
    }
}

.fh-oferta-content {
    background: #fff;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.fh-oferta-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-brass);
    color: var(--color-brass-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    border-radius: 2px;
}

.fh-oferta-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--green-900);
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.1;
}

.fh-oferta-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 36px;
}
.fh-meta-item {
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.fh-oferta-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #222;
    font-family: 'Inter', sans-serif;
}
.fh-oferta-body p {
    margin-bottom: 1.5em;
}

.fh-oferta-card {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}
.fh-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--green-900);
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-brass);
}

.fh-card-list {
    margin: 0 0 30px 0;
    font-family: 'Inter', sans-serif;
}
.fh-card-list dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 6px;
}
.fh-card-list dd {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 24px 0;
}
.fh-card-list dd.fh-highlight {
    color: var(--green-900);
    font-size: 1.15rem;
}

.fh-oferta-btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    background: var(--green-900);
    color: #fff;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
}
.fh-oferta-btn-primary:hover {
    background: #000;
    color: #fff;
}
.fh-oferta-btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid var(--green-900);
    color: var(--green-900);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
}
.fh-oferta-btn-outline:hover {
    background: var(--paper);
}
