:root {
  --bg: #FDF6E3; --surface: #F3EAD3; --surface2: #EADFC4; --text: #333333; --muted: #6B6559; --accent: #3E6E8E;
  --accent-text: #FFFFFF; --pivot: #C0504D; --line: #D8CDB2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515; --surface: #222222; --surface2: #2C2C2C; --text: #E8E8E8; --muted: #A0A0A0; --accent: #6FA8FF;
    --accent-text: #111111; --pivot: #FF453A; --line: #3A3A3A;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header a { text-decoration: none; color: var(--text); }
.logo { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.logo span { color: var(--pivot); }
h1 { font-size: 30px; line-height: 1.25; margin: 28px 0 4px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
.fecha { color: var(--muted); margin: 0 0 24px; }
.caja { background: var(--surface); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
a { color: var(--accent); }
li { margin: 4px 0; }
footer { color: var(--muted); font-size: 14px; margin-top: 48px; }
img, video { max-width: 100%; height: auto; }

/* ---------- Página de inicio ---------- */
.sitio { max-width: 1080px; }
.barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.barra nav { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
.barra nav a { color: var(--muted); text-decoration: none; }
.barra nav a:hover { color: var(--text); }

.portada { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; margin: 32px 0 24px; }
.portada h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.5px; }
.portada h1 em { font-style: normal; color: var(--pivot); }
.bajada { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.botones { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.boton { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-text);
  padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 17px; }
.boton.secundario { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.boton svg { width: 22px; height: 22px; flex: none; }
.nota { font-size: 14px; color: var(--muted); margin-top: 12px; }
.marcas { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-top: 20px; font-size: 15px; color: var(--muted); padding: 0; list-style: none; }
.marcas li { margin: 0; }
.marcas li::before { content: "✓ "; color: var(--pivot); font-weight: 700; }

.telefono { width: 100%; max-width: 300px; justify-self: center; aspect-ratio: 9 / 20; border-radius: 36px;
  border: 10px solid #1d1d1d; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.telefono video, .telefono img { width: 100%; height: 100%; object-fit: cover; display: block; }

section { margin: 72px 0; }
section > h2 { font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.3px; }
section > .intro { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 28px; }

/* Demostración en vivo */
.demo { background: var(--surface); border-radius: 24px; padding: 28px 20px; }
.demo-zona { height: 130px; position: relative; overflow: hidden; cursor: pointer; font-size: clamp(34px, 7vw, 54px);
  font-weight: 500; display: flex; align-items: center; user-select: none; }
.demo-zona::before, .demo-zona::after { content: ""; position: absolute; left: 40%; width: 2px; height: 18px; background: var(--muted); opacity: .5; }
.demo-zona::before { top: 6px; } .demo-zona::after { bottom: 6px; }
.demo-texto { white-space: pre; position: absolute; left: 0; }
.demo-texto .piv { color: var(--pivot); }
.demo-controles { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.demo-controles button { background: var(--accent); color: var(--accent-text); border: 0; border-radius: 999px; padding: 12px 24px;
  font: inherit; font-weight: 700; cursor: pointer; min-width: 120px; }
.demo-controles label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.demo-controles input[type=range] { width: 180px; max-width: 38vw; accent-color: var(--accent); }
.demo-controles label span { white-space: nowrap; }
.demo-ppm { font-weight: 800; color: var(--text); min-width: 3ch; display: inline-block; }
.demo-pista { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Pasos y tarjetas */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
.paso { background: var(--surface); border-radius: 20px; padding: 22px; }
.paso::before { counter-increment: paso; content: counter(paso); display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 10px; }
.paso h3, .tarjeta h3 { margin: 0 0 6px; font-size: 19px; }
.paso p, .tarjeta p { margin: 0; color: var(--muted); }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tarjeta { background: var(--surface); border-radius: 18px; padding: 20px; }
.tarjeta .icono { font-size: 26px; line-height: 1; margin-bottom: 8px; display: block; }

/* Bloques con imagen */
.bloque { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bloque.inverso .texto { order: 2; }
.bloque .texto h2 { font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; margin: 0 0 12px; }
.bloque .texto p { color: var(--muted); font-size: 18px; }
.bloque ul { padding-left: 20px; }
.capturas { display: flex; gap: 16px; justify-content: center; }
.capturas img { width: 48%; max-width: 260px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.capturas.una img { width: 70%; max-width: 300px; }
.ancha img { width: 100%; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }

/* Galería */
.galeria-inicio { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px; overflow-x: auto;
  padding-bottom: 12px; scroll-snap-type: x mandatory; }
.galeria-inicio figure { margin: 0; scroll-snap-align: start; }
.galeria-inicio img { width: 100%; border-radius: 18px; display: block; }
.galeria-inicio figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; }

/* Planes */
.planes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--surface); border-radius: 22px; padding: 26px; }
.plan.destacado { outline: 3px solid var(--accent); }
.plan h3 { margin: 0; font-size: 22px; }
.plan .precio { font-size: 15px; color: var(--muted); margin: 4px 0 14px; }
.plan .precio strong { font-size: 30px; color: var(--text); }
.plan ul { padding-left: 20px; margin: 0; }

/* Preguntas */
details { background: var(--surface); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; }

.cierre { text-align: center; background: var(--surface); border-radius: 28px; padding: 44px 20px; }
.cierre h2 { margin-top: 0; }
.cierre .botones { justify-content: center; }
.pie { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.pie nav { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .portada, .bloque, .planes { grid-template-columns: 1fr; }
  .bloque.inverso .texto { order: 0; }
  .pasos { grid-template-columns: 1fr; }
  .telefono { max-width: 260px; }
  section { margin: 56px 0; }
  .barra nav a.secundario { display: none; }
}

/* Prueba de velocidad */
.prueba { background: var(--surface); border-radius: 24px; padding: 28px 24px; scroll-margin-top: 12px; }
.prueba h3 { margin: 0 0 16px; font-size: 22px; }
.prueba button { font: inherit; font-weight: 700; cursor: pointer; }
.prueba button.boton { border: 0; }
.prueba button.boton.secundario { border: 2px solid var(--accent); }
.prueba-texto { font-size: 19px; line-height: 1.7; margin-bottom: 20px; }
.prueba-texto p { margin: 0 0 14px; }
.prueba-opciones { display: grid; gap: 10px; }
.prueba-opciones .boton { justify-content: center; text-align: center; }
.prueba-numero { font-size: 72px; font-weight: 800; line-height: 1; margin: 0; color: var(--accent); }
.articulo { max-width: 720px; }
.articulo h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 10px; }
.articulo p, .articulo li { color: var(--muted); }

/* Sugerencia de idioma */
.aviso-idioma { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border-radius: 999px; padding: 6px 8px 6px 20px; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 10; }
.aviso-idioma a { font-weight: 700; white-space: nowrap; }
.aviso-idioma button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; min-width: 44px; min-height: 44px; }
