/* =========================================================
   WeWeKa · Landing de producto
   Storytelling + parallax (GSAP). Paleta cálida, tipografía
   literaria (Fraunces) + Nunito. Sin emojis: iconos de línea,
   fotografías reales y glifos PNG flotantes.
   ========================================================= */

:root {
  /* Paleta oficial WeWeKa (ver css/styles.css) */
  --bg: #f1faee;
  --cream: #ffffff;
  --ink: #111b61;
  --muted: #4a5490;
  --faint: #9298c0;
  --orange: #d90034;
  --orange-deep: #b3002b;
  --green: #b6e502;
  --line: rgba(17, 27, 97, .14);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --maxw: 1160px;
  --sh: 0 10px 30px rgba(20, 40, 28, .14);
  --sh-lg: 0 24px 60px rgba(20, 40, 28, .22);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--orange-deep); }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 8vw, 82px); }
h2 { font-size: clamp(28px, 5vw, 52px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s, color .2s;
  white-space: nowrap; cursor: pointer; border: 2px solid transparent;
}
.btn.lg { padding: 16px 30px; font-size: 16px; }
.btn.solid { background: linear-gradient(180deg, var(--orange), var(--orange-deep)); color: #fff; box-shadow: 0 8px 20px rgba(217, 0, 52, .38); }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(217, 0, 52, .46); }
.btn.ghost { background: rgba(255, 248, 236, .7); color: var(--orange-deep); border-color: rgba(217, 0, 52, .35); backdrop-filter: blur(6px); }
.btn.ghost:hover { transform: translateY(-2px); border-color: var(--orange-deep); }
.btn.ghost.light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); }

/* ---------- Encabezado ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 16px clamp(16px, 4vw, 40px);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { background: rgba(251, 244, 231, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.brand b span { color: var(--orange-deep); }
.brandmark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(150deg, var(--orange), var(--orange-deep)); box-shadow: 0 4px 12px rgba(217, 0, 52, .4); }
.brandmark svg { width: 24px; height: 24px; }
.brandmark.sm { width: 34px; height: 34px; } .brandmark.sm svg { width: 20px; height: 20px; }
.navlinks { margin-left: auto; display: flex; gap: 26px; font-weight: 700; color: var(--muted); }
.navlinks a { position: relative; padding: 4px 0; }
.navlinks a:hover { color: var(--orange-deep); }
.navcta { display: flex; gap: 10px; }
.nav .navcta .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 120px 20px 80px; }
.hero-bg {
  position: absolute; inset: -12% 0; z-index: -3;
  background: #33210f url('../img/landing/hero.svg') center/cover no-repeat;
}
.hero-veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(30,19,9,.42), rgba(30,19,9,.62)); }
.hero-inner { max-width: 900px; text-align: center; color: #fff2df; }
.hero-inner h1 { color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-inner h1 em { color: #ffd9a8; }
.eyebrow { font-family: var(--sans); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: #ffcf9c; margin-bottom: 18px; }
.lead { font-size: clamp(16px, 2.2vw, 21px); max-width: 40ch; margin: 22px auto 0; color: #f6e7d2; line-height: 1.65; }
.herocta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.micro { margin-top: 20px; font-size: 13px; font-weight: 700; color: #e9d3b6; letter-spacing: .02em; }

/* Glifos flotantes */
.float { position: absolute; z-index: -1; width: clamp(70px, 12vw, 130px); border-radius: 24%; box-shadow: var(--sh-lg); opacity: .92; will-change: transform; }
.float.small { width: clamp(64px, 9vw, 104px); position: absolute; }
.hero .f1 { top: 16%; left: 8%; }
.hero .f2 { top: 24%; right: 10%; }
.hero .f3 { bottom: 18%; left: 14%; }
.hero .f4 { bottom: 22%; right: 16%; }
@media (max-width: 760px) { .hero .f3, .hero .f4 { display: none; } .float { opacity: .8; } }

