/* ==========================================================================
   ACADEMIA JUDÍA — «Beit Midrash con la luz de Jerusalén»
   Tinta profunda, oro de piedra de Jerusalén y pergamino. Fotografía real,
   letras hebreas como elemento gráfico y composición editorial.
   ========================================================================== */

:root {
  /* Tinta */
  --ink: #0E1626;
  --ink-2: #16213A;
  --ink-3: #1F2D4B;
  /* Oro de piedra de Jerusalén */
  --gold: #C59A45;
  --gold-2: #D9B56A;
  --gold-deep: #9C7630;
  --gold-soft: #EFE0BD;
  /* Pergamino y piedra */
  --parch: #F7F1E5;
  --parch-2: #EFE6D3;
  --stone: #E6D9BF;
  --paper: #FFFCF6;
  /* Texto */
  --tx: #1B2233;
  --tx-2: #4A5468;
  --tx-3: #6E7788;
  --tx-inv: #F5EEDF;
  --tx-inv-2: #B9C0CF;
  --line: rgba(14, 22, 38, .12);
  --line-inv: rgba(245, 238, 223, .16);
  /* WhatsApp */
  --wa: #1FA855;

  /* Tipografía */
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;

  /* Métrica */
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --sec-y: clamp(72px, 10vw, 136px);
  --r: 4px;
  --r-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sh-1: 0 1px 2px rgba(14, 22, 38, .06), 0 8px 24px -12px rgba(14, 22, 38, .18);
  --sh-2: 0 30px 70px -30px rgba(14, 22, 38, .45);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--tx); background: var(--parch); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.heb { font-family: var(--serif); direction: rtl; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; color: inherit; }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); margin-bottom: .45em; }
h2 em, h1 em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
h3 { font-size: 1.32rem; line-height: 1.2; margin-bottom: .35em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow.gold { color: var(--gold-2); }
.sec-lede { font-size: 1.14rem; color: var(--tx-2); max-width: 36em; }

/* --------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-lg { padding: 17px 28px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(156, 118, 48, .9); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ink { background: var(--ink); color: var(--tx-inv); }
.btn-ink:hover { background: var(--ink-3); }
.btn-line-light { border-color: rgba(245, 238, 223, .45); color: var(--tx-inv); }
.btn-line-light:hover { border-color: var(--tx-inv); background: rgba(245, 238, 223, .06); }
.btn-quiet { color: var(--tx-inv); padding-inline: 12px; }
.btn-quiet:hover { color: var(--gold-2); transform: none; }

/* ------------------------------------------------------------ navegación */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s var(--ease), box-shadow .3s; }
.nav.stuck { background: rgba(14, 22, 38, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-inv); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 84px; transition: height .3s var(--ease); }
.nav.stuck .nav-in { height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tx-inv); }
.brand-mark svg { width: 40px; height: 40px; }
.bm-ring { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.bm-tri { fill: none; stroke: var(--gold-2); stroke-width: 1.4; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; }
.brand-text em { font-style: normal; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.menu ul { display: flex; gap: 26px; }
.menu ul a { color: var(--tx-inv-2); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.menu ul a:hover { color: var(--tx-inv); }
.menu-cta { display: flex; align-items: center; gap: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--tx-inv); padding: 8px; }
.burger .ic { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; background: var(--ink); color: var(--tx-inv); overflow: hidden; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 58%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(.9) contrast(1.05); }
/* Funde la foto con la tinta hacia la izquierda y hacia abajo */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(14, 22, 38, .72) 22%, rgba(14, 22, 38, .1) 60%),
              linear-gradient(0deg, var(--ink) 0%, rgba(14, 22, 38, 0) 35%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding-top: 130px; padding-bottom: clamp(56px, 8vw, 96px); }
.hero-copy { max-width: 640px; }
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.kicker .heb { font-size: 1rem; letter-spacing: 0; color: var(--gold-soft); padding-right: 14px; border-right: 1px solid var(--line-inv); }
.hero h1 { font-size: clamp(2.7rem, 1.4rem + 4.2vw, 4.7rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 28px; }
.hero h1 em { color: var(--gold-2); }
.hero .lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); color: var(--tx-inv-2); max-width: 34em; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 26px; border-top: 1px solid var(--line-inv); font-size: .92rem; color: var(--tx-inv-2); }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--tx-inv); line-height: 1.1; }
.hero-verse { text-align: right; padding-bottom: 6px; }
.hero-verse .heb { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.5rem); color: var(--gold-soft); line-height: 1.2; }
.hero-verse figcaption { margin-top: 8px; font-size: .82rem; color: var(--tx-inv-2); letter-spacing: .03em; }

