/* ════════════════════════════════════════════════════════════════
   VIDDIO — Página de ventas. Sistema aparte del panel: blanco
   premium, carbón y azul de marca, con el rojo de la mascota como
   acento. El panel usa app.css; esto es solo la portada pública.
   ════════════════════════════════════════════════════════════════ */

:root {
  --blanco: #ffffff;
  --gris: #f5f5f7;
  --texto: #1d1d1f;
  --texto-2: #6e6e73;
  --texto-3: #86868b;
  --borde: rgba(0, 0, 0, .08);
  --azul: #2e7cf6;
  --azul-texto: #1554b8;
  --rojo: #e8252b;
  --verde: #34c759;
  --carbon: #1d1d1f;
  --sombra: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --sombra-lg: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 60px rgba(0, 0, 0, .13);
  --curva: cubic-bezier(.25, .1, .25, 1);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--texto); background: var(--blanco);
  line-height: 1.5; letter-spacing: -.012em; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
::selection { background: rgba(46, 124, 246, .25); }

.contenedor { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding: 104px 0; }
.gris { background: var(--gris); }
.centro { text-align: center; }
/* `.ic` es la clase del sprite compartido con el panel; `.ico` se conserva
   porque la referencia de diseño la usaba. Ambas deben pintar igual. */
.ic, .ico {
  width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
/* Dentro de una caja de icono mandan las medidas de la caja, no las del svg. */
.icono-caja .ic { width: 22px; height: 22px; }
.flotante .punto .ic { width: 17px; height: 17px; }
/* El de play va relleno, no de trazo. */
.ic use[href="#i-play"], .flotante .ic { stroke-width: 2; }

h1, h2, h3 { margin: 0; color: var(--texto); }
h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.03; letter-spacing: -.048em; font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.038em; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.022em; font-weight: 700; }

.antetitulo {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px;
  font-weight: 700; color: var(--azul-texto); margin-bottom: 16px;
}
.antetitulo svg { width: 17px; height: 17px; color: var(--azul); }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--texto-2); letter-spacing: -.016em; }
.subtitulo-seccion { max-width: 680px; margin: 18px auto 0; }
.resaltado {
  background: linear-gradient(transparent 58%, rgba(46, 124, 246, .22) 58%,
              rgba(46, 124, 246, .22) 92%, transparent 92%);
  padding: 0 .06em;
}