.scrollhint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #ffe6c8; display: grid; place-items: center; gap: 6px; opacity: .85; }
.scrollhint span { width: 1px; height: 34px; background: linear-gradient(#ffe6c8, transparent); }
.scrollhint svg { width: 22px; height: 22px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Secciones de historia ---------- */
.story {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px);
  align-items: center;
  padding: clamp(70px, 12vh, 140px) clamp(20px, 5vw, 40px);
}
.story.alt { grid-template-columns: 1fr 1.05fr; }
.story.alt .story-media { order: 2; }
.story-text .kicker, .kicker { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--orange-deep); margin-bottom: 14px; }
.story-text h2 { margin-bottom: 18px; }
.story-text p { color: var(--muted); margin-bottom: 14px; max-width: 46ch; }
.story-text p em { color: var(--orange-deep); font-weight: 600; }

.story-media { position: relative; }
.ph {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 28px;
  box-shadow: var(--sh-lg); overflow: hidden;
  background-size: cover; background-position: center;
}
.ph::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); border-radius: 28px; }
.ph-raiz  { background: linear-gradient(150deg, rgba(201,138,78,.12), rgba(124,83,48,.28)), url('../img/landing/raiz.svg') center/cover, #9a6c3c; }
.ph-voz   { background: linear-gradient(150deg, rgba(111,154,76,.10), rgba(62,95,38,.28)), url('../img/landing/voz.svg') center/cover, #4e7030; aspect-ratio: 5 / 6; }
.ph-camino{ background: linear-gradient(150deg, rgba(207,154,90,.10), rgba(138,98,56,.26)), url('../img/landing/camino.svg') center/cover, #b98a4e; }
.story-media .float.small { bottom: -26px; right: -18px; }
.story.alt .story-media .float.small { left: -18px; right: auto; }

/* Iconos de característica */
.feats { list-style: none; display: grid; gap: 16px; margin-top: 26px; }
.feats.row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feats li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.feats.row li { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: start; gap: 6px; }
.fic { grid-row: 1 / 3; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--orange-deep); background: var(--cream); box-shadow: var(--sh); }
.feats.row .fic { grid-row: auto; }
.fic svg { width: 26px; height: 26px; }
.feats b { font-size: 17px; font-weight: 900; }
.feats i { font-style: normal; color: var(--muted); font-size: 14px; }

/* ---------- Lenguas ---------- */
.lenguas { max-width: var(--maxw); margin: 0 auto; padding: clamp(50px, 8vh, 100px) clamp(20px, 5vw, 40px) clamp(70px, 12vh, 130px); text-align: center; }
.center { text-align: center; }
.lenguas .sub { color: var(--muted); max-width: 48ch; margin: 12px auto 0; }
.langrow { margin-top: 46px; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 2vw, 26px); }
.langrow figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.langrow img { width: 100%; max-width: 130px; border-radius: 26%; box-shadow: var(--sh); transition: transform .25s ease, box-shadow .25s ease; }
.langrow figure:hover img { transform: translateY(-8px) rotate(-2deg); box-shadow: var(--sh-lg); }
.langrow figcaption { font-weight: 800; color: var(--ink); }
@media (max-width: 760px) { .langrow { grid-template-columns: repeat(3, 1fr); gap: 22px 14px; } }

/* ---------- Cierre / CTA ---------- */
.closing { position: relative; min-height: 78svh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 100px 20px; }
.closing-bg {
  position: absolute; inset: -12% 0; z-index: -3;
  background:
    linear-gradient(180deg, rgba(30,18,8,.45), rgba(30,18,8,.66)),
    url('../img/landing/cierre.svg') center/cover no-repeat, #3a2110;
}
.closing-veil { position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 70% at 50% 45%, transparent, rgba(20,12,6,.5)); }
.closing-inner { max-width: 760px; color: #fff3e2; position: relative; }
.closing-inner h2 { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.closing-inner p { margin: 18px auto 0; max-width: 46ch; color: #f0ddc4; }
.closing .f5 { width: clamp(90px, 14vw, 150px); top: -70px; left: 50%; margin-left: clamp(-75px, -7vw, -45px); position: absolute; }

/* ---------- Pie ---------- */
.foot { background: #2a1e13; color: #e9d8c2; padding: clamp(40px, 7vw, 66px) clamp(20px, 5vw, 40px); display: grid; gap: 22px; justify-items: center; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { font-family: var(--serif); font-size: 22px; }
.foot-brand b span { color: var(--orange); }
.foot-brand small { display: block; color: #b39a7d; font-size: 13px; font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-weight: 700; }
.foot-links a { color: #d9c4a8; } .foot-links a:hover { color: #fff; }
.foot-legal { color: #8f7a61; font-size: 13px; }

/* ---------- Reveal (animación de entrada) ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.is-in .reveal, .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .navlinks { display: none; }
  .story, .story.alt { grid-template-columns: 1fr; }
  .story.alt .story-media { order: 0; }
  .story-media { max-width: 460px; margin: 0 auto; }
  .feats.row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .navcta .btn.ghost { display: none; }
  .brand { font-size: 20px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .scrollhint svg { animation: none; }
  .float { will-change: auto; }
}

/* ---- Táctil: sin estados hover "pegados" (evita que el botón
   se quede grande/levantado tras tocarlo) ---- */
@media (hover: none), (pointer: coarse) {
  .btn.solid:hover, .btn.ghost:hover { transform: none; }
  .langrow figure:hover img { transform: none; box-shadow: var(--sh); }
  .btn:active { transform: scale(.97); }   /* respuesta táctil: se hunde, no crece */
}

/* ---- Paleta verde: retiñe las escenas SVG cálidas hacia el verde ---- */
.hero-bg, .closing-bg { filter: hue-rotate(88deg) saturate(.9) brightness(.97); }
.ph-raiz, .ph-camino { filter: hue-rotate(88deg) saturate(.9); }
/* voz.svg ya es verde: no se rota */

/* =========================================================
   Modal de autenticación en la landing
   ========================================================= */
.lauth-ov {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(20, 30, 22, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: la-fade .2s ease both;
}
@keyframes la-fade { from { opacity: 0; } to { opacity: 1; } }
.lauth {
  position: relative; width: 100%; max-width: 380px;
  background: var(--cream); border-radius: 24px; padding: 26px 24px 24px;
  box-shadow: var(--sh-lg); animation: la-pop .28s cubic-bezier(.2,.9,.25,1.2) both;
  max-height: 92vh; overflow-y: auto;
}
@keyframes la-pop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.lauth-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.lauth-x svg { width: 20px; height: 20px; }
.lauth-brand { font-family: var(--serif); font-weight: 600; font-size: 22px; text-align: center; }
.lauth-brand span { color: var(--orange-deep); }
.lauth-title { font-family: var(--serif); font-weight: 600; font-size: 24px; text-align: center; margin: 4px 0 16px; }
.lauth-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: 999px; padding: 5px; margin-bottom: 16px; }
.lauth-tabs button { flex: 1; border: none; background: none; padding: 10px; border-radius: 999px; font-family: var(--sans); font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; }
.lauth-tabs button.on { background: var(--cream); color: var(--orange-deep); box-shadow: var(--sh); }
.lauth-lbl { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin: 8px 2px 6px; }
.lauth-in { width: 100%; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); background: var(--bg); border: 2px solid transparent; border-radius: 14px; padding: 13px 14px; }
.lauth-in:focus { outline: none; border-color: var(--orange); }
.lauth-pw { position: relative; }
.lauth-pw .lauth-in { padding-right: 46px; }
.lauth-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 34px; height: 34px; border: none; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.lauth-eye svg { width: 20px; height: 20px; }
.lauth-code { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.lauth-box { width: 52px; height: 60px; text-align: center; font-size: 26px; font-weight: 900; text-transform: uppercase; color: var(--orange-deep); background: var(--bg); border: 2px solid transparent; border-radius: 14px; }
.lauth-box:focus { outline: none; border-color: var(--orange); }
.lauth-btn { width: 100%; margin-top: 16px; border: none; cursor: pointer; padding: 15px; border-radius: 999px; font-family: var(--sans); font-weight: 800; font-size: 16px; color: #fff; background: linear-gradient(180deg, var(--orange), var(--orange-deep)); box-shadow: 0 8px 20px rgba(217,0,52,.35); transition: transform .12s; }
.lauth-btn:active { transform: scale(.98); }
.lauth-links { text-align: center; margin-top: 14px; }
.lauth-link { border: none; background: none; color: var(--orange-deep); font-weight: 800; font-size: 13px; cursor: pointer; }
.lauth-hint { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.lauth-hint b { color: var(--ink); word-break: break-all; }
.lauth-msg { min-height: 18px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.lauth-msg.bad { color: #c0392b; }
.lauth-msg.ok { color: var(--orange-deep); }
.lauth-reqs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 2px 0; padding: 0; }
.lauth-reqs li { font-size: 12px; font-weight: 700; color: var(--faint); }
.lauth-reqs li.met { color: var(--green); }

/* ---------- Registro: casillas legales, aviso simplificado y campo trampa ---------- */
.lauth-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.45; cursor: pointer; }
.lauth-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--orange-deep); cursor: pointer; }
.lauth-check a, .lauth-legal a { color: var(--orange-deep); font-weight: 800; text-decoration: underline; }
.lauth-legal { font-size: 11.5px; font-weight: 600; color: var(--faint); line-height: 1.5; margin-top: 14px; text-align: center; }
/* Invisible para personas (y lectores de pantalla), visible para bots. */
.lauth-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.foot-legalnav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 13px; font-weight: 700; }
.foot-legalnav a, .foot-legalnav button { color: #d9c4a8; background: none; border: none; font: inherit; cursor: pointer; padding: 0; }
.foot-legalnav a:hover, .foot-legalnav button:hover { color: #fff; }