/* ---------------------------------------------------- banda disciplinas */
.band { background: var(--gold); color: var(--ink); overflow: hidden; }
.band-track { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; padding: 18px var(--gutter); font-family: var(--serif); font-size: 1.12rem; font-weight: 500; }
.band-track i { font-style: normal; font-size: .7rem; opacity: .55; }

/* -------------------------------------------------------------- secciones */
.sec { position: relative; padding: var(--sec-y) 0; }
.sec-parch { background: var(--parch); }
.sec-stone { background: var(--parch-2); }
.sec-ink { background: var(--ink); color: var(--tx-inv); }
.sec-ink .sec-lede { color: var(--tx-inv-2); }
.sec-ink h2 em { color: var(--gold-2); }
.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.sec-head .eyebrow { justify-content: center; }
.sec-head .sec-lede { margin: 0 auto; }

/* --------------------------------------------------------------- programas */
.programs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.programs-intro { position: sticky; top: 110px; }
.programs-photo { margin-top: 40px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 4 / 3; }
.programs-photo img { width: 100%; height: 100%; object-fit: cover; }
.offer li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.offer li:last-child { border-bottom: 1px solid var(--line); }
.offer-n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); text-align: center; }
.offer h3 { font-size: 1.5rem; }
.offer p { color: var(--tx-2); font-size: 1.04rem; }

/* ------------------------------------------------------------- para quién */
.who { overflow: hidden; }
.who-photo { position: absolute; inset: 0 auto 0 0; width: 46%; }
.who-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.8); }
.who-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, var(--ink) 0%, rgba(14, 22, 38, .25) 45%, rgba(14, 22, 38, .15) 100%); }
.who-in { position: relative; display: flex; justify-content: flex-end; }
.who-copy { width: min(100%, 560px); }
.ticks { margin: 34px 0 40px; }
.ticks li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-inv); }
.ticks .ic { width: 22px; height: 22px; color: var(--gold-2); margin-top: 3px; }
.ticks strong { display: block; font-family: var(--serif); font-size: 1.28rem; font-weight: 700; margin-bottom: 2px; }
.ticks span { color: var(--tx-inv-2); }
.who-quote { font-family: var(--serif); font-size: 1.45rem; font-style: italic; line-height: 1.4; color: var(--gold-soft); padding-left: 22px; border-left: 2px solid var(--gold); }
.who-quote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }

/* ------------------------------------------------------------------ portal */
.portal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 90px); align-items: center; }
.portal-list { margin-top: 30px; display: grid; gap: 24px; }
.portal-list li { display: flex; gap: 18px; }
.pl-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--stone); color: var(--gold-deep); }
.pl-ic .ic { width: 20px; height: 20px; }
.portal-list h3 { font-size: 1.2rem; }
.portal-list p { color: var(--tx-2); font-size: 1rem; }

