:root {
  --azul: #1667ad;
  --azul-hondo: #0d3d6b;
  --celeste: #7cc1e6;
  --celeste-suave: #e9f5fc;
  --naranja: #f47a10;
  --naranja-hondo: #d9650a;
  --tinta: #0f1c2b;
  --gris: #5a6676;
  --linea: #e3e9f0;
  --fondo: #ffffff;
  --fondo-suave: #f5f8fb;
  --radio: 28px;
  --sombra: 0 24px 60px -28px rgba(13, 61, 107, .35);
  --ancho: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--tinta);
  background: var(--fondo);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

/* Marquesina */
.aviso { background: var(--azul-hondo); color: #fff; overflow: hidden; font-size: 13.5px; font-weight: 600; }
.aviso-pista { display: flex; width: max-content; animation: correr 28s linear infinite; }
.aviso-pista span { padding: 9px 26px; white-space: nowrap; display: flex; align-items: center; gap: 26px; }
.aviso-pista span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--naranja); margin-left: 26px; }
@keyframes correr { to { transform: translateX(-50%); } }

/* Navegación flotante */
.nav {
  position: sticky; top: 12px; z-index: 40;
  width: min(var(--ancho), calc(100% - 24px)); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(227, 233, 240, .9); border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(13, 61, 107, .35);
}
.nav-logo img { height: 30px; width: auto; }
.nav-enlaces { display: flex; gap: 4px; }
.nav-enlaces a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--gris); padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-enlaces a:hover { background: var(--fondo-suave); color: var(--tinta); }
.nav-pedido {
  display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  background: var(--tinta); color: #fff; padding: 11px 18px; font-weight: 700; font-size: 15px; position: relative;
}
.nav-pedido svg { width: 19px; height: 19px; }
.contador { background: var(--naranja); color: #fff; min-width: 22px; height: 22px; border-radius: 999px; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.contador.salto { animation: salto .45s ease; }
@keyframes salto { 40% { transform: scale(1.35); } }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 16px 26px; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.boton:active { transform: scale(.97); }
.boton-naranja { background: var(--naranja); color: #fff; box-shadow: 0 14px 30px -14px rgba(244, 122, 16, .8); }
.boton-naranja:hover { background: var(--naranja-hondo); }
.boton-claro { background: var(--fondo-suave); color: var(--tinta); border: 1px solid var(--linea); }
.boton-claro:hover { background: #ecf1f6; }
.boton-ancho { width: 100%; }

/* Hero */
.hero {
  width: min(var(--ancho), calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 72px 0 88px;
}
.pildora {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px;
  background: var(--celeste-suave); color: var(--azul); font-weight: 700; font-size: 14px; padding: 8px 15px; border-radius: 999px;
}
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 0 rgba(244, 122, 16, .6); animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 9px rgba(244, 122, 16, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 122, 16, 0); } }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--azul); }
.hero-bajada { font-size: clamp(17px, 1.6vw, 19px); color: var(--gris); max-width: 540px; margin: 22px 0 32px; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-datos { display: flex; gap: 0; margin: 44px 0 0; padding: 0; }
.hero-datos div { padding: 0 28px; border-left: 1px solid var(--linea); }
.hero-datos div:first-child { padding-left: 0; border-left: 0; }
.hero-datos dt { font-size: 13.5px; color: var(--gris); font-weight: 600; }
.hero-datos dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

.hero-media { position: relative; }
.hero-video {
  border-radius: 36px; overflow: hidden; aspect-ratio: 1; background: #1a2330;
  box-shadow: var(--sombra); transform: rotate(1.5deg);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.flotante {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 20px; padding: 12px 18px 12px 12px; box-shadow: 0 18px 40px -20px rgba(13, 61, 107, .45);
  animation: flotar 6s ease-in-out infinite;
}
.flotante b { display: block; font-size: 15px; }
.flotante small { color: var(--gris); font-size: 13px; }
.flotante-a { top: 9%; left: -34px; }
.flotante-b { bottom: 8%; right: -22px; animation-delay: -3s; }
.flotante-icono { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.flotante-icono svg { width: 22px; height: 22px; }
.flotante-icono.naranja { background: var(--naranja); }
.flotante-icono.azul { background: var(--azul); }
@keyframes flotar { 50% { transform: translateY(-8px); } }

/* Cabeceras de sección */
.cabecera { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.cabecera h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.cabecera p { color: var(--gris); font-size: 18px; margin: 14px 0 0; }

/* Productos */
.productos { background: var(--fondo-suave); padding: 96px 16px; border-radius: 48px 48px 0 0; }
.producto {
  width: min(var(--ancho), 100%); margin: 0 auto 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: #fff; border-radius: 40px; padding: 28px; border: 1px solid var(--linea);
}
.producto:last-child { margin-bottom: 0; }
.producto-invertido .producto-media { order: 2; }
.visor { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1; background: #10161f; }
.visor-video, .visor-foto { width: 100%; height: 100%; object-fit: cover; }
.etiqueta-descuento { position: absolute; top: 16px; left: 16px; background: var(--naranja); color: #fff; font-weight: 800; font-size: 15px; padding: 7px 13px; border-radius: 999px; }
.visor-sonido {
  position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(15, 28, 43, .62); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px);
}
.visor-sonido svg { width: 21px; height: 21px; }
.visor-sonido .icono-sonido, .visor-sonido.activo .icono-mudo { display: none; }
.visor-sonido.activo .icono-sonido { display: block; }
.miniaturas { display: flex; gap: 10px; margin-top: 12px; }
.miniaturas button { position: relative; width: 74px; height: 74px; border-radius: 18px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; opacity: .65; transition: opacity .2s, border-color .2s; }
.miniaturas button.activa { border-color: var(--azul); opacity: 1; }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas span { position: absolute; inset: auto 0 0; background: rgba(15, 28, 43, .6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 0; }

.producto-info { padding: 8px 12px 8px 0; }
.producto-invertido .producto-info { padding: 8px 0 8px 12px; }
.producto-tipo { color: var(--azul); font-weight: 700; font-size: 14.5px; margin: 0 0 8px; }
.producto-info h3 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; margin: 18px 0 16px; }
.precio b { font-size: 36px; letter-spacing: -.02em; }
.precio s { color: var(--gris); font-size: 18px; }
.precio span { background: #fff1e5; color: var(--naranja-hondo); font-weight: 700; font-size: 14px; padding: 5px 11px; border-radius: 999px; }
.producto-bajada { color: var(--gris); font-size: 16.5px; margin: 0 0 24px; }
.rasgos { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.rasgos li { display: flex; gap: 12px; align-items: flex-start; }
.rasgo-icono { flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--celeste-suave); color: var(--azul); display: grid; place-items: center; }
.rasgo-icono svg { width: 20px; height: 20px; }
.rasgos b { font-size: 15px; }
.rasgos p { margin: 2px 0 0; color: var(--gris); font-size: 14px; line-height: 1.45; }
.comprar { display: flex; gap: 12px; }
.cantidad { display: flex; align-items: center; border: 1px solid var(--linea); border-radius: 999px; padding: 4px; flex: none; }
.cantidad button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--fondo-suave); font-size: 20px; font-weight: 600; }
.cantidad output { min-width: 34px; text-align: center; font-weight: 700; font-size: 17px; }
.enlace-agregar { margin-top: 14px; border: 0; background: none; color: var(--azul); font-weight: 700; font-size: 15px; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }

/* Pasos */
.pasos { padding: 104px 16px; }
.pasos-lista { list-style: none; padding: 0; margin: 0 auto; width: min(var(--ancho), 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
.pasos-lista li { background: var(--fondo-suave); border-radius: var(--radio); padding: 32px 28px; }
.paso-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--azul); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 22px; }
.pasos-lista li:last-child .paso-num { background: var(--naranja); }
.pasos-lista h3 { font-size: 22px; font-weight: 800; }
.pasos-lista p { color: var(--gris); margin: 8px 0 0; }

/* Beneficios */
.beneficios { width: min(var(--ancho), calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--azul-hondo); color: #fff; border-radius: 36px; overflow: hidden; }
.beneficio { padding: 36px 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.beneficio:first-child { border-left: 0; }
.beneficio svg { width: 30px; height: 30px; color: var(--celeste); margin-bottom: 18px; }
.beneficio h3 { font-size: 19px; font-weight: 800; }
.beneficio p { margin: 6px 0 0; color: rgba(255, 255, 255, .75); font-size: 15px; }

/* Opiniones */
.opiniones { padding: 104px 16px; }
.opiniones-lista { width: min(var(--ancho), 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.opiniones figure { margin: 0; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 30px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.opiniones figure::before { content: "★★★★★"; color: var(--naranja); letter-spacing: 3px; font-size: 16px; }
.opiniones blockquote { margin: 0; font-size: 17.5px; font-weight: 500; line-height: 1.55; flex: 1; }
.opiniones figcaption { display: flex; align-items: center; gap: 12px; }
.inicial { width: 44px; height: 44px; border-radius: 50%; background: var(--celeste-suave); color: var(--azul); display: grid; place-items: center; font-weight: 800; }
.opiniones figcaption b { display: block; font-size: 15px; }
.opiniones figcaption small { color: var(--gris); }

/* Preguntas */
.preguntas { padding: 0 16px 104px; }
.preguntas-lista { width: min(820px, 100%); margin: 0 auto; }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 700; font-size: 18px; position: relative; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--fondo-suave); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: transform .25s; }
.preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.preguntas details p { margin: 0 0 22px; color: var(--gris); font-size: 16.5px; max-width: 700px; }

/* Cierre */
.cierre {
  width: min(var(--ancho), calc(100% - 32px)); margin: 0 auto 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--azul) 0%, var(--azul-hondo) 100%); color: #fff;
  border-radius: 40px; padding: 56px;
}
.cierre h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; max-width: 620px; }
.cierre p { margin: 12px 0 0; color: rgba(255, 255, 255, .8); font-size: 18px; }

/* Pie */
.pie { border-top: 1px solid var(--linea); width: min(var(--ancho), calc(100% - 32px)); margin: 0 auto; padding: 56px 0 120px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.pie-marca img { height: 34px; width: auto; }
.pie-marca p { color: var(--gris); max-width: 420px; font-size: 15px; }
.pie-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pie-col h3 { font-size: 15px; margin-bottom: 4px; }
.pie-col a, .pie-col span { color: var(--gris); text-decoration: none; overflow-wrap: anywhere; }
.pie-col a:hover { color: var(--tinta); }
.pie-legal { grid-column: 1 / -1; color: var(--gris); font-size: 13.5px; margin: 0; }

/* Barra móvil */
.barra-movil { display: none; }

/* Pedido */
.capa { position: fixed; inset: 0; background: rgba(15, 28, 43, .45); z-index: 60; opacity: 0; transition: opacity .3s; }
.capa.visible { opacity: 1; }
.panel-pedido {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(460px, 100%);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s;
  border-radius: 28px 0 0 28px; box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4);
}
.panel-pedido.abierto { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.panel-cabecera { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--linea); }
.panel-cabecera h2 { font-size: 22px; font-weight: 800; }
.cerrar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fondo-suave); font-size: 24px; line-height: 1; }
.panel-cuerpo { overflow-y: auto; padding: 20px 24px 28px; flex: 1; overscroll-behavior: contain; }
.linea { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.linea img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.linea-info { flex: 1; min-width: 0; }
.linea-info b { display: block; font-size: 15px; }
.linea-info small { color: var(--gris); }
.linea .cantidad { padding: 2px; }
.linea .cantidad button { width: 32px; height: 32px; font-size: 17px; }
.linea .cantidad output { min-width: 26px; font-size: 15px; }
.vacio { color: var(--gris); text-align: center; padding: 18px 0; margin: 0; }
#formPedido h3 { font-size: 18px; margin: 22px 0 14px; }
#formPedido label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
#formPedido input, #formPedido select {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; font-weight: 500;
  border: 1px solid var(--linea); border-radius: 14px; padding: 13px 14px; background: #fff; color: var(--tinta);
}
#formPedido input:focus, #formPedido select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--celeste-suave); }
#formPedido .invalido { border-color: #d93025; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcional { color: var(--gris); font-weight: 500; }
.trampa { position: absolute !important; left: -9999px; }
.error { color: #c5221f; font-weight: 600; font-size: 14px; min-height: 0; margin: 4px 0 8px; }
.error:empty { display: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--linea); margin-top: 8px; }
.total b { font-size: 26px; letter-spacing: -.02em; }
.letra-chica { font-size: 13.5px; color: var(--gris); text-align: center; margin: 14px 0 0; }
.letra-chica a { color: var(--azul); font-weight: 600; }
.listo { text-align: center; padding-top: 48px; }
.listo-icono { width: 76px; height: 76px; border-radius: 50%; background: #e7f6ec; color: #1e8e3e; display: grid; place-items: center; margin: 0 auto 20px; }
.listo-icono svg { width: 38px; height: 38px; stroke-width: 2.4; }
.listo h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.listo p { color: var(--gris); font-size: 16px; }
.listo .boton { margin-top: 18px; }

/* Aparición al bajar */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visto { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav-enlaces { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 44px 0 64px; }
  .hero-media { width: min(520px, 100%); margin: 0 auto; }
  .producto, .producto-invertido { grid-template-columns: 1fr; gap: 28px; padding: 16px; border-radius: 32px; }
  .producto-invertido .producto-media { order: 0; }
  .producto-info, .producto-invertido .producto-info { padding: 0 8px 12px; }
  .pasos-lista, .opiniones-lista { grid-template-columns: 1fr; }
  .beneficios { grid-template-columns: 1fr 1fr; }
  .beneficio:nth-child(3) { border-left: 0; }
  .beneficio:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .pie { grid-template-columns: 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav { padding: 8px 8px 8px 16px; top: 8px; }
  .nav-logo img { height: 24px; }
  .nav-pedido { padding: 10px 14px; }
  .nav-pedido span { display: none; }
  .hero { width: calc(100% - 32px); padding-top: 32px; }
  .hero-botones .boton { flex: 1; }
  .hero-datos div { padding: 0 16px; }
  .hero-datos dd { font-size: 21px; }
  .hero-video { border-radius: 28px; transform: none; }
  .flotante { padding: 9px 14px 9px 9px; border-radius: 16px; }
  .flotante-icono { width: 36px; height: 36px; border-radius: 11px; }
  .flotante b { font-size: 13.5px; }
  .flotante small { font-size: 12px; }
  .flotante-a { left: -6px; top: -16px; }
  .flotante-b { right: -6px; bottom: -18px; }
  .productos { padding: 72px 12px; border-radius: 32px 32px 0 0; }
  .rasgos { grid-template-columns: 1fr; }
  .comprar { flex-direction: column; }
  .cantidad { align-self: flex-start; }
  .pasos, .opiniones { padding: 76px 16px; }
  .beneficios { grid-template-columns: 1fr; border-radius: 28px; }
  .beneficio { border-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, .12); padding: 26px 24px; }
  .beneficio:first-child { border-top: 0; }
  .cierre { padding: 36px 26px; border-radius: 30px; }
  .cierre .boton { width: 100%; }
  .pie { grid-template-columns: 1fr; padding-bottom: 130px; }
  .fila { grid-template-columns: 1fr; gap: 0; }
  .panel-pedido { border-radius: 0; }
  .barra-movil {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--linea); border-radius: 22px; padding: 10px 10px 10px 18px; box-shadow: 0 16px 40px -18px rgba(13, 61, 107, .45);
    transform: translateY(140%); transition: transform .35s ease;
  }
  .barra-movil.visible { transform: none; }
  .barra-movil small { display: block; color: var(--gris); font-size: 12.5px; }
  .barra-movil b { font-size: 16px; }
  .barra-movil .boton { padding: 13px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}
