/* Inspire Behavior Services — base: tokens, type, buttons, header, menu, veil, footer */

:root {
  --teal: #19b5a8;
  --teal-700: #0b726a;
  --blue: #2a7fc0;
  --indigo: #314896;
  --night: #161f52;
  --night-2: #1f2c70;
  --star: #fec544;
  --star-deep: #f2a81d;
  --sun: #f28c28;
  --pink: #e1538b;
  --leaf: #7cc242;

  --ink: #1b2559;
  --text: #34406b;
  --muted: #5a6488;
  --bg: #fbfbf8;
  --surface: #ffffff;
  --sky: #eaf7f5;
  --mist: #eef2fb;
  --cream: #fff7e3;
  --line: rgba(27, 37, 89, 0.12);

  --grad: linear-gradient(100deg, var(--teal) 0%, var(--blue) 55%, var(--indigo) 100%);
  --grad-deep: linear-gradient(110deg, #0b7f76 0%, #2a6fb5 55%, #2e3f8f 100%);
  --grad-gold: linear-gradient(180deg, #ffd66b, #f5a623);

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --r-xl: 48px;
  --shadow-s: 0 2px 10px rgba(27, 37, 89, 0.06);
  --shadow-m: 0 16px 40px -16px rgba(27, 37, 89, 0.25);
  --shadow-l: 0 40px 80px -30px rgba(27, 37, 89, 0.35);
  --shadow-gold: 0 12px 28px -10px rgba(242, 168, 29, 0.65);

  --f-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-brand: 'Montserrat', 'Nunito', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 50;
  --z-menu: 60;
  --z-veil: 100;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
main:focus { outline: none; }
::selection { background: var(--star); color: var(--ink); }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- language: only the active language is rendered ---------- */
html[lang='en'] body [lang='es'],
html[lang='es'] body [lang='en'] { display: none !important; }

/* ---------- utilities ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.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 {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 800; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- type ---------- */
.h1, .h2, .h3, h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); }
.h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.2; }
.lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; color: var(--text); max-width: 60ch; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-style: normal;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-brand); font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-700);
  margin-bottom: 1rem;
}
.eyebrow .i { width: 1.1em; height: 1.1em; color: var(--star-deep); }
.on-dark .eyebrow { color: var(--star); }
.on-dark .eyebrow .i { color: var(--star); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1rem; }
.section-head--center .lead { margin-inline: auto; }

.pill {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.4em 0.9em; border-radius: 999px;
  background: var(--sky); color: var(--teal-700);
  font-weight: 800; font-size: 0.85rem;
}
.pill .i { width: 1.05em; height: 1.05em; }
.pill--glow { background: rgba(254, 197, 68, 0.14); color: var(--star); margin-top: 1.2rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 800; color: var(--teal-700); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 2px; }
.text-link .i { transition: transform 0.25s var(--ease); }
.text-link:hover .i { transform: translateX(4px); }
.on-dark .text-link { color: var(--star); }

