/* ---------- Fuentes autohospedadas (variable, latin) ---------- */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/cinzel-var.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/montserrat-var.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('../fonts/montserrat-italic-var.woff2') format('woff2'); }

/* ============================================================
   Honey Tree Academy — Design System
   Tokens from the client brand book (01-marca/brand.md)
   Fonts: Cinzel (≈ Trajan Pro) display · Montserrat body
   ============================================================ */

:root {
  /* Brand palette (official) */
  --honey-gold: #D8A028;
  --ht-teal: #1D6675;
  --leaf-green: #8AA36D;
  --warm-brown: #6B4A22; /* per RGB 107,74,34 — brand book hex had a typo */
  --white: #FFFFFF;

  /* Derived UI tones */
  --ht-teal-dark: #14505C;
  --ht-teal-deep: #0E3B45;
  --gold-soft: #E8BC5E;
  --gold-tint: #FBF3E0;
  --gold-text: #8A6410; /* dorado legible AA para texto pequeño */
  --cream: #FAF6EE;
  --leaf-tint: #EEF2E6;
  --ink: #22333A;
  --ink-soft: #4A5C63;
  --line: #E7E0D2;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Montserrat", -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(34, 51, 58, 0.07);
  --shadow-md: 0 10px 34px rgba(34, 51, 58, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 80, 92, 0.18);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ht-teal); text-decoration: none; }
button { font-family: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ht-teal);
  line-height: 1.18;
  letter-spacing: 0.02em;
}
h1, h2 { text-wrap: balance; }

/* ---------- Micro-interacciones (vocabulario juguetón compartido) ---------- */
@keyframes htWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) scale(1.1); } 60% { transform: rotate(6deg); } }
@keyframes htFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes htPop { 0%, 76%, 100% { transform: translateY(0) scale(1); } 84% { transform: translateY(-6px) scale(1.15); } 92% { transform: scale(1.05); } }
.card:hover { transform: translateY(-6px) rotate(-0.35deg); box-shadow: var(--shadow-md); }
.card .card-img { transition: transform 0.45s ease; }
.card:hover .card-img { transform: scale(1.045); }
.chip { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.chip:hover { transform: translateY(-3px) rotate(-0.8deg); box-shadow: var(--shadow-sm); }
.tl-item { transition: transform 0.25s ease; }
.tl-item:hover { transform: translateX(5px); }
.tl-item:hover b { color: var(--gold-text); }
@media (prefers-reduced-motion: reduce) {
  .card:hover, .chip:hover, .tl-item:hover { transform: none; }
  .card:hover .card-img { transform: none; }
}

/* ---------- Iconos SVG de marca (sprite inline por página) ---------- */
.ic-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
.ic-16 { width: 16px; height: 16px } .ic-20 { width: 20px; height: 20px }
.ic-24 { width: 24px; height: 24px } .ic-32 { width: 32px; height: 32px }
.ic-40 { width: 40px; height: 40px }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.045em; }
.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.9rem;
}
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46rem; }
.gold { color: var(--honey-gold); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 52rem; margin: 0 auto 3.2rem; }
.section-head .lead { margin: 1rem auto 0; }
.bg-cream { background: var(--cream); }
.bg-teal { background: var(--ht-teal); }
.bg-teal h2, .bg-teal h3 { color: var(--white); }
.bg-teal p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ht-teal-deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--gold-soft); font-weight: 600; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 20px; }
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand img { height: 54px; width: auto; }
.nav ul { display: flex; list-style: none; gap: 26px; align-items: center; }
.nav ul a {
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
  letter-spacing: 0.02em; padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav ul a:hover { color: var(--ht-teal); border-color: var(--honey-gold); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ht-teal); cursor: pointer; }

.lang-toggle {
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; color: var(--ink);
  padding: 7px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.lang-toggle .on { color: var(--gold-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.18s ease; white-space: nowrap;
}
.btn-gold { background: var(--honey-gold); color: #22333A; box-shadow: 0 6px 18px rgba(216, 160, 40, 0.35); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-teal { background: var(--ht-teal); color: var(--white); }
.btn-teal:hover { background: var(--ht-teal-dark); }
.btn-outline { border-color: var(--ht-teal); color: var(--ht-teal); background: transparent; }
.btn-outline:hover { background: var(--ht-teal); color: var(--white); }
.btn-light { background: var(--white); color: var(--ht-teal); }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; min-height: 620px; padding-top: 56px; padding-bottom: 72px;
}
.hero h1 { color: var(--ht-teal); }
.hero h1 .gold { color: #B58114; } /* dorado 3.2:1 sobre crema — AA texto grande */
.hero .lead { margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-media { position: relative; }
.hero-media .photo {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-tint); border: 1px solid rgba(216, 160, 40, 0.4);
  color: var(--warm-brown); font-size: 0.8rem; font-weight: 700;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero-card {
  position: absolute; bottom: -24px; left: -28px;
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-md);
  padding: 14px 20px; display: flex; gap: 12px; align-items: center; font-size: 0.85rem;
}
.hero-card b { color: var(--ht-teal); font-family: var(--font-display); font-size: 1.05rem; display: block; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; color: var(--ht-teal-dark);
  background: var(--leaf-tint); border: 1px solid rgba(138, 163, 109, 0.45);
  padding: 8px 16px; border-radius: 999px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-green); }
.chip.gold { background: var(--gold-tint); border-color: rgba(216, 160, 40, 0.45); color: var(--warm-brown); }
.chip.gold .dot { background: var(--honey-gold); }

/* ---------- Cards / grids ---------- */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .hero-grid > *, .ngt > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .card-body { padding: 22px 24px 26px; }
.card .age {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--warm-brown);
  background: var(--gold-tint); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--ink-soft); }
