/* Nitia · sitio público (nitiaimagen.app). CSS plano, sin dependencias ni fuentes externas. */
:root {
  --navy: #0b2438;
  --teal: #159bb0;
  --teal-ink: #0d7587;
  --coral: #ff6b4a;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #e9eff4;
  --ink: #0f2233;
  --muted: #4a5f72;
  --line: #cfd9e2;
  --accent: #0f66c3;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(11, 36, 56, .06), 0 12px 32px -12px rgba(11, 36, 56, .28);
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1824;
    --surface: #10263a;
    --surface-2: #163049;
    --ink: #e9f1f7;
    --muted: #a7bacb;
    --line: #264560;
    --accent: #5aa9ff;
    --accent-ink: #06182a;
    --teal-ink: #4cc3d8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink) !important; font-weight: 600; text-decoration: none; font-size: 1rem; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--accent) !important; }
.btn.wa { background: #128c4a; border-color: #128c4a; color: #fff !important; }
.btn.big { padding: 15px 28px; font-size: 1.05rem; }
.btn.small { padding: 8px 16px; font-size: .92rem; }

/* Hero */
.hero { padding: 56px 0 24px; background: radial-gradient(1100px 420px at 85% -10%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%); }
.badge { display: inline-flex; gap: 8px; align-items: center; background: color-mix(in srgb, var(--coral) 14%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--coral) 45%, var(--line)); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; margin-bottom: 18px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.hero-text { max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--teal-ink); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 680px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.chips li::before { content: "✓ "; color: var(--teal-ink); font-weight: 700; }

/* Marco de captura */
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot .bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.shot .bar span { margin-left: 10px; font-size: .8rem; color: var(--muted); }
.hero .shot { margin-top: 40px; }
.cap { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Secciones */
section { padding: 72px 0; }
.alt { background: var(--surface-2); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--teal-ink); margin-bottom: 10px; }
.intro { max-width: 720px; color: var(--muted); font-size: 1.1rem; }

/* Problema */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .3em; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--coral) 16%, var(--surface)); font-size: 1.25rem; margin-bottom: 12px; }
.quote { margin: 36px 0 0; padding: 22px 26px; border-left: 5px solid var(--coral); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.25rem; font-weight: 600; }
.formula { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--muted); }
.formula b { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; color: var(--ink); }

/* Funciones */
.feature { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr 1.25fr; padding: 40px 0; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .ftext { order: 2; }
.feature.flip .shot { order: 1; }
.ftext ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.ftext li { margin-bottom: .45em; }
.ftext li::marker { color: var(--teal); }
.phone { max-width: 270px; margin-inline: auto; border-radius: 34px; border: 8px solid var(--navy); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.feature.wide { grid-template-columns: 1fr; gap: 24px; }
.feature.wide .ftext ul { columns: 2; column-gap: 40px; }
.feature.wide .ftext li { break-inside: avoid; }
.duo { display: grid; grid-template-columns: 1fr 270px; gap: 28px; align-items: center; }

.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }

/* Recorrido */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 30px; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { background: var(--teal); color: #04202a; } }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Piloto */
.pilot { background: var(--navy); color: #eaf3f9; }
.pilot .kicker { color: #6fd3e4; }
.pilot .intro, .pilot li, .pilot p { color: #c4d6e3; }
.pilot h2, .pilot h3 { color: #fff; }
.phases { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 30px 0; }
.phase { border: 1px solid #2d516c; background: #0f2f47; border-radius: var(--radius); padding: 22px; }
.phase b { color: #6fd3e4; display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.two { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.pilot ul { padding-left: 1.1em; margin: 0; }
.pilot li { margin-bottom: .4em; }
.pilot .btn.ghost { color: #fff !important; border-color: #6fd3e4; }

/* Quién */
.about { display: grid; gap: 36px; grid-template-columns: 220px 1fr; align-items: center; }
.about img { width: 200px; height: 200px; border-radius: 44px; box-shadow: var(--shadow); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 20px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-ink); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 6px; }

/* Contacto */
.contact { text-align: center; }
.contact .intro { margin-inline: auto; }
.contact .cta-row { justify-content: center; }
.mail { font-size: 1.05rem; }

footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer p { margin: 0; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .feature, .feature.flip, .two, .about, .duo { grid-template-columns: 1fr; }
  .feature.wide .ftext ul { columns: 1; }
  /* Las capturas son densas: en el celular se deslizan de lado para poder leerlas. */
  .shot { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .shot img { min-width: 640px; }
  .shot::after { content: "Deslice para ver más →"; display: block; position: sticky; left: 0; padding: 6px 12px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }
  .feature.flip .ftext, .feature.flip .shot { order: 0; }
  section { padding: 52px 0; }
  .about img { width: 120px; height: 120px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .top, .cta-row, .menu-btn { display: none; } body { background: #fff; } }

/* Utilidades (la política de seguridad no permite estilos dentro del HTML). */
figure { margin: 0; }
.mt { margin-top: 24px; }
.narrow { max-width: 820px; }
.notfound { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 8px; }
.notfound img { margin-inline: auto; border-radius: 22px; }
.notfound h1 { font-size: 2rem; }
.notfound .intro { margin-inline: auto; }