.device { background: var(--ink); border-radius: 14px; box-shadow: var(--sh-2); overflow: hidden; color: var(--tx-inv); transform: rotate(-1.2deg); }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--ink-2); border-bottom: 1px solid var(--line-inv); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 238, 223, .2); }
.device-bar span { margin-left: 10px; font-size: .78rem; color: var(--tx-inv-2); }
.device-body { padding: 26px; }
.dv-hello { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.dv-sub { color: var(--tx-inv-2); font-size: .92rem; margin-bottom: 18px; }
.dv-player { position: relative; aspect-ratio: 16 / 8; border-radius: 8px; background-size: cover; background-position: center; display: grid; place-items: center; overflow: hidden; }
.dv-player::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 22, 38, .85), rgba(14, 22, 38, .15)); }
.dv-play { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(197, 154, 69, .25); }
.dv-play .ic { fill: currentColor; stroke: none; margin-left: 3px; }
.dv-cap { position: absolute; left: 16px; bottom: 12px; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.dv-track { height: 4px; border-radius: 9px; background: rgba(245, 238, 223, .14); margin-top: 16px; overflow: hidden; }
.dv-track span { display: block; height: 100%; width: var(--p); background: var(--gold); }
.dv-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--tx-inv-2); margin-top: 8px; }
.dv-list { margin-top: 18px; border-top: 1px solid var(--line-inv); }
.dv-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-inv); font-size: .95rem; }
.dv-list b { font-weight: 600; color: var(--gold-2); font-size: .85rem; }
.dv-list b.done { color: #7FD3A2; }

/* ------------------------------------------------------------------ pasos */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 36px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.steps li { position: relative; text-align: center; padding: 0 6px; }
.st-num { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--gold); font-family: var(--serif); font-size: 2rem; color: var(--gold-deep); box-shadow: 0 0 0 8px var(--parch); position: relative; }
.steps p { color: var(--tx-2); font-size: 1rem; }

/* ------------------------------------------------------------- testimonios */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.quote { background: var(--ink-2); border: 1px solid var(--line-inv); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.quote blockquote { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--tx-inv); }
.quote blockquote::before { content: "“"; display: block; font-size: 3.4rem; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.quote-lg { background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); }
.quote-lg blockquote { font-size: 1.45rem; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.1rem; flex: none; }
.quote strong { display: block; font-size: .98rem; }
.quote em { font-style: normal; font-size: .84rem; color: var(--tx-inv-2); }

/* -------------------------------------------------------------- membresía */
.plan { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.plan-main { background: var(--ink); color: var(--tx-inv); padding: clamp(30px, 5vw, 52px); position: relative; }
.plan-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 6px 12px; border-radius: 2px; margin-bottom: 22px; }
.plan-main h3 { font-size: 1.6rem; }
.plan-price { font-family: var(--serif); font-size: 5rem; font-weight: 700; line-height: 1; margin: 18px 0 10px; color: var(--gold-2); }
.plan-price .cur { font-size: 2rem; vertical-align: top; margin-right: 4px; }
.plan-price .per { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--tx-inv-2); margin-left: 6px; }
.plan-note { color: var(--tx-inv-2); margin-bottom: 28px; }
.plan-small { text-align: center; font-size: .84rem; color: var(--tx-inv-2); margin-top: 14px; }
.plan-list { padding: clamp(30px, 5vw, 52px); display: grid; align-content: center; gap: 16px; }
.plan-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; }
.plan-list .ic { color: var(--gold-deep); width: 22px; height: 22px; margin-top: 2px; }

/* --------------------------------------------------------------- contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 90px); align-items: start; }
.cinfo { margin-top: 34px; display: grid; gap: 14px; }
.ci { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--stone); border-radius: var(--r-lg); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.ci:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }
.ci-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); flex: none; }
.ci-ic.wa { background: var(--wa); color: #fff; }
.ci-ic .ic { width: 22px; height: 22px; }
.ci strong { display: block; }
.ci em { font-style: normal; color: var(--tx-2); font-size: .95rem; }
.form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--sh-2); border-top: 4px solid var(--gold); }
.form h3 { font-size: 1.7rem; margin-bottom: 24px; }
.fg { margin-bottom: 18px; }
.fg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fg label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); margin-bottom: 8px; }
.fg input, .fg select { width: 100%; padding: 15px 16px; font: inherit; font-size: 1rem; color: var(--tx); background: var(--parch); border: 1px solid var(--stone); border-radius: var(--r); transition: border-color .2s, box-shadow .2s, background .2s; }
.fg input:focus, .fg select:focus { outline: none; border-color: var(--gold); background: var(--paper); box-shadow: 0 0 0 4px rgba(197, 154, 69, .18); }
.form .btn { margin-top: 8px; }
.form-note { font-size: .82rem; color: var(--tx-3); text-align: center; margin-top: 14px; }

/* -------------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.faq-head a { color: var(--gold-deep); font-weight: 600; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; background: none; border: 0; text-align: left; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--tx); }
.acc-q .ic { width: 22px; height: 22px; color: var(--gold-deep); transition: transform .3s var(--ease); }
.acc-item.open .acc-q .ic { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-a p { padding: 0 40px 24px 0; color: var(--tx-2); font-size: 1.04rem; }

/* ------------------------------------------------------------------ cierre */
.closing { position: relative; padding: clamp(110px, 16vw, 200px) 0; background: var(--ink); color: var(--tx-inv); text-align: center; overflow: hidden; }
.closing-photo { position: absolute; inset: 0; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.closing-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(14, 22, 38, .55) 0%, rgba(14, 22, 38, .88) 70%); }
.closing-in { position: relative; }
.closing-heb { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); color: var(--gold-2); margin-bottom: 10px; }
.closing h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); }
.closing .lede { font-size: 1.2rem; color: var(--tx-inv-2); margin: 0 auto 38px; }