.card .more { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--gold-text); }

/* Pillar cards (why us) */
.pillar { text-align: center; padding: 34px 26px; }
.pillar .ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--gold-tint); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.pillar h3 { font-size: 1.02rem; }
.pillar p { font-size: 0.87rem; }

/* ---------- Curriculum pillars (Nurture Grow Thrive) ---------- */
.ngt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ngt .col {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border-top: 6px solid var(--honey-gold); box-shadow: var(--shadow-sm);
}
.ngt .col:nth-child(2) { border-top-color: var(--leaf-green); }
.ngt .col:nth-child(3) { border-top-color: var(--ht-teal); }
.ngt h3 { font-size: 1.35rem; margin-bottom: 10px; }
.ngt ul { list-style: none; margin-top: 14px; }
.ngt li { font-size: 0.88rem; color: var(--ink-soft); padding: 6px 0 6px 26px; position: relative; }
.ngt li::before { content: "🐝"; position: absolute; left: 0; font-size: 0.75rem; top: 8px; }

/* ---------- Day timeline ---------- */
.timeline { max-width: 46rem; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--honey-gold), var(--leaf-green), var(--ht-teal));
}
.tl-item { position: relative; padding: 0 0 26px 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 6px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--white); border: 3.5px solid var(--honey-gold);
}
.tl-item:nth-child(3n+2)::before { border-color: var(--leaf-green); }
.tl-item:nth-child(3n)::before { border-color: var(--ht-teal); }
.tl-item b { color: var(--ht-teal); font-size: 0.95rem; }
.tl-item p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Quote / vision ---------- */
.quote {
  text-align: center; max-width: 54rem; margin: 0 auto;
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--white); line-height: 1.5;
}
.quote .attribution { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-top: 1.6rem; }

/* ---------- Enrichment strip ---------- */
.enrich { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.enrich .tag {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 22px; font-size: 0.88rem; font-weight: 600; color: var(--ht-teal-dark);
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ht-teal) 0%, var(--ht-teal-dark) 100%); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); margin-bottom: 0.7rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 40rem; margin: 0 auto 2rem; }
.cta-band .bee-path {
  position: absolute; inset: 0; opacity: 0.1; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, var(--honey-gold) 2px, transparent 2.5px);
  background-size: 46px 46px;
}

/* ---------- Visit / contact ---------- */
.visit-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); padding: 30px;
}
.visit-card h3 { margin-bottom: 12px; }
.visit-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 8px; }
.visit-card b { color: var(--ink); }
.map-ph {
  border-radius: var(--radius); min-height: 320px; position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(29, 102, 117, 0.06), rgba(29, 102, 117, 0.06)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(29, 102, 117, 0.12) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(29, 102, 117, 0.12) 38px 39px),
    var(--leaf-tint);
}
.map-pin {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -100%);
  text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--ht-teal);
}
.map-pin .pin {
  width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--honey-gold);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.map-pin .pin span { transform: rotate(45deg); font-size: 1.1rem; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ht-teal-deep); color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 28px; font-size: 0.86rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
footer.site h4 {
  font-family: var(--font-display); color: var(--white); font-size: 0.95rem;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: rgba(255, 255, 255, 0.8); }
footer.site a:hover { color: var(--gold-soft); }
.foot-brand img { height: 72px; margin-bottom: 14px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25)); }
.foot-tagline { font-family: var(--font-display); color: var(--gold-soft); letter-spacing: 0.14em; font-size: 0.9rem; }
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 22px;
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); text-align: center; line-height: 1.8;
}

/* ---------- Demo ribbon (honesty) ---------- */
.demo-ribbon {
  position: fixed; bottom: 16px; right: 16px; z-index: 90;
  background: var(--ink); color: var(--white); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; opacity: 0.82; pointer-events: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .ngt { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 44px; padding-bottom: 64px; }
  .hero-card { left: 12px; bottom: -18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 60px 0; }
  .grid-3, .grid-2, .ngt { grid-template-columns: 1fr; }
  .nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); gap: 14px;
  }
  .nav ul.open { display: flex; }
  .nav-toggle { display: block; }
  .nav .btn { display: none; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .hide-m { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-card { position: static; margin-top: 18px; display: inline-flex; }
}
