:root{
  --bg:#0b0d14; --fg:#e8ecf1; --muted:#a8b3c7; --brand:#7c5cff; --brand2:#4fd1c5;
  --card:#141826; --border:#1f2434; --accent:#2a3046;
}
*{box-sizing:border-box}

body {
  margin: 0;
  padding: 0;
  background: url("/assets/hero.png") center/cover no-repeat fixed;
  color: var(--fg);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  line-height: 1.5;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  /* si tienes header fijo, reserva espacio para que no tape el título */
  scroll-padding-top: 80px; /* ajusta a la altura de tu header */
}

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a{
  text-decoration: none;
}

a, a:visited {
  text-decoration: none;
  color: inherit; /* o el color que quieras por defecto */
}


body::after {
  content:"";
  position: fixed;
  inset: 0;
  background: #0b0d14e3; /* ajusta opacidad para más/menos oscuridad */
  z-index: -1;
}

/* la aurora se mantiene encima de la imagen */
body::before {
  content:"";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background: radial-gradient(60% 40% at 20% 10%, rgba(124,92,255,.15) 0%, rgba(124,92,255,0) 60%),
              radial-gradient(50% 35% at 80% 20%, rgba(79,209,197,.12) 0%, rgba(79,209,197,0) 60%),
              radial-gradient(70% 45% at 50% 90%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 60%);
  filter: blur(30px) saturate(120%);
  z-index: -1;
  animation: aurora 16s ease-in-out infinite alternate;
}


.container{max-width:1100px;margin:auto;padding:24px}
.header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;gap:12px;align-items:center}
.logo{width:44px;height:44px}
h1{font-size:1.4rem;margin:0}
.tagline{margin:0;color:var(--muted)}
.nav a{color:var(--fg);text-decoration:none;margin-left:16px;opacity:.85}
.nav a:hover{opacity:1}
.hero{text-align:center;padding:56px 24px}
.hero h2{font-size:2rem;margin:.2rem 0 8px}
.btn-cta{display:inline-block;background:linear-gradient(90deg,var(--brand),var(--brand2));padding:12px 20px;border-radius:12px;color:#000;text-decoration:none;font-weight:700}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.card-media{background-size:cover;background-position:center;height:160px}
.card-body{padding:16px}
.card h3{margin-top:0}
.bullets{padding-left:18px;color:var(--muted)}
.btn{display:inline-block;background:var(--accent);border:1px solid var(--border);padding:10px 14px;border-radius:12px;color:var(--fg);text-decoration:none;font-weight:600}
.btn:hover{transform:translateY(-1px)}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:12px}
.feature{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px}
.faq details{background:var(--card);border:1px solid var(--border);border-radius:12px;margin:10px 0;padding:10px 14px}
.footer{border-top:1px solid var(--border);margin-top:24px;padding-top:16px;color:var(--muted)}


@media (max-width:640px){.nav{display:none}}

/* Cursor Mundo Saga (glow, con chispas visibles) */
:root {
  --cursor-mundosaga: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'>\
  <defs>\
    <linearGradient id='g' x1='0' y1='0' x2='1' y2='1'>\
      <stop stop-color='%237C5CFF'/>\
      <stop offset='1' stop-color='%234FD1C5'/>\
    </linearGradient>\
  </defs>\
  <path fill='%23fff' stroke='%23000' stroke-miterlimit='2' d='M3.55,3.55l21,10-9,3-3,9L3.55,3.55Z'/>\
  <circle fill='url(%23g)' cx='25.55' cy='18.55' r='1.5'/>\
  <circle fill='url(%23g)' cx='22.55' cy='23.55' r='1.1'/>\
  <circle fill='url(%23g)' cx='27.55' cy='21.55' r='.9'/>\
</svg>");
}

@media (pointer: fine) {
  html, body { cursor: var(--cursor-mundosaga) 3 3, auto; }
  a, button, .btn, .btn-cta { cursor: var(--cursor-mundosaga) 3 3, pointer; }
}




