/* Evidenxa landing — tema día/noche vía html[data-theme] */
:root {
  --glass: rgba(255,255,255,.55); --glass-line: rgba(28,42,30,.12);
  --nav: #3b4a3d; --pill: rgba(255,255,255,.5);
  --sky: #dcebf5; --grass: #d3e7c3; --bg: #f7f5f0;
  --ink: #1c2a1e; --muted: #4f5d51; --line: #e4ded3;
  --card: #fff; --soft: #efebe3; --accent: #2563eb;
  --chip: rgba(255,255,255,.7); --chip-line: rgba(33,28,24,.12);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --h2: clamp(28.8px, 3.1vw, 37.8px);
}
html[data-theme="noche"] {
  --glass: rgba(255,255,255,.05); --glass-line: rgba(255,255,255,.12);
  --nav: #c4cbdb; --pill: rgba(255,255,255,.06);
  --sky: #13204a; --grass: #12271f; --bg: #0c1120;
  --ink: #eef2f8; --muted: #a5afc4; --line: #232c46;
  --card: #131a2e; --soft: #171f37; --accent: #7fb2ff;
  --chip: rgba(255,255,255,.08); --chip-line: rgba(255,255,255,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sky); }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background .3s;
}
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1e40af; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sec { max-width: 1180px; width: 100%; margin: 0 auto; padding: 100px 24px; display: flex; flex-direction: column; gap: 40px; }
.sec.first { padding-top: 72px; gap: 48px; }
.bg-sky { background: var(--sky); }
.bg-grass { background: var(--grass); }
.bg-page { background: var(--bg); transition: background .3s; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.kicker { font: 11.7px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
h2 { font-weight: 500; font-size: var(--h2); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.lead { font-size: 17.1px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ---- Header + hero ---- */
.top { background: var(--sky); transition: background .3s; padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1280px; margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; }
.logo img { height: 36px; width: auto; }
img.logo-dark, html[data-theme="noche"] img.logo-light { display: none; }
html[data-theme="noche"] img.logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 13.5px; font-weight: 500; }
.nav a:not(.cta-sm) { color: var(--nav); }
.nav a:not(.cta-sm):hover { opacity: .7; }
.theme-btn { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--chip); border: 1px solid var(--chip-line); color: var(--ink); cursor: pointer; padding: 0; }
.theme-btn:hover { opacity: .8; }
.theme-btn .i-sun { display: none; }
html[data-theme="noche"] .theme-btn .i-sun { display: block; }
html[data-theme="noche"] .theme-btn .i-moon { display: none; }
.cta-sm { white-space: nowrap; background: #2563eb; color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: inset 0 -3px 0 #1e40af, 0 1px 2px rgba(15,23,42,.2); font-weight: 700; font-size: 11.7px; letter-spacing: .08em; text-transform: uppercase; }
.cta-sm:hover { background: #1d4ed8; color: #fff; }

.hero { min-height: calc(100svh - 84px - env(safe-area-inset-top)); display: flex; flex-direction: column; background: var(--sky); transition: background .3s; }
.hero-copy { max-width: 1080px; margin: 0 auto; padding: 96px 24px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
h1 { font-weight: 500; font-size: clamp(32.4px, 4.3vw, 52.2px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
h1 span { color: var(--accent); }
.hero-sub { max-width: 640px; font-size: clamp(15.3px, 1.4vw, 18.9px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.net { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font: 10.8px var(--mono); color: var(--muted); }
.net-state { display: flex; align-items: center; gap: 8px; }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.net.off .net-dot { background: #e5484d; }
.net button { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--chip-line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.net button:hover { background: var(--chip); }
.stage { flex: 1 1 auto; min-height: 220px; position: relative; overflow: hidden; }
.stage canvas { display: block; position: absolute; bottom: 0; left: 0; width: 100%; image-rendering: pixelated; background: var(--sky); }

/* ---- Cards ---- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-priv { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-top span { font: 11.7px var(--mono); color: var(--muted); }
.card img { display: block; image-rendering: pixelated; }
.card h3 { font-size: 17.1px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.cards-flex { display: flex; flex-wrap: wrap; gap: 20px; }
.cards-flex .card { background: var(--glass); border-color: var(--glass-line); flex: 1 1 300px; }
.cards-flex .card:nth-child(1) { flex-basis: 340px; }
.cards-flex .card:nth-child(2) { flex: 1.6 1 460px; }

/* ---- Cómo funciona ---- */
.flow { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.flow-side { flex: 1 1 300px; max-width: 440px; display: flex; flex-direction: column; gap: 28px; }
.flow-side .lead strong { color: var(--ink); font-weight: 600; }
.tabs-wrap { display: flex; flex-direction: column; gap: 12px; }
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--pill); border: 1px solid var(--chip-line); border-radius: 9999px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.tabs button { font-size: 13px; font-weight: 500; border: 0; border-radius: 9999px; padding: 9px 20px; cursor: pointer; background: transparent; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: #1c2a1e; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.flow-intro { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.steps button { width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 18px 0; cursor: pointer; display: flex; gap: 16px; align-items: baseline; color: var(--muted); }
.steps .n { font: 12px var(--mono); flex: none; }
.steps .t { display: flex; flex-direction: column; gap: 8px; }
.steps .t b { font-size: 17.1px; font-weight: 500; line-height: 1.3; }
.steps .t small { display: none; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.steps .on { color: var(--ink); }
.steps .on .n { color: var(--accent); }
.steps .on small { display: block; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--chip-line); background: var(--pill); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.arrows button:hover { background: var(--card); }
.viewer { flex: 2 1 480px; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 4/3; }
.shot { display: none; width: 100%; height: auto; }
html[data-theme="dia"] .shot.dia.cur, html[data-theme="noche"] .shot.noche.cur { display: block; }
.viewer .shot { height: 100%; object-fit: cover; }

/* ---- Analítica ---- */
.ana { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.ana .head { grid-column: 1 / -1; }
.ana-img { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.ana-txt { display: flex; flex-direction: column; gap: 22px; }
.risk { display: flex; gap: 8px; flex-wrap: wrap; }
.risk span { display: flex; align-items: center; gap: 7px; font-size: 12.6px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.risk i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.points li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.points strong { color: var(--ink); font-weight: 600; }

/* ---- CTA + footer ---- */
.cta { background: var(--sky); padding: 120px 24px 150px; }
.cta-in { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-in h2 { font-size: clamp(32.4px, 4.3vw, 52.2px); line-height: 1.08; }
.cta-in .lead { max-width: 640px; font-size: clamp(15.3px, 1.4vw, 18.9px); line-height: 1.5; }
.cta-btn { margin-top: 8px; display: flex; align-items: center; gap: 10px; background: #2563eb; color: #fff; padding: 18px 30px; border-radius: 14px; font-weight: 700; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 -5px 0 #1e40af, 0 10px 24px rgba(37,99,235,.28); }
.cta-btn:hover { background: #1d4ed8; color: #fff; }
.strip { background: var(--sky); line-height: 0; overflow: hidden; }
.strip canvas { display: block; margin: 0 auto; image-rendering: pixelated; }
.foot { background: var(--grass); color: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 48px 24px 36px; display: flex; flex-direction: column; gap: 48px; }
.foot-row { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.foot-brand img { height: 32px; width: auto; align-self: flex-start; }
.foot-brand p { font-size: 12.2px; line-height: 1.55; color: var(--muted); }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; font-size: 13px; }
.foot-cols div { display: flex; flex-direction: column; gap: 16px; }
.foot a { color: var(--ink); }
.foot a:hover { opacity: .7; }
.foot-bottom { border-top: 1px solid var(--chip-line); padding-top: 28px; font-size: 11.5px; color: var(--muted); }
.foot-bottom a { font-weight: 600; }

@media (max-width: 720px) {
  .nav a:not(.cta-sm) { display: none; }
  .nav { gap: 10px; }
  .cta-sm { padding: 11px 14px; }
  .top-in { padding: 16px 20px; }
  .hero-copy { padding-top: 56px; }
  .sec { padding-top: 72px; padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Páginas internas (soporte, eliminar cuenta) ---- */
.page-hero { background: var(--sky); transition: background .3s; }
.page-hero-in { max-width: 860px; margin: 0 auto; padding: 72px 24px 88px; display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(32.4px, 4.3vw, 48px); }
.page-hero .lead { max-width: 640px; }
.page-sec { max-width: 860px; width: 100%; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; gap: 28px; }
.page-sec + .page-sec { padding-top: 0; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
a.contact-card:hover { color: var(--ink); border-color: var(--accent); }
.contact-card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.contact-card h3 { font-size: 17.1px; font-weight: 600; letter-spacing: -.01em; }
.contact-card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.contact-card .more { font: 11.7px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-top: auto; }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17.1px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq .chev { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--chip-line); background: var(--pill); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 44px 22px 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); display: flex; flex-direction: column; gap: 12px; text-wrap: pretty; }
.faq .ans strong { color: var(--ink); font-weight: 600; }
.faq .ans ul, .faq .ans ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.faq-title { font: 11.7px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps-list li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 22px 72px; position: relative; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.steps-list li::before { content: counter(s); position: absolute; left: 24px; top: 20px; width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 13px var(--mono); display: flex; align-items: center; justify-content: center; }
html[data-theme="noche"] .steps-list li::before { color: #0c1120; }
.steps-list strong { color: var(--ink); font-weight: 600; display: block; font-size: 17.1px; margin-bottom: 2px; }
.two-col { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.note { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.note strong { color: var(--ink); }
.note a { font-weight: 600; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border: 1px solid var(--chip-line); background: var(--pill); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.btn-line:hover { background: var(--card); color: var(--ink); }
.page-foot-gap { height: 24px; background: var(--bg); }
@media (max-width: 720px) { .faq .ans { padding-right: 0; } .page-hero-in { padding: 48px 20px 64px; } .page-sec { padding: 56px 20px; } }