/* ── Botones ── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 28px; border-radius: 980px; border: 0;
  font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: -.015em;
  white-space: nowrap; cursor: pointer;
  transition: background .2s var(--curva), transform .1s var(--curva);
}
.boton:active { transform: scale(.98); }
.boton-primario { background: var(--carbon); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 6px 18px rgba(0,0,0,.12); }
.boton-primario:hover { background: #3a3a3c; }
.boton-secundario { background: var(--blanco); color: var(--texto); border: 1px solid var(--borde); }
.boton-secundario:hover { background: #fafafa; }
.boton-pequeno { height: 38px; padding: 0 18px; font-size: 15px; }
.acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.nota-cta { margin-top: 18px; font-size: 14px; color: var(--texto-3); display: flex; gap: 18px; flex-wrap: wrap; }
.nota-cta span { display: inline-flex; align-items: center; gap: 6px; }
.nota-cta svg { width: 16px; height: 16px; color: var(--verde); }

/* ── Encabezado ── */
.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--borde);
}
.encabezado .contenedor { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo .logotipo { height: 32px; width: auto; }
.menu { display: flex; gap: 26px; margin-left: 12px; font-size: 14px; color: var(--texto-2); font-weight: 500; }
.menu a:hover { color: var(--texto); }
.encabezado .derecha { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.encabezado .entrar { color: var(--texto-2); font-weight: 600; }
.encabezado .entrar:hover { color: var(--texto); }
@media (max-width: 860px) { .menu { display: none; } }

/* ── Portada ── */
.portada {
  padding: 72px 0 104px; overflow: hidden;
  background:
    radial-gradient(50% 55% at 88% 20%, rgba(46, 124, 246, .16), transparent 70%),
    radial-gradient(38% 38% at 6% 90%, rgba(232, 37, 43, .05), transparent 70%),
    var(--blanco);
}
.portada-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.portada .lead { margin: 24px 0 34px; max-width: 560px; }
.prueba-social { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 14px; color: var(--texto-2); font-weight: 500; }
.prueba-social .mascota { width: 26px; height: 26px; }

/* ── Escena: el correo que recibe el prospecto ── */
.escena { position: relative; display: flex; justify-content: center; padding: 20px 10px 40px; }
.correo {
  position: relative; width: 340px; border-radius: 24px; background: #fff;
  border: 1px solid rgba(0,0,0,.07); box-shadow: var(--sombra-lg); overflow: hidden;
}
.correo-barra { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fafafa; border-bottom: 1px solid #ededed; }
.correo-barra .av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #55a1ff, #2e7cf6);
}
.correo-barra b { display: block; font-size: 14px; }
.correo-barra small { display: block; font-size: 11.5px; color: #86868b; }
.correo-cuerpo { padding: 18px 16px 20px; }
.correo-cuerpo p { font-size: 14px; color: var(--texto-2); line-height: 1.5; margin-bottom: 14px; }
.correo-video {
  position: relative; border-radius: 14px; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(145deg, #243242, #0f1620);
  display: grid; place-items: center;
}
.correo-video .play {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.correo-video .play svg { width: 22px; height: 22px; color: #1d1d1f; fill: currentColor; stroke: none; margin-left: 3px; }
.correo-video .dur { position: absolute; right: 9px; bottom: 9px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.correo-boton { margin-top: 14px; height: 42px; border-radius: 980px; background: var(--azul); color: #fff; font-weight: 700; font-size: 14.5px; display: grid; place-items: center; }

.flotante {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, .06); border-radius: 18px; box-shadow: var(--sombra-lg);
  padding: 11px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; max-width: 212px;
}
.flotante small { display: block; font-size: 11.5px; color: var(--texto-3); font-weight: 500; }
.flotante .punto { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.f-abierto   { top: 40%; left: -16%; }
.f-visto     { top: 62%; right: -13%; }
.f-respondio { bottom: -5%; left: -2%; }
@media (max-width: 1140px) { .f-abierto, .f-visto, .f-respondio { display: none; } }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.chip { padding: 9px 16px; border-radius: 980px; background: var(--gris); font-size: 15px; font-weight: 600; }
.gris .chip { background: #fff; }

/* ── Tarjetas ── */
.rejilla-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 56px; }
.rejilla-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 56px; }
.rejilla-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-top: 56px; }
.tarjeta { background: var(--blanco); border-radius: 24px; padding: 30px; border: 1px solid rgba(0,0,0,.04); box-shadow: var(--sombra); }
.gris .tarjeta { border-color: transparent; }
.tarjeta h3 { margin: 18px 0 8px; }
.tarjeta p { color: var(--texto-2); font-size: 16px; line-height: 1.5; }
.icono-caja { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.icono-caja.azul   { background: rgba(46, 124, 246, .1);  color: var(--azul); }
.icono-caja.rojo   { background: rgba(232, 37, 43, .09);  color: var(--rojo); }
.icono-caja.verde  { background: rgba(52, 199, 89, .14);  color: #248a3d; }
.icono-caja.carbon { background: var(--carbon); color: #fff; }

/* ── Cómo funciona ── */
.paso-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
            background: var(--carbon); color: #fff; font-weight: 800; font-size: 16px; }
.paso-ilus { margin-top: 22px; border-radius: 16px; background: var(--gris); padding: 16px; min-height: 124px; }
.gris .paso-ilus { background: #fff; }
.mini-fila { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--sombra); }
.gris .mini-fila { background: var(--gris); box-shadow: none; }
.mini-fila b { display: block; font-size: 13.5px; }
.mini-fila small { display: block; font-size: 11.5px; color: var(--texto-3); }
.mini-lineas { display: grid; gap: 6px; margin-top: 12px; }
.mini-lineas i { display: block; height: 8px; border-radius: 4px; background: #e3e3e8; }
.mini-lineas i:nth-child(2) { width: 82%; }
.mini-lineas i:nth-child(3) { width: 64%; }
.barra-mini { height: 8px; border-radius: 4px; background: #e3e3e8; overflow: hidden; margin-top: 10px; }
.barra-mini i { display: block; height: 100%; border-radius: 4px; background: var(--azul); }

/* ── Datos ── */
.datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: center; }
.datos .n { font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.datos p { color: var(--texto-2); margin-top: 10px; font-size: 15.5px; }

/* ── Funciones ── */
.funcion { display: flex; gap: 14px; align-items: flex-start; }
.funcion h3 { font-size: 17.5px; margin-bottom: 5px; }
.funcion p { color: var(--texto-2); font-size: 15px; line-height: 1.5; }
.rejilla-funciones { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 34px 28px; margin-top: 56px; }

/* ── Precios ── */
.precios { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 56px; align-items: start; }
.precio { background: #fff; border-radius: 24px; padding: 32px 28px; border: 1px solid rgba(0,0,0,.06); box-shadow: var(--sombra); }
.precio.destacado { border-color: var(--carbon); box-shadow: var(--sombra-lg); position: relative; }
.precio .etiqueta { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--carbon); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 980px; }
.precio .nombre { font-size: 17px; font-weight: 700; }
.precio .monto { font-size: 46px; font-weight: 800; letter-spacing: -.045em; margin: 12px 0 2px; }
.precio .monto span { font-size: 15px; font-weight: 600; color: var(--texto-3); letter-spacing: 0; }
.precio ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.precio li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; color: var(--texto-2); }
.precio li svg { width: 18px; height: 18px; color: var(--verde); flex: none; margin-top: 2px; }
.precio .boton { width: 100%; }

/* ── Preguntas ── */
.preguntas { max-width: 760px; margin: 56px auto 0; }
.pregunta { border-bottom: 1px solid var(--borde); }
.pregunta summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-size: 18px; font-weight: 700;
  letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--texto-3); flex: none; }
.pregunta[open] summary::after { content: "−"; }
.pregunta p { padding: 0 0 22px; color: var(--texto-2); font-size: 16.5px; line-height: 1.6; max-width: 640px; }

/* ── Cierre ── */
section.final {
  background: var(--carbon); color: #fff; text-align: center;
  background-image: radial-gradient(60% 60% at 50% 0%, rgba(46,124,246,.3), transparent 70%);
}
section.final h2 { color: #fff; }
section.final .lead { color: rgba(255,255,255,.72); margin: 18px auto 34px; max-width: 580px; }
section.final .boton-primario { background: #fff; color: var(--carbon); }
section.final .boton-primario:hover { background: #ededed; }
section.final .mascota { width: 76px; height: 76px; margin: 0 auto 24px; }
section.final .nota-cta { justify-content: center; color: rgba(255,255,255,.6); }

/* ── Pie ── */
.pie { padding: 44px 0; border-top: 1px solid var(--borde); font-size: 14px; color: var(--texto-3); }
.pie .contenedor { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pie a:hover { color: var(--texto); }
.pie .enlaces { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Pantallas chicas ── */
@media (max-width: 980px) {
  section { padding: 76px 0; }
  .portada-grid { grid-template-columns: 1fr; gap: 40px; }
  .rejilla-3, .rejilla-4, .rejilla-funciones, .precios, .datos { grid-template-columns: 1fr; }
  .rejilla-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rejilla-4 { grid-template-columns: 1fr; }
  .datos { grid-template-columns: 1fr; gap: 34px; }
  .correo { width: 100%; max-width: 340px; }
}