/* --------------------------------------------------------------------- pie */
.foot { background: #0A101C; color: var(--tx-inv-2); padding: 72px 0 0; font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.foot-brand p { margin-top: 18px; max-width: 30em; }
.foot h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.foot-col li { margin-bottom: 10px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--tx-inv); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line-inv); font-size: .84rem; }
.foot-credit .heb { color: var(--gold-2); margin-left: 12px; font-size: 1rem; }

/* --------------------------------------------------------- botón whatsapp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float .ic { width: 28px; height: 28px; }

/* ------------------------------------------------ aparición al desplazar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-photo img { animation: settle 1.8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .menu ul { gap: 18px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote-lg { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  /* Menú móvil: panel a pantalla completa */
  .burger { display: block; }
  .menu {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: stretch; gap: 40px;
    padding: 100px var(--gutter) 40px; background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .menu.open { opacity: 1; visibility: visible; }
  .menu ul { flex-direction: column; gap: 6px; }
  .menu ul a { display: block; padding: 10px 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--tx-inv); border-bottom: 1px solid var(--line-inv); }
  .menu-cta { flex-direction: column; align-items: stretch; }
  .menu-cta .btn { padding: 16px; font-size: 1.05rem; }
  .menu-cta .btn-quiet { border: 1px solid var(--line-inv); }

  .programs, .portal, .contact, .faq { grid-template-columns: minmax(0, 1fr); }
  .programs-intro { position: static; }
  .who-photo { position: relative; width: 100%; height: 340px; }
  .who-photo::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(14, 22, 38, .1) 60%); }
  .who { padding-top: 0; }
  .who-in { justify-content: flex-start; margin-top: -40px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
  .device { transform: none; }
}

/* Teléfonos */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-in { height: 70px; }
  .brand-mark svg { width: 34px; height: 34px; }
  .brand-text strong { font-size: 1.12rem; }

  /* Hero: la foto arriba como fondo tenue; el mensaje y el botón en la primera pantalla */
  .hero { min-height: auto; align-items: stretch; }
  .hero-photo { width: 100%; height: 62%; inset: 0 0 auto 0; }
  .hero-photo::after { background: linear-gradient(0deg, var(--ink) 8%, rgba(14, 22, 38, .55) 55%, rgba(14, 22, 38, .35) 100%); }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 128px; gap: 34px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lede { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; margin-bottom: 34px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 18px 28px; }
  .hero-facts li { flex: 1 1 40%; }
  .hero-verse { text-align: left; border-top: 1px solid var(--line-inv); padding-top: 22px; }

  .band-track { font-size: .98rem; gap: 6px 14px; }
  .offer li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .offer-n { font-size: 2rem; }
  .offer h3 { font-size: 1.3rem; }
  .who-photo { height: 260px; }
  .steps { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .steps li { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 18px; text-align: left; }
  .st-num { grid-row: span 2; width: 60px; height: 60px; font-size: 1.6rem; margin: 0; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote { padding: 26px; }
  .quote-lg blockquote { font-size: 1.25rem; }
  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan-price { font-size: 4.2rem; }
  .fg-2 { grid-template-columns: minmax(0, 1fr); }
  .acc-q { font-size: 1.1rem; padding: 20px 0; }
  .acc-a p { padding-right: 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .foot-bottom { flex-direction: column; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