.star-list { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.star-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.star-list .i { color: var(--star-deep); width: 1.3em; height: 1.3em; margin-top: 0.12em; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.75em 1.4em;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn--lg { min-height: 56px; padding: 0.9em 1.7em; font-size: 1.05rem; }
.btn--star { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn--star:hover { box-shadow: 0 18px 34px -12px rgba(242, 168, 29, 0.8); }
.btn__star { transition: transform 0.6s var(--ease); }
.btn:hover .btn__star { transform: rotate(144deg) scale(1.15); }
.btn--grad { background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-m); }
.btn--ghost { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.btn--glass { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.24); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 12px; left: 50%; z-index: var(--z-header);
  width: min(100% - 24px, 1280px); transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow-s);
  transition: box-shadow 0.3s, top 0.3s var(--ease);
}
.site-header.is-scrolled { top: 8px; box-shadow: var(--shadow-m); }
.site-header__bar {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 6px 8px 6px 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 62px; height: auto; transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--f-brand); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__sub {
  font-family: var(--f-brand); font-weight: 700; font-size: 0.56rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal-700); margin-top: 4px;
}
.brand--light .brand__name { background: linear-gradient(100deg, #6fe3d8, #a9c8ff); -webkit-background-clip: text; background-clip: text; }
.brand--light .brand__sub { color: #b9c6ef; }

.nav { margin-inline: auto; display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 800; font-size: 0.95rem; color: var(--ink); text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav__link:hover { background: var(--sky); color: var(--teal-700); }
.nav__link[aria-current='page'] { color: var(--teal-700); }
.nav__link[aria-current='page']::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 7px; height: 7px;
  background: var(--star-deep); transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__cta { display: none; }

.lang-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 92px; height: 44px; padding: 4px; border: 0; border-radius: 999px;
  background: var(--mist); font-family: var(--f-brand); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.08em; color: var(--muted);
}
.lang-switch__opt { position: relative; z-index: 1; text-align: center; transition: color 0.3s; }
.lang-switch__knob {
  position: absolute; top: 4px; left: 4px; width: 42px; height: 36px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-s);
  transition: transform 0.5s var(--ease);
}
.lang-switch__knob svg {
  position: absolute; top: -7px; right: -5px; width: 16px; height: 16px; fill: var(--star-deep);
  transition: transform 0.6s var(--ease);
}
html[lang='en'] .lang-switch__opt:nth-of-type(2),
html[lang='es'] .lang-switch__opt:nth-of-type(3) { color: var(--ink); }
html[lang='es'] .lang-switch__knob { transform: translateX(42px); }
html[lang='es'] .lang-switch__knob svg { transform: rotate(144deg); }

.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: var(--ink); color: #fff;
}
.menu-btn .i { width: 22px; height: 22px; }

.scroll-progress {
  position: absolute; left: 28px; right: 28px; bottom: -1px; height: 3px;
  border-radius: 3px; overflow: visible; pointer-events: none;
}
.scroll-progress__bar {
  position: absolute; inset: 0; border-radius: inherit; background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.scroll-progress__star {
  position: absolute; top: -6px; left: calc(var(--p, 0) * 100%); width: 15px; height: 15px;
  margin-left: -7px; fill: var(--star-deep);
  transform: rotate(calc(var(--p, 0) * 720deg));
  opacity: calc(var(--p, 0) * 20);
}

@media (max-width: 479px) {
  .site-header__bar { gap: 8px; padding-left: 10px; }
  .brand__mark { width: 46px; }
  .brand__name { font-size: 1.08rem; }
  .brand__sub { font-size: 0.5rem; letter-spacing: 0.16em; }
}
@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-btn { display: none; }
}

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: 96px var(--gutter) 40px;
  background: radial-gradient(120% 90% at 100% 0%, #213283 0%, var(--night) 60%);
  color: #fff; overflow-y: auto; overflow-x: hidden;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__deco {
  position: absolute; right: -18vw; top: -10vw; width: 70vw; max-width: 460px; aspect-ratio: 1;
  fill: rgba(254, 197, 68, 0.1); pointer-events: none;
}
.mobile-menu__close { position: absolute; top: 22px; right: 22px; background: var(--star); color: var(--ink); }
.mobile-menu__list { display: grid; gap: 4px; }
.mobile-menu__list a {
  display: block; padding: 6px 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2rem, 8vw, 2.8rem); color: #fff; text-decoration: none; line-height: 1.2;
}
.mobile-menu__list a[aria-current='page'] { color: var(--star); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- star transition veil ---------- */
.veil { position: fixed; inset: 0; z-index: var(--z-veil); pointer-events: none; visibility: hidden; }
.veil.is-on { visibility: visible; pointer-events: auto; }
html:not(.js) .veil { display: none; }
.js .veil.is-on { animation: veil-fallback 0.4s ease 4s forwards; }
@keyframes veil-fallback { to { opacity: 0; visibility: hidden; } }
.veil__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.veil__center {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center;
  transform: translate(-50%, -50%);
}
.veil__logo { display: none; width: min(56vw, 300px); filter: drop-shadow(0 20px 30px rgba(10, 20, 60, 0.35)); }
.is-first .veil__logo { display: block; }
.veil__word { display: none; margin-top: 10px; font-family: var(--f-brand); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.3em; color: #fff; padding-left: 0.3em; }
.is-first .veil__word { display: block; }
.veil__spin { width: 46px; height: 46px; fill: #fff; animation: spin-star 1.2s linear infinite; }
.is-first .veil__spin { display: none; }
@keyframes spin-star { to { transform: rotate(360deg); } }

/* ---------- decorative twinkles ---------- */
.twinkle {
  position: absolute; left: var(--x); top: var(--y); width: var(--s, 18px); height: var(--s, 18px);
  fill: var(--c, var(--star)); pointer-events: none;
  animation: twinkle 3.2s ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(0.55) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* ---------- CTA band ---------- */
.cta-band { padding: var(--section) 0; }
.cta-band__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 28px; align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--r-xl); background: var(--grad-deep); color: #e8f1ff;
  box-shadow: var(--shadow-l);
}
.cta-band__card .h2 { color: #fff; }
.cta-band__copy p { margin-top: 1rem; max-width: 56ch; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__star { position: absolute; z-index: -1; fill: rgba(255, 255, 255, 0.1); }
.cta-band__star--a { width: 380px; height: 380px; right: -90px; top: -110px; animation: slow-spin 40s linear infinite; }
.cta-band__star--b { width: 34px; height: 34px; right: 30%; top: 18%; fill: var(--star); animation: twinkle 3s ease-in-out infinite; }
.cta-band__star--c { width: 20px; height: 20px; left: 8%; bottom: 14%; fill: #fff; animation: twinkle 3.6s ease-in-out 1s infinite; }
.cta-band__shoot {
  position: absolute; z-index: -1; top: 22%; left: -20%; width: 180px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  transform: rotate(-18deg); animation: shoot 6s ease-in 2s infinite;
}
@keyframes shoot {
  0% { transform: translateX(0) rotate(-18deg); opacity: 0; }
  5% { opacity: 1; }
  18%, 100% { transform: translateX(160vw) rotate(-18deg); opacity: 0; }
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
@media (min-width: 960px) {
  .cta-band__card { grid-template-columns: 1.3fr auto; }
  .cta-band__actions { flex-direction: column; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 40px; background: var(--night); color: #c9d3f5; }
.site-footer__arc { position: absolute; left: 0; bottom: 100%; width: 100%; height: clamp(50px, 8vw, 120px); }
.site-footer__sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.site-footer__grid {
  position: relative; display: grid; gap: 40px;
  padding: clamp(40px, 6vw, 72px) 0 40px;
}
.site-footer__tag { margin-top: 18px; font-family: var(--f-display); font-size: 1.5rem; color: #fff; }
.site-footer__about { margin-top: 8px; max-width: 38ch; }
.site-footer__title {
  font-family: var(--f-brand); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--star); margin-bottom: 16px;
}
.site-footer__col ul { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--star); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.site-footer__contact .i { color: var(--teal); margin-top: 3px; }
.site-footer__time { font-family: var(--f-display); font-size: 1.3rem; color: #fff; }
.site-footer__hours { display: grid; gap: 8px; margin: 0; }
.site-footer__hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); padding-bottom: 8px; }
.site-footer__hours dt { color: #fff; font-weight: 700; }
.site-footer__hours dd { margin: 0; text-align: right; white-space: nowrap; }
.site-footer__notice { position: relative; max-width: 80ch; padding: 0 0 24px; font-size: 0.85rem; line-height: 1.6; }
.site-footer__notice strong { color: #fff; }
.site-footer__notice a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem;
}
.lang-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: none; color: #fff; font-weight: 700;
}
.lang-link:hover { border-color: var(--star); color: var(--star); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.3fr 0.7fr 1.2fr 1.3fr; gap: 48px; } }

/* ---------- reveal initial states (only when GSAP is running) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(32px); }
.anim [data-hero] { opacity: 0; }
.anim [data-reveal='pop'] { transform: scale(0.6) rotate(-20deg); }
.anim [data-reveal='left'] { transform: translateX(-40px); }
.anim [data-reveal='right'] { transform: translateX(40px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
