/* ============================================================
   Cozapytam.com — landing dinámica
   Paleta del logo: azul marino · verde salvia→bosque ·
   dorado/bronce · acento naranja · papel crema
   ============================================================ */

:root {
  --paper:      #F6F1E7;
  --paper-soft: #FBF8F1;
  --navy:       #0c1f2b;   /* fondo oscuro */
  --navy-2:     #102a3a;
  --ink:        #163049;
  --ink-soft:   #3C5366;
  --green:      #3F6E55;
  --green-2:    #6E9A6E;
  --gold:       #C49A5C;
  --orange:     #E8923C;
  --orange-2:   #F2A857;
  --cream-dim:  #C9D6DC;   /* texto suave sobre oscuro */
  --line:       rgba(22, 48, 73, 0.12);
  --radius:     20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--navy);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------- fondo aurora animado ---------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 50% -20%, #14384a 0%, transparent 60%),
    linear-gradient(160deg, #0c1f2b 0%, #0a1822 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.blob.b1 { width: 46vw; height: 46vw; left: -8vw; top: -6vw;  background: radial-gradient(circle, #2f6f53, transparent 70%); animation: drift1 22s ease-in-out infinite; }
.blob.b2 { width: 40vw; height: 40vw; right: -6vw; top: 8vw;  background: radial-gradient(circle, #1d5870, transparent 70%); animation: drift2 26s ease-in-out infinite; }
.blob.b3 { width: 34vw; height: 34vw; left: 30vw; bottom: -10vw; background: radial-gradient(circle, #b9783a, transparent 70%); opacity: 0.32; animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw,5vw) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw,6vw) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw,-7vw) scale(1.15); } }
.grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- topbar ---------------- */
.topbar {
  position: relative; z-index: 3;
  max-width: 1120px; margin: 0 auto;
  padding: 24px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); }
.brand-mark { width: 32px; height: 32px; object-fit: cover; border-radius: 9px; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.16rem; letter-spacing: -0.01em; }
.tld { color: var(--green-2); }
.topbar-cta {
  font-size: 0.9rem; font-weight: 600; color: var(--navy);
  text-decoration: none; background: var(--orange);
  padding: 9px 20px; border-radius: 999px;
  box-shadow: 0 8px 22px -10px rgba(232,146,60,.8);
  transition: transform .2s, box-shadow .2s;
}
.topbar-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(232,146,60,.95); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 90px 24px 120px;
  text-align: center;
}
.hero-inner { width: 100%; max-width: 760px; }

.logo-stage { margin: 0 auto 28px; width: 132px; height: 132px; display: grid; place-items: center; }
.logo-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(196,154,92,.4);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.03);
  animation: floaty 6s ease-in-out infinite;
}
.logo-fallback { display: none; font-family: "Fraunces", serif; font-weight: 600; font-size: 84px; color: var(--paper); }
.logo-stage.no-logo .logo-img { display: none; }
.logo-stage.no-logo .logo-fallback {
  display: grid; place-items: center; width: 116px; height: 116px; border-radius: 28px;
  background: linear-gradient(150deg, var(--green), var(--navy-2)); box-shadow: 0 20px 50px -18px rgba(0,0,0,.6);
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; padding: 7px 16px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232,146,60,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,146,60,.6); } 70% { box-shadow: 0 0 0 9px rgba(232,146,60,0); } 100% { box-shadow: 0 0 0 0 rgba(232,146,60,0); } }

