/* ============================================================
   OLGA PALOMARES · CSS COMPARTIDO
   Este archivo contiene únicamente las reglas que son
   IDÉNTICAS en las 15 páginas del sitio: tokens de diseño,
   reset, header/nav, botones, footer, banner de cookies,
   accesibilidad y utilidades de layout.

   Los estilos propios de cada página (heroes, grids de
   servicios, prose de artículos, etc.) se mantienen en el
   <style> de cada HTML, cargado DESPUÉS de este archivo,
   para que puedan sobrescribir sin conflicto por orden de
   cascada cuando el nombre de clase coincide.
   ============================================================ */

/* ── TYPOGRAPHY (self-hosted) ── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-variable.woff2') format('woff2');
}

/* ── DESIGN TOKENS ── */
:root {
  --sage:        #4A7C8E;
  --sage-dark:   #345968;
  --sage-mid:    #6A9BAD;
  --sage-pale:   #E8F2F5;
  --sage-ghost:  #F3F9FB;

  --amber:       #E8963A;
  --amber-dark:  #C97B28;
  --amber-pale:  #FDF0E4;

  --ink:         #1A1A2E;
  --ink-soft:    #3D3D56;
  --slate:       #6B7280;
  --smoke:       #E5E7EB;
  --snow:        #F9F9F8;
  --white:       #FFFFFF;

  --serif:  'Fraunces', Georgia, serif;
  --sans:   'Plus Jakarta Sans', system-ui, sans-serif;

  --max:        1120px;
  --max-prose:  720px;
  --gutter:     clamp(20px, 5vw, 48px);

  --r-sm:  10px;
  --r:     18px;
  --r-lg:  28px;
  --r-xl:  40px;

  --shadow-xs: 0 1px 4px rgba(26,26,46,.06);
  --shadow-sm: 0 2px 12px rgba(26,26,46,.07);
  --shadow:    0 6px 28px rgba(26,26,46,.10);
  --shadow-lg: 0 16px 48px rgba(26,26,46,.14);

  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  260ms;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--snow);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ── LAYOUT HELPERS ── */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(64px,9vw,120px) 0; }
.section--alt   { background: var(--sage-ghost); }
.section--dark  { background: var(--ink); }
.section--amber { background: var(--amber-pale); }
.divider { height: 1px; background: var(--smoke); margin-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -999px; top: 14px;
  background: var(--white); padding: 10px 18px;
  border: 2px solid var(--sage); border-radius: var(--r-sm);
  font-weight: 700; z-index: 9999;
}
.skip-link:focus { left: 14px; }

/* ── READING PROGRESS BAR (solo artículos, inocuo en el resto) ── */
#readingProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--sage), var(--amber));
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── BREADCRUMB (solo artículos, inocuo en el resto) ── */
.breadcrumb {
  padding: clamp(20px,3vw,32px) var(--gutter) 0;
  font-size: .82rem; color: var(--slate);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  max-width: var(--max); margin-inline: auto;
}
.breadcrumb a { color: var(--slate); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--sage); }
.breadcrumb-sep { color: var(--smoke); font-size: .7rem; }

