/* ============================================================
   ACADEMIA JULITA — Sitio web · Estilos compartidos
   Paleta: teal #28696F + sand + blanco
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --teal:        #28696F;
  --teal-700:    #1F555A;
  --teal-800:    #163E42;
  --teal-300:    #6B9CA0;
  --teal-100:    #DDE9EA;
  --teal-50:     #EEF4F4;

  --sand:        #E8DBC7;
  --sand-light:  #F4ECDD;
  --sand-50:     #FAF5EC;
  --sand-200:    #DCC9AB;
  --sand-700:    #8C7553;

  --ink:         #1B2B2D;
  --ink-soft:    #3F4E50;
  --ink-mute:    #6E7B7D;
  --ink-faint:   #A1ACAE;

  --white:       #FFFFFF;
  --bg:          #FFFFFF;
  --bg-soft:     #FAFBFB;

  --serif:       'Newsreader', 'Fraunces', Georgia, serif;
  --sans:        'Hanken Grotesk', 'Inter', -apple-system, system-ui, sans-serif;

  --radius-sm:   6px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(40,105,111,.04), 0 8px 28px rgba(40,105,111,.07);
  --shadow-soft: 0 1px 2px rgba(40,105,111,.05);
  --shadow-lift: 0 6px 24px rgba(40,105,111,.12);

  --container:   1320px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   NAV (compartido entre todas las páginas)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(40,105,111,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 85px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; padding-left: 0; }
.nav-logo img { height: 76px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-family: 'Manrope', 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--teal); text-shadow: 0 0 .6px currentColor, 0 0 .6px currentColor; }
.nav-links a.is-current { color: var(--teal); }
.nav-links a.is-current::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--teal);
  border-radius: 2px;
}
.nav-links a.nav-cta {
  background: var(--teal); color: var(--white) !important;
  padding: 11px 20px; border-radius: var(--radius-pill);
  font-family: 'Manrope', 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .2s, transform .15s;
}
.nav-links a.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--teal-700); }
.nav-cta:active { transform: scale(.97); }

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--teal);
  margin-right: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-logo img { height: 88px; }
  .nav-inner { padding: 0 16px; height: 80px; }
  .container { padding: 0 24px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 88vw); height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 28px 28px;
    box-shadow: -8px 0 32px rgba(40,105,111,.12);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a {
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--teal-50);
  }
  .nav-links a.is-current::after { display: none; }
  .nav-links a.nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: 0;
  }
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(20,30,32,.4);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    z-index: 49;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

/* ============================================================
   TYPE
   ============================================================ */
.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  margin: 0;
}
.h-display em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}

.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.h-section em { font-style: italic; color: var(--teal); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display: inline-block;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   PAGE HERO (común a páginas internas)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 84px 0 64px;
  background: var(--white);
  overflow: hidden;
}
.page-hero.is-dark {
  background: var(--teal-800);
  color: var(--white);
}
.page-hero.is-dark .h-display { color: var(--white); }
.page-hero.is-dark .h-display em { color: var(--sand); }
.page-hero.is-dark .lede { color: rgba(255,255,255,.78); }
.page-hero.is-dark .eyebrow { color: var(--sand); }
.page-hero.is-dark .crumb { color: rgba(255,255,255,.6); }
.page-hero.is-dark .crumb a:hover { color: var(--white); }

.page-hero.is-sand { background: var(--sand-50); }

.crumb {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 18px;
  letter-spacing: .02em;
}
.crumb a:hover { color: var(--teal); }
.crumb .sep { margin: 0 8px; opacity: .5; }

.page-hero .h-display { margin: 18px 0 22px; }
.page-hero .lede { max-width: 720px; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 72px 0; } }