.headline {
  margin: 0 0 22px;
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.06; letter-spacing: -0.02em;
  color: var(--paper);
}
.headline .accent {
  background: linear-gradient(100deg, var(--orange-2), var(--gold) 60%, var(--green-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.subhead {
  margin: 0 auto 30px; max-width: 560px;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem); line-height: 1.6; color: var(--cream-dim);
}

/* onda de sonido */
.waveform { display: flex; align-items: center; justify-content: center; gap: 5px; height: 46px; margin: 0 auto 34px; }
.waveform i {
  width: 5px; border-radius: 3px;
  background: linear-gradient(var(--orange), var(--gold));
  animation: eq 1.1s ease-in-out infinite;
}
.waveform i:nth-child(odd) { background: linear-gradient(var(--green-2), #2f6f53); }
.waveform i:nth-child(1){height:30%;animation-delay:-.9s}.waveform i:nth-child(2){height:62%;animation-delay:-.2s}
.waveform i:nth-child(3){height:90%;animation-delay:-.5s}.waveform i:nth-child(4){height:48%;animation-delay:-.8s}
.waveform i:nth-child(5){height:75%;animation-delay:-.1s}.waveform i:nth-child(6){height:35%;animation-delay:-.6s}
.waveform i:nth-child(7){height:100%;animation-delay:-.3s}.waveform i:nth-child(8){height:55%;animation-delay:-.7s}
.waveform i:nth-child(9){height:82%;animation-delay:-.15s}.waveform i:nth-child(10){height:40%;animation-delay:-.55s}
.waveform i:nth-child(11){height:68%;animation-delay:-.95s}.waveform i:nth-child(12){height:90%;animation-delay:-.35s}
.waveform i:nth-child(13){height:50%;animation-delay:-.75s}.waveform i:nth-child(14){height:28%;animation-delay:-.45s}
@keyframes eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* CTA */
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn-download {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 19px 42px; font-size: 1.12rem; font-weight: 600;
  color: #2a1606; text-decoration: none;
  background: linear-gradient(135deg, var(--orange-2) 0%, var(--orange) 55%, #d9772b 100%);
  border-radius: 999px;
  box-shadow: 0 18px 44px -14px rgba(232,146,60,.7), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s;
}
.btn-download .dl-icon { transition: transform .25s; }
.btn-download::after {
  content:""; position:absolute; inset:-2px; border-radius:inherit;
  background: conic-gradient(from 180deg, transparent, rgba(255,255,255,.35), transparent 40%);
  opacity:0; transition:opacity .3s;
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 26px 56px -14px rgba(232,146,60,.85), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-download:hover .dl-icon { transform: translateY(3px); }
.btn-download:active { transform: translateY(-1px); }
.btn-download.is-pending { filter: saturate(.85) brightness(.96); }
.btn-download.small { padding: 15px 30px; font-size: 1rem; }

.cta-meta { margin: 2px 0 0; font-size: 0.88rem; color: var(--cream-dim); opacity: .85; }
.cta-note { margin: 4px 0 0; font-size: 0.9rem; font-weight: 500; color: #2a1606; background: var(--orange-2); padding: 8px 16px; border-radius: 999px; }

/* indicador de scroll */
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 2px; background: var(--orange); animation: scrolly 1.6s ease-in-out infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------- SHEET claro (corte diagonal) ---------------- */
.sheet {
  position: relative; z-index: 1;
  background: var(--paper);
  color: var(--ink);
  margin-top: -2px;
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  padding: 110px 24px 96px;
}
.sheet-inner, .how-inner { max-width: 1040px; margin: 0 auto; }
.kicker { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); text-align: center; }
.kicker.light { color: var(--gold); }
.sec-title { margin: 0 0 48px; text-align: center; font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.02em; }
.sec-title.light { color: var(--paper); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature {
  position: relative; padding: 30px 26px 28px;
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px -22px rgba(22,48,73,.5);
  transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(22,48,73,.5); }
.f-num { position: absolute; top: 18px; right: 22px; font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--gold); opacity: .5; }
.f-ico { font-size: 1.7rem; }
.feature h3 { margin: 14px 0 8px; font-size: 1.18rem; font-weight: 600; }
.feature p { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------------- HOW oscuro (corte diagonal) ---------------- */
.how {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, #102a3a, #0b1c27);
  margin-top: -2px;
  clip-path: polygon(0 0, 100% 56px, 100% 100%, 0 100%);
  padding: 120px 24px 90px;
  text-align: center;
}
.steps { list-style: none; margin: 0 auto 30px; padding: 0; max-width: 680px; display: grid; gap: 14px; text-align: left; }
.steps li {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
}
.steps li div { display: flex; flex-direction: column; gap: 3px; }
.steps strong { color: var(--paper); font-size: 1.02rem; }
.steps span { color: var(--cream-dim); font-size: .94rem; line-height: 1.5; }
.step-n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 600; color: var(--navy); background: linear-gradient(140deg, var(--orange-2), var(--gold)); }
.steps code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 6px; color: var(--paper); }
.steps em { font-style: normal; font-weight: 600; color: var(--orange-2); }

.smartscreen { max-width: 560px; margin: 0 auto 36px; text-align: left; color: var(--cream-dim); font-size: .92rem; }
.smartscreen summary { cursor: pointer; font-weight: 600; color: var(--paper); padding: 10px 0; }
.smartscreen summary::marker { color: var(--orange); }
.smartscreen p { margin: 4px 0 0; line-height: 1.55; }
.final-cta { margin-top: 8px; }

/* ---------------- footer ---------------- */
.footer {
  position: relative; z-index: 1; background: #0b1c27;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 28px 24px 40px; font-size: .86rem; color: var(--cream-dim);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer .dot { opacity: .5; }

/* ---------------- reveal al scroll ---------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; max-width: 430px; margin: 0 auto; }
  .hero { min-height: 92vh; padding-top: 60px; }
  .btn-download { width: 100%; max-width: 340px; justify-content: center; }
  .sheet, .how { clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%); }
  .how { clip-path: polygon(0 0, 100% 32px, 100% 100%, 0 100%); }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .logo-img, .waveform i, .live-dot, .scroll-hint span { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