/* --- Aparición suave (scroll reveal) --- */
.reveal{
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in{
  opacity: 1;
  transform: none;
}

/* --- Títulos con brillo sutil --- */
.hero h2{
  position: relative;
  text-shadow: 0 0 12px rgba(124,92,255,.25);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%{ text-shadow: 0 0 8px rgba(124,92,255,.2); }
  50%{ text-shadow: 0 0 18px rgba(124,92,255,.35); }
  100%{ text-shadow: 0 0 8px rgba(124,92,255,.2); }
}

/* --- Cards con tilt ligero al hover --- */
.card{
  transform-style: preserve-3d;
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.card:hover{
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* --- Botones con “shimmer” mágico --- */
.btn, .btn-cta{
  position: relative;
  overflow: hidden;
}
.btn::after, .btn-cta::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn:hover::after, .btn-cta:hover::after{
  transform: translateX(100%);
}


/* --- Starfield y “aurora” mágica de fondo --- */
#starfield{
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
}

body::before{
  content:"";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background: radial-gradient(60% 40% at 20% 10%, rgba(124,92,255,.15) 0%, rgba(124,92,255,0) 60%),
              radial-gradient(50% 35% at 80% 20%, rgba(79,209,197,.12) 0%, rgba(79,209,197,0) 60%),
              radial-gradient(70% 45% at 50% 90%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 60%);
  filter: blur(30px) saturate(120%);
  z-index: -1;
  animation: aurora 16s ease-in-out infinite alternate;
}

@keyframes aurora{
  0%{transform: translate3d(0,0,0) scale(1);}
  100%{transform: translate3d(0,-2%,0) scale(1.03);}
}

.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  line-height: 56px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  color: white; /* mantiene blanco el icono */
}

.contacto {
  margin-top: 40px;
}

.contacto h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.contacto p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 1rem;
}

.contacto i {
  color: var(--brand2);
  font-size: 1.2rem;
  width: 22px; /* ancho fijo para alinear */
  text-align: center;
}


/* --- Scrollbar personalizado (Webkit) --- */
::-webkit-scrollbar {
  width: 10px;              /* ancho vertical */
  height: 10px;             /* alto horizontal */
}

::-webkit-scrollbar-track {
  background: var(--card);  /* fondo de la pista */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  border-radius: 10px;
  border: 2px solid var(--card); /* borde para dar efecto de espacio */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand2), var(--brand));
}

/* --- Scrollbar para Firefox --- */
* {
  scrollbar-width: thin; /* "auto" o "thin" */
  scrollbar-color: var(--brand) var(--card);
}


/* VIDEO */

.hero-video.hero-video--custom{
  position:relative; min-height:100vh; background:#000; overflow:hidden;
}
.hero-video__tag{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}

/* Botón play grande */
.hero-bigplay{
  position:absolute; inset:0; margin:auto; width:96px; height:96px;
  display:grid; place-items:center; border:none; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff; font-size:2rem; cursor:pointer; z-index:3;
  box-shadow:0 10px 30px rgba(0,0,0,.45);
}
.hero-bigplay.hidden{ display:none; }

/* Barra de controles */
/* Controles ocultos por defecto */
.hero-controls{
  position:absolute; left:0; right:0; bottom:0;
  display:flex; align-items:center; gap:.6rem;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 38%, rgba(0,0,0,.8) 100%);
  padding:.6rem .8rem; z-index:4; color:#fff;

  opacity:0; pointer-events:none; transform:translateY(8px);
  transition:opacity .25s ease, transform .25s ease;
}
.hero-controls.visible{
  opacity:1; pointer-events:auto; transform:translateY(0);
}

.ctrl{
  width:42px; height:42px; display:grid; place-items:center;
  border:1px solid var(--border, #1f2434); background:rgba(0,0,0,.35);
  border-radius:.6rem; color:#fff; cursor:pointer;
}
.ctrl:hover{ filter:brightness(1.1); }

.progress-wrap{
  flex:1; display:flex; align-items:center; gap:.6rem;
}
#progress{
  -webkit-appearance:none; appearance:none; width:100%;
  height:6px; background:rgba(255,255,255,.25); border-radius:999px; outline:none; cursor:pointer;
}
#progress::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:14px; height:14px; border-radius:50%;
  background:#7c5cff; border:2px solid #fff; margin-top:-4px;
}
.time{ font-size:.9rem; color:#e8ecf1; white-space:nowrap; min-width:120px; text-align:right; }


/* === HERO DOS COLUMNAS (video izq + info der) === */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: clamp(16px, 4vw, 32px) 24px;
}

