/* Naró App — landing. Sin frameworks: carga instantánea y buen SEO. */
:root {
  --gold: #d4af37;
  --gold-strong: #e6c35a;
  --bg: #0a0a0a;
  --card: #151515;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f5;
  --muted: #b9b9b9;     /* contraste 9:1 sobre el fondo */
  --danger: #ff8a80;
  --ok: #7bd88f;
  --radius: 20px;
  --max: 1100px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-strong); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold-strong); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { color: var(--gold); font-style: italic; text-transform: uppercase; }
.header-links { display: flex; align-items: center; gap: 18px; }
.header-links a.login { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.header-links a.login:hover { color: #fff; }

/* Botón principal (único CTA del sitio) */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #000; text-decoration: none; font-weight: 800;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; font-size: 16px;
  transition: transform .15s ease, background .15s ease;
}
.cta:hover { background: var(--gold-strong); color: #000; transform: translateY(-1px); }
.cta-small { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.eyebrow { display: inline-block; color: var(--gold-strong); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.03em; }
h1 em { color: var(--gold); font-style: normal; }
.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 680px; margin: 0 auto 30px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Secciones */
section { padding: 56px 0; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.section-intro { color: var(--muted); margin: 0 0 32px; max-width: 640px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(212, 175, 55, .14); display: grid; place-items: center; color: var(--gold); }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #000; font-weight: 900; margin-bottom: 12px; }
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); }

/* Preguntas frecuentes */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style-position: outside; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Formulario */
.form-section { background: linear-gradient(180deg, transparent, rgba(212, 175, 55, .06)); }
.form-card { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 36px); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.req { color: var(--gold-strong); }
input, select, textarea {
  width: 100%; background: #0d0d0d; color: var(--text); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); }
input[aria-invalid="true"] { border-color: var(--danger); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* campo trampa anti-bots */
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); }
.form-card .cta { width: 100%; margin-top: 18px; }
.form-card .cta[disabled] { opacity: .6; cursor: wait; }

/* Páginas legales */
.legal { max-width: 760px; padding: 48px 16px 72px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: #dcdcdc; }
.legal .updated { color: var(--muted); font-size: 14px; }
.todo { background: #5a3d00; color: #ffe08a; padding: 0 4px; border-radius: 4px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.not-found .code { font-size: 96px; font-weight: 900; color: var(--gold); line-height: 1; }

/* Encabezado en celulares angostos: se acorta la marca para que no se pise con los botones */
@media (max-width: 420px) {
  .site-header .brand-rest { display: none; }
}
@media (max-width: 480px) { .hide-xs { display: none; } }

/* =====================================================================
   Portada de venta: capturas, recorrido, comparativa y precios
   ===================================================================== */
[id] { scroll-margin-top: 76px; } /* que el encabezado fijo no tape el título al saltar a una sección */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.narrow { max-width: 820px; }

.hero { position: relative; overflow: hidden; padding-bottom: 24px; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 175, 55, .18), transparent 70%); }
.hero .container { position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-big { padding: 17px 32px; font-size: 18px; box-shadow: 0 10px 40px rgba(212, 175, 55, .28); }
.cta-ghost {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .55); color: var(--gold-strong); text-decoration: none; font-weight: 700;
  transition: background .15s ease;
}
.cta-ghost:hover { background: rgba(212, 175, 55, .1); color: #fff; }
.block { display: flex; width: 100%; }
.hero-checks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--muted); font-size: 15px; }
.hero-checks li::before, .ticks li::before { content: "✓"; color: var(--gold); font-weight: 900; margin-right: 8px; }

/* Marcos de dispositivos */
.device { margin: 0; background: #111; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 175, 55, .08); overflow: hidden; }
.device img { width: 100%; }
.phone { border-radius: 34px; padding: 8px; }
.phone img { border-radius: 26px; }
.laptop { border-radius: 16px; }
.laptop-bar { display: flex; gap: 6px; padding: 10px 14px; background: #1a1a1a; border-bottom: 1px solid var(--line); }
.laptop-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }

.showcase { position: relative; margin-top: 48px; height: clamp(360px, 58vw, 620px); }
.showcase .laptop { position: absolute; left: 50%; top: 0; width: min(720px, 86%); transform: translateX(-50%); }
.showcase .phone { position: absolute; width: clamp(130px, 22vw, 230px); }
.showcase .phone-a { left: max(0px, calc(50% - 470px)); top: 22%; transform: rotate(-5deg); }
.showcase .phone-b { right: max(0px, calc(50% - 470px)); top: 30%; transform: rotate(5deg); }
.showcase::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .showcase .device { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .showcase .phone-a { animation-delay: .25s; }
  .showcase .phone-b { animation-delay: .4s; }
}
@keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* El problema */
.pains h2 { text-align: center; }
.pain-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 28px; }
.pain { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.pain p { margin: 0; color: #dcdcdc; }
.pain-x { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 138, 128, .14); color: var(--danger); font-size: 13px; font-weight: 900; }
.pain-answer { text-align: center; font-size: clamp(19px, 2.6vw, 24px); margin: 32px 0 0; }
.pain-answer strong { color: var(--gold); }

/* Recorrido */
.tour-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding: 40px 0; }
.tour-row.reverse .tour-text { order: 2; }
.tour-row .phone { max-width: 300px; justify-self: center; width: 100%; }
.tour-num { font-size: 15px; font-weight: 900; color: var(--gold); letter-spacing: .1em; }
.tour-text h3 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; margin: 6px 0 12px; letter-spacing: -0.02em; }
.tour-text p { color: var(--muted); margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (max-width: 760px) {
  .tour-row { grid-template-columns: 1fr; padding: 28px 0; }
  .tour-row.reverse .tour-text { order: 0; }
  .tour-row .phone { max-width: 260px; }
}

/* Ejemplo de liquidación (maqueta en HTML) */
.payslip { padding: 8px; }
.slip { background: #0d0d0d; border-radius: 26px; padding: 26px 22px; }
.slip-tag { margin: 0; color: var(--gold-strong); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.slip-name { margin: 6px 0 16px; font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.slip dl { margin: 0; display: grid; gap: 10px; }
.slip dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.slip dt { color: var(--muted); }
.slip dd { margin: 0; font-weight: 700; }
.slip .neg { color: var(--danger); }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; }
.slip-total strong { font-size: 28px; color: var(--gold); }
.slip-pdf { margin: 0; color: var(--muted); font-size: 13px; }

/* Comparativa */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
th, td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { text-align: left; font-weight: 600; }
thead th { color: var(--muted); font-size: 14px; }
td { color: var(--muted); }
.hl { background: rgba(212, 175, 55, .09); }
thead .hl { color: var(--gold); font-size: 16px; font-weight: 900; }
td.yes { color: var(--text); font-weight: 700; }

/* Precios */
.pricing { background: linear-gradient(180deg, transparent, rgba(212, 175, 55, .05), transparent); }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 24px 24px; }
.plan h3 { margin: 0; font-size: 22px; }
.plan-desc { color: var(--muted); margin: 4px 0 18px; font-size: 15px; }
.price { margin: 0; font-size: clamp(38px, 5vw, 46px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.price .cur { font-size: .55em; vertical-align: top; margin-right: 2px; color: var(--muted); }
.price .per { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.price-note { color: var(--gold-strong); font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.plan .ticks { margin: 22px 0 26px; flex: 1; font-size: 15px; }
.plan-featured { border-color: var(--gold); box-shadow: 0 20px 60px rgba(212, 175, 55, .15); }
.plan-founder { background: linear-gradient(160deg, #1d1809, var(--card) 60%); border-color: rgba(212, 175, 55, .35); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--gold); color: #000; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.badge-dark { background: #000; color: var(--gold-strong); border: 1px solid var(--gold); }
.fine-print { color: var(--muted); font-size: 13px; max-width: 760px; margin: 26px auto 0; text-align: center; }

.form-alt { text-align: center; margin: 18px 0 0; color: var(--muted); }

/* Botón fijo en celulares */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta {
    display: block; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
    text-align: center; background: var(--gold); color: #000; font-weight: 800; text-decoration: none; padding: 15px; border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .55); transition: opacity .2s ease, transform .2s ease;
  }
  .sticky-cta.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .site-footer { padding-bottom: 96px; }
}

/* Aviso de cookies (informativo: el sitio no usa cookies de seguimiento) */
.cookie-note {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 420px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px; padding: 16px 18px; font-size: 14px; color: #dcdcdc; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.cookie-note p { margin: 0 0 10px; }
.cookie-note button { background: var(--gold); color: #000; border: 0; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 640px) { .cookie-note { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: none; } }

/* Pie con datos del responsable y botones legales */
.legal-buttons { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.legal-buttons a { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 7px 16px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.legal-buttons a:hover { border-color: var(--gold); color: var(--gold-strong); }
.footer-id { width: 100%; margin: 0; font-size: 13px; }

/* Páginas de baja y arrepentimiento */
.action-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin: 24px 0; }
.action-box .cta, .action-box .cta-ghost { margin: 6px 8px 6px 0; }

/* landing/src/brand/logo.css — compartido por la landing (portada) y la app (bienvenida). */
/* ===================== Logo animado de la portada =====================
   Entrada en CSS: anillo de luz que orbita y se cierra, la "N" se dibuja, la tijera
   hace un corte, destello y revelado de "NARÓ" con brillo metálico.
   Sin "reducir movimiento" se anima; si no, queda el logo quieto y completo. */
.hero-logo { position: relative; width: min(300px, 62vw); margin: 0 auto 28px; }
.naro-logo { display: block; width: 100%; height: auto; overflow: visible; }
.hero-sparks { position: absolute; inset: -12% -20%; width: 140%; height: 124%; pointer-events: none; }
.naro-logo .mark { filter: drop-shadow(0 0 10px rgba(212, 175, 55, .25)); }
.naro-logo .orbit-wrap, .naro-logo .flash, .naro-logo .streak, .naro-logo .shine-bar { opacity: 0; }
.naro-logo .floor { opacity: .55; }

@media (prefers-reduced-motion: no-preference) {
  .naro-logo * { transform-box: view-box; }
  .naro-logo .orbit-wrap { transform-origin: 1012px 680px; animation: naro-orbit 1.9s cubic-bezier(.5, 0, .2, 1) .1s both; }
  .naro-logo .orbit { stroke-dasharray: .28 .72; animation: naro-orbit-run 1.9s linear .1s both; }
  .naro-logo .bar { stroke-dasharray: 1; animation: naro-draw 1.1s cubic-bezier(.6, 0, .2, 1) .45s both; }
  .naro-logo .bar-right { animation-delay: .7s; }
  .naro-logo .mark-scissors { transform-origin: 968px 686px; animation: naro-scissors 1s cubic-bezier(.2, .8, .2, 1) .8s both; }
  .naro-logo .blade-b { transform-origin: 968px 686px; animation: naro-snip .55s cubic-bezier(.5, 0, .2, 1.4) 1.45s both; }
  .naro-logo .flash { transform-origin: 968px 686px; animation: naro-flash .8s ease-out 1.75s both; }
  .naro-logo .streak { transform-origin: 968px 686px; animation: naro-streak .9s ease-out 1.75s both; }
  .naro-logo .word-naro .ltr { animation: naro-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .naro-logo .word-naro .ltr:nth-child(1) { animation-delay: 1.95s; }
  .naro-logo .word-naro .ltr:nth-child(2) { animation-delay: 2.03s; }
  .naro-logo .word-naro .ltr:nth-child(3) { animation-delay: 2.11s; }
  .naro-logo .word-naro .ltr:nth-child(4) { animation-delay: 2.19s; }
  .naro-logo .word-app { animation: naro-rise .8s cubic-bezier(.2, .8, .2, 1) 2.45s both; }
  .naro-logo .shine-bar { animation: naro-shine 1.3s ease-in-out 2.5s both; }
  .naro-logo .floor { animation: naro-floor 1.2s ease-out 2.4s both; }
  .naro-logo .mark { animation: naro-glow 6s ease-in-out 3.5s infinite; }
  /* Brillo que se repite cada tanto (lo agrega logo-anim.js) */
  .naro-logo.shine-again .shine-bar { animation: naro-shine-again 1.3s ease-in-out both; }
}

@keyframes naro-orbit {
  0% { opacity: 0; transform: rotate(-24deg) scale(1.25); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: rotate(-10deg) scale(1); }
  100% { opacity: 0; transform: rotate(-4deg) scale(.35); }
}
@keyframes naro-orbit-run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1.6; } }
@keyframes naro-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes naro-scissors {
  from { opacity: 0; transform: translate(-60px, -60px) scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes naro-snip { 0% { transform: rotate(-16deg); } 60% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
@keyframes naro-flash {
  0% { opacity: 0; transform: scale(.2); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(4.5); }
}
@keyframes naro-streak {
  0% { opacity: 0; transform: scaleX(.1); }
  30% { opacity: .95; }
  100% { opacity: 0; transform: scaleX(1.3); }
}
@keyframes naro-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes naro-shine {
  0% { opacity: 0; transform: translateX(0); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(1300px); }
}
/* Igual que naro-shine, con otro nombre para que el navegador la vuelva a correr */
@keyframes naro-shine-again {
  0% { opacity: 0; transform: translateX(0); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(1300px); }
}
@keyframes naro-floor { from { opacity: 0; transform: scaleX(.3); } to { opacity: .55; transform: none; } }
@keyframes naro-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, .25)); }
  50% { filter: drop-shadow(0 0 22px rgba(243, 215, 127, .5)); }
}
.naro-logo .floor { transform-origin: 966px 1605px; }