/* ── HEADER / NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(249,249,248,.92);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { border-color: var(--smoke); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.brand-sub  { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--slate); }

.nav-wrap { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-list a {
  display: block; padding: 8px 13px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600; color: var(--slate);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--ink); background: var(--sage-pale); }
.nav-list a.active { color: var(--sage-dark); background: var(--sage-pale); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: var(--r-sm);
  background: transparent; color: var(--slate) !important;
  font-size: .875rem; font-weight: 600;
  box-shadow: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { color: var(--ink) !important; background: var(--sage-pale); }
.nav-cta.active { color: var(--sage-dark) !important; background: var(--sage-pale); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none;
  cursor: pointer; padding: 0; z-index: 300;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-wrap {
    position: fixed; inset: 72px 0 0 0; background: var(--white);
    padding: 32px var(--gutter) 48px; display: flex; flex-direction: column; gap: 32px;
    transform: translateX(100%); transition: transform .35s var(--ease);
    z-index: 100; border-top: 1px solid var(--smoke);
  }
  .nav-wrap.open { transform: none; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav-list a { font-size: 1.1rem; padding: 12px 16px; width: 100%; }
  .nav-cta { width: fit-content; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--sans); font-size: .93rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--dur) var(--ease); text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 17px 36px; font-size: 1rem; }

.btn-primary { background: var(--sage); color: var(--white); box-shadow: 0 4px 20px rgba(74,124,142,.30); }
.btn-primary:hover { background: var(--sage-dark); box-shadow: 0 8px 28px rgba(74,124,142,.38); }

.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 4px 20px rgba(232,150,58,.30); }
.btn-amber:hover { background: var(--amber-dark); box-shadow: 0 8px 28px rgba(232,150,58,.38); }

.btn-outline-sage { background: transparent; color: var(--sage-dark); border-color: var(--sage); }
.btn-outline-sage:hover { background: var(--sage-pale); border-color: var(--sage-dark); }

.btn-outline-amber { background: transparent; color: var(--amber-dark); border-color: var(--amber); }
.btn-outline-amber:hover { background: var(--amber-pale); border-color: var(--amber-dark); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-ghost-dark { background: transparent; color: var(--ink-soft); border-color: var(--smoke); }
.btn-ghost-dark:hover { background: var(--snow); border-color: var(--slate); }

.btn-arrow {
  width: 20px; height: 20px; background: rgba(255,255,255,.22);
  border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; flex-shrink: 0; transition: transform var(--dur) var(--ease);
}
.btn-whatsapp-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: clamp(40px,5vw,64px); }
.section-tag {
  display: inline-block; font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.12;
  color: var(--ink); margin-bottom: 16px;
}
.section-sub { font-size: 1.05rem; color: var(--slate); max-width: 56ch; margin-inline: auto; line-height: 1.75; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sage); border-radius: 2px; flex-shrink: 0; }

/* ── WHATSAPP FLOTANTE (nuevo, común a todas las páginas) ── */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 250;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), bottom var(--dur) var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }
.cookie-banner-visible .whatsapp-float { bottom: calc(var(--cookie-banner-height, 96px) + 28px); }
@media (max-width: 560px) { .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* ── FOOTER ── */
.site-footer { background: var(--white); border-top: 1px solid var(--smoke); padding: 52px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.footer-brand-sub  { font-size: .78rem; color: var(--slate); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-desc { font-size: .88rem; color: var(--slate); line-height: 1.7; max-width: 30ch; }
.footer-college-badge { display: block; width: 92px; height: auto; margin-top: 18px; border-radius: 14px; box-shadow: 0 6px 20px rgba(26,26,46,.12); }

.footer-col-title { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .88rem; color: var(--slate); font-weight: 500; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--sage); }

.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--slate); margin-bottom: 8px; }
.footer-contact-item a { color: var(--slate); transition: color var(--dur) var(--ease); }
.footer-contact-item a:hover { color: var(--sage); }

.footer-bottom {
  border-top: 1px solid var(--smoke); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: .8rem; color: var(--slate); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8rem; color: var(--slate); transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: var(--ink); }
.footer-cookie-settings { border: 0; padding: 0; background: transparent; color: var(--slate); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color var(--dur) var(--ease); }
.footer-cookie-settings:hover { color: var(--ink); }

/* Botón CTA dentro del footer */
.footer-contact-item a.btn-primary {
  color: var(--white) !important;
}

.footer-contact-item a.btn-primary:hover {
  color: var(--white) !important;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: rgba(255,255,255,.96); border: 1px solid var(--smoke);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
}
.cookie-text { font-size: .875rem; color: var(--ink-soft); line-height: 1.5; flex: 1 1 280px; }
.cookie-text a { color: var(--sage); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 18px; border-radius: 999px; font-family: var(--sans);
  font-size: .85rem; font-weight: 700; cursor: pointer; border: none;
  transition: all var(--dur) var(--ease);
}
.cookie-btn--accept { background: var(--sage); color: var(--white); box-shadow: 0 4px 14px rgba(74,124,142,.26); }
.cookie-btn--accept:hover { background: var(--sage-dark); }
.cookie-btn--reject { background: var(--snow); color: var(--slate); border: 1px solid var(--smoke); }
.cookie-btn--reject:hover { background: var(--smoke); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-text { flex: 0 1 auto; }
  .cookie-actions { justify-content: flex-end; }
}