.ph-left, .ph-right { width: 100%; }

.ph-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9; /* asegura proporción */
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Reutiliza tu video + controles actuales */
.ph-video .hero-video__tag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* Botón grande: usas tu .hero-bigplay existente */
.ph-video .hero-bigplay { /* opcional: suaviza en este contexto */
  width: 84px; height: 84px;
  background: rgba(0,0,0,.55);
}

/* Barra de controles: tu .hero-controls existente funcionará.
   Solo la ubicamos dentro del contenedor con padding sutil. */
.ph-video .hero-controls {
  left: 12px; right: 12px; bottom: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
}

/* Columna derecha (info/CTA) */
.ph-title {
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.15;
  margin: 0 0 8px;
  text-shadow: 0 0 12px rgba(124,92,255,.25); /* consistente con tu glow */
}

.ph-subtitle { color: var(--muted); margin: 0 0 16px; }

.ph-price {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
  font-size: clamp(16px, 2.2vw, 22px);
}

/* CTA y secundarios (reutiliza .btn y .btn-cta) */
.ph-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--accent); }

/* Bullets de confianza bajo CTA */
.ph-badges {
  list-style: none; padding: 0; margin: 8px 0 10px;
  display: grid; gap: 8px;
}
.ph-badges li { display: flex; align-items: center; gap: 8px; color: #c9d2e3; }
.ph-badges i { color: var(--brand2); }

.ph-mini { font-size: 12px; color: #8fa2c0; display: flex; gap: 10px; align-items: center; }

/* Responsive */
@media (max-width: 980px) {
  .product-hero { grid-template-columns: 1fr; }
  .ph-video { aspect-ratio: 16/9; }
}



@media (max-width: 640px){
  .time{ display:none; } /* compacto en móvil */
}





/* === Sticky Bar (compacta, legible, sin estorbar) === */
.sticky-bar{
  position: fixed; left: 0; right: 0; bottom: max(env(safe-area-inset-bottom), 16px);
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
  z-index: 1050;
}
.sticky-bar.visible{ transform: translateY(0); opacity: 1; pointer-events: auto; }

.sticky-bar__inner{
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--card) 88%, black);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

/* Izquierda: thumb + meta */
.sticky-bar__left{ display: flex; align-items: center; gap: 10px; min-width: 0; }
.sticky-bar__thumb{ width: 40px; height: 40px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.sticky-bar__meta{ display: grid; line-height: 1.2; min-width: 0; }
.sticky-bar__title{
  font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticky-bar__price{
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: .95rem;
}

/* Derecha: CTAs */
.sticky-bar__right{ display: inline-flex; gap: 8px; }
.sticky-bar__buy{ padding: 10px 14px; }
.sticky-bar__whapp{ padding: 10px 12px; }

/* Evita pelear con el botón flotante de WhatsApp */
.whatsapp-float{ bottom: 84px; }

/* Responsive */
@media (max-width: 520px){
  .sticky-bar__title{ font-size: .9rem; }
  .sticky-bar__price{ font-size: .9rem; }
  .sticky-bar__whapp{ display:none; } /* deja solo el CTA principal en pantallas chicas */
}









.gallery__head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.gallery__hint{color:var(--muted);margin:0}
.gallery__rail{
  display:flex; gap:10px; overflow-x:auto; padding:6px; scroll-snap-type:x mandatory;
}
.gitem{flex:0 0 auto; width:240px; aspect-ratio:3/4; border-radius:14px; overflow:hidden;
  border:1px solid var(--border); scroll-snap-align:start; position:relative;}
.gitem img{width:100%;height:100%;object-fit:cover; display:block; transition:transform .25s ease}
.gitem:hover img{transform:scale(1.04)}

.lightbox{position:fixed; inset:0; background:rgba(0,0,0,.85); display:none; align-items:center; justify-content:center; z-index:9999}
.lightbox.open{display:flex}
.lightbox__img{max-width:90vw; max-height:86vh; border-radius:12px; box-shadow:0 10px 40px rgba(0,0,0,.5)}
.lightbox__close{
  position:fixed; top:20px; right:20px; width:44px; height:44px; border:none; border-radius:10px;
  background:rgba(255,255,255,.08); color:#fff; cursor:pointer; backdrop-filter:blur(6px); 
  border:1px solid rgba(255,255,255,.15);
}
.lightbox__close:hover{background:rgba(255,255,255,.15)}



.includes__gridchips{
  display:grid; gap:10px; 
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width:720px){ .includes__gridchips{ grid-template-columns: 1fr; } }

.ichip{
  display:flex; gap:10px; align-items:flex-start;
  background: color-mix(in srgb, var(--card) 86%, black);
  border:1px solid var(--border);
  border-radius:14px; padding:12px 12px;
}
.ichip__icon{
  width:40px;height:40px; border-radius:12px; display:grid; place-items:center;
  background: radial-gradient(100% 100% at 0% 0%, rgba(124,92,255,.18) 0, rgba(79,209,197,.18) 100%);
  border:1px solid rgba(255,255,255,.08);
  color: var(--fg);
}
.ichip__text{display:flex; flex-direction:column; gap:4px}
.ichip__text strong{font-weight:700}
.ichip__text span{color:var(--muted)}




.includes__content{ display:grid; grid-template-columns: 1.4fr .8fr; gap:18px; align-items:start; }
@media (max-width:980px){ .includes__content{ grid-template-columns: 1fr; } }

.pack{ border:1px solid var(--border); background:var(--card); border-radius:16px; overflow:hidden }
.pack--solid{ background: color-mix(in srgb, var(--card) 92%, black); }
.pack__cover img{ width:100%; display:block; aspect-ratio: 16/10; object-fit:cover; }
.pack__body{ padding:14px; }

.checkrows{ display:grid; gap:10px; margin:12px 0 10px; }
.checkrow{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px;
  border:1px dashed rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(124,92,255,.12), rgba(79,209,197,.06));
}
.checkrow i{ color:var(--brand2) }

.pack__price{ margin:10px 0 12px }
.pack__price__value{
  font-weight:800; font-size:1.05rem;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.pack__ctas{ display:flex; gap:10px; flex-wrap:wrap }

.pack__securebar{
  margin-top:12px; font-size:.9rem; color:#9fb0c9;
  display:flex; gap:10px; align-items:center;
  padding:10px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.25);
}




















/* Contenedor general */
.media-gallery { display: grid; gap: 10px; }

/* Visor (ya usas .ph-video) */
.mg-viewer { position: relative; }

/* Imagen alternativa dentro del visor */
.mg-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Thumbs */
.mg-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(84px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 2px;
  scroll-snap-type: x mandatory;
}

.mg-thumb {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
}

.mg-thumb__wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/10; /* o 4/3 si te gusta más alto */
}

.mg-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .2s ease, filter .2s ease;
}