.sec-sand { background: var(--sand-50); }
.sec-teal { background: var(--teal); color: var(--white); }
.sec-teal .h-section { color: var(--white); }
.sec-teal .h-section em { color: var(--sand); }
.sec-teal .lede { color: rgba(255,255,255,.82); }
.sec-teal .eyebrow { color: var(--sand); }
.sec-dark { background: var(--teal-800); color: var(--white); }
.sec-dark .h-section { color: var(--white); }
.sec-dark .h-section em { color: var(--sand); }
.sec-dark .lede { color: rgba(255,255,255,.78); }
.sec-dark .eyebrow { color: var(--sand); }

.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head.is-left { text-align: left; margin: 0 0 40px; }
.section-head .lede { margin: 18px auto 0; }
.section-head.is-left .lede { margin-left: 0; margin-right: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--white);
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  border: 0;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(40,105,111,.22);
}
.btn-primary:hover { background: var(--teal-700); box-shadow: 0 6px 20px rgba(40,105,111,.32); color: var(--white); }
.btn-primary:active { transform: scale(.97); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--teal);
  padding: 15px 25px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--teal);
  transition: background .2s, color .2s, transform .15s;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline:active { transform: scale(.97); }

.btn-outline.is-light {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline.is-light:hover {
  background: var(--white); color: var(--teal);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft);
  padding: 14px 18px;
  font-weight: 500; font-size: 15px;
  border-radius: var(--radius-pill);
  transition: color .2s, background .2s;
}
.btn-ghost:hover { color: var(--teal); background: var(--teal-50); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white) !important;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 4px 14px rgba(37,211,102,.28);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-whatsapp:hover { background: #1FB957; box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.btn-whatsapp:active { transform: scale(.97); }

/* ============================================================
   CARDS / COMMON COMPONENTS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid rgba(40,105,111,.08);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--teal-100);
}

.callout {
  border-left: 3px solid var(--teal);
  background: var(--teal-50);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 22px 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.callout strong { color: var(--teal); font-weight: 600; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  border: 1px solid var(--teal-100);
  color: var(--teal);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
}

.image-slot {
  background: var(--sand-50);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: var(--sand-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  min-height: 320px;
  gap: 14px;
}
.image-slot svg { width: 44px; height: 44px; opacity: .5; }

/* ============================================================
   FOOTER (compartido)
   ============================================================ */
.site-footer {
  background: var(--white);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(40,105,111,.08);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

.foot-brand img { height: 110px; width: auto; margin-bottom: 14px; }
.foot-brand p {
  font-size: 14px; color: var(--ink-mute);
  max-width: 320px; margin: 0;
  line-height: 1.55;
}
.foot-col h4 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.foot-col p, .foot-col a {
  font-size: 14.5px; color: var(--ink-soft);
  line-height: 1.55; margin: 0 0 6px; display: block;
}
.foot-col a:hover { color: var(--teal); }
.foot-bottom {
  border-top: 1px solid rgba(40,105,111,.08);
  padding-top: 22px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-mute);
  flex-wrap: wrap; gap: 12px;
}
.foot-bottom a:hover { color: var(--teal); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  background: var(--white);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 10px 40px rgba(40,105,111,.18);
  display: flex; align-items: center; gap: 24px;
  z-index: 100;
  max-width: 880px; margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.cookie-banner.is-on {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.cookie-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1;
  line-height: 1.5;
}
.cookie-banner p a { color: var(--teal); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: background .2s;
}
.cookie-btn-accept {
  background: var(--teal); color: var(--white);
}
.cookie-btn-accept:hover { background: var(--teal-700); }
.cookie-btn-reject {
  background: transparent; color: var(--ink-soft);
}
.cookie-btn-reject:hover { background: var(--teal-50); }
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page { padding: 60px 0 100px; }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  color: var(--ink);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal-content p, .legal-content li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--teal); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--teal-700); }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-meta {
  font-size: 13px;
  color: var(--ink-mute);
  border: 1px solid var(--teal-100);
  background: var(--teal-50);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* SR only utility */
.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;
}