/* ── FUNCIONALIDADES PRÓXIMAMENTE ── */
.future-actions-grid,
.contact-future {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.contact-future--single { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
.future-actions-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
.future-action {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 12px;
  padding: 18px 20px;
  border: 1px dashed var(--sage-mid);
  border-radius: var(--r-lg);
  background: var(--sage-ghost);
  color: var(--ink-soft);
}
.future-action__title { font-size: .94rem; font-weight: 800; color: var(--ink); }
.future-action__badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sage-pale);
  color: var(--sage-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.future-action__text { grid-column: 1 / -1; font-size: .82rem; line-height: 1.55; }
.future-action--dark {
  max-width: 660px;
  margin: 22px auto 0;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  text-align: left;
}
.future-action--dark .future-action__title { color: var(--white); }
.future-action--dark .future-action__badge { background: var(--amber); color: var(--ink); }
@media (max-width: 680px) {
  .future-actions-grid,
  .contact-future { grid-template-columns: 1fr; }
}

/* ── FAQ ACCORDION (reutilizado en contacto / deporte / servicios) ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--smoke); border-radius: var(--r); overflow: hidden; transition: box-shadow var(--dur) var(--ease); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: .975rem; font-weight: 700; color: var(--ink);
  text-align: left; transition: background var(--dur) var(--ease);
}
.faq-btn:hover, .faq-btn[aria-expanded="true"] { background: var(--sage-ghost); }
.faq-chevron {
  width: 28px; height: 28px; border-radius: 50%; background: var(--sage-pale);
  display: grid; place-items: center; font-size: .75rem; color: var(--sage-dark);
  flex-shrink: 0; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq-btn[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); background: var(--sage); color: var(--white); }
.faq-body { padding: 0 24px 0; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .3s var(--ease); }
.faq-body.open { padding: 0 24px 20px; max-height: 300px; }
.faq-body p { font-size: .93rem; color: var(--slate); line-height: 1.72; }

/* ── ACCESSIBILITY ── */
a:focus-visible, button:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   FIX MENÚ MÓVIL
   Hace que el menú móvil sea una capa opaca a pantalla completa
   y no se mezcle con el contenido del hero.
   ============================================================ */

@media (max-width: 860px) {
  .site-header {
    z-index: 1000;
    /* El backdrop-filter convierte a .site-header en el "punto de referencia"
       de sus elementos position:fixed (como el menú), en vez de usar toda la
       pantalla. Lo desactivamos aquí y usamos un fondo casi sólido en su lugar
       para que el menú vuelva a posicionarse respecto a toda la pantalla. */
    backdrop-filter: none;
    background: rgba(249, 249, 248, .98);
  }

  .nav-wrap {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--white) !important;
    padding: 32px var(--gutter) 48px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    transform: translateX(100%) !important;
    transition: transform .35s var(--ease) !important;
    z-index: 999 !important;
    border-top: 1px solid var(--smoke) !important;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-wrap.open {
    transform: translateX(0) !important;
  }

  .nav-wrap nav,
  .nav-list {
    width: 100%;
  }

  .nav-list {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .nav-list a {
    width: 100% !important;
    padding: 14px 18px !important;
    border-radius: var(--r-sm);
    font-size: 1.05rem !important;
    background: transparent;
  }

  .nav-list a.active {
    background: var(--sage-pale);
  }

  .nav-cta {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0;
    padding: 14px 18px;
    border-radius: var(--r-sm);
    font-size: 1.05rem;
  }
}
.footer-brand-block {
  max-width: 300px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 20px;
}