.mg-thumb:hover img { transform: scale(1.03); }

.mg-thumb__badge {
  position: absolute; inset: 6px auto auto 6px;
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.25);
}

.mg-thumb.is-active { outline: 2px solid color-mix(in srgb, var(--brand) 60%, white); }


/* ===== AUDIO SAMPLE (compacto, pro) ===== */
/* .audio-sample{ margin: 28px 0 12px; } */

.audio-card{
  --ring: linear-gradient(135deg, var(--brand), var(--brand2));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, #000);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.audio-play{
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0b1020; font-size: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s ease, filter .15s ease;
}
.audio-play:hover{ transform: translateY(-1px); filter: brightness(1.05); }

.audio-title{
  margin: 0; font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  text-shadow: 0 0 10px rgba(124,92,255,.18);
}
.audio-subtitle{ margin: 4px 0 8px; color: var(--muted); }

.audio-progress{ display: flex; align-items: center; gap: 12px; }
#audioSeek{
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
#audioSeek::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  margin-top: -4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
#audioSeek::-moz-range-track{
  height: 8px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
}
#audioSeek::-moz-range-thumb{
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.audio-time{
  font-variant-numeric: tabular-nums;
  color: #c9d2e3; opacity: .95; white-space: nowrap;
}

@media (max-width: 720px){
  .audio-card{ grid-template-columns: 52px 1fr; gap: 12px; padding: 12px; }
  .audio-play{ width: 52px; height: 52px; }
  .audio-time{ display: none; }
}
