/* ============================================================
   V6 HERO — prueba de formato (prompt Sentinel adaptado)
   Hero full-screen con Spline 3D de fondo, fuente Sora,
   contenido bottom-left, animaciones fade-up escalonadas.
   Solo afecta a .v6-nav y .v6-hero — el resto del sitio intacto.
   ============================================================ */

:root {
  --v6-background: hsl(0 0% 10%);
  --v6-foreground: hsl(0 0% 96%);
  /* primary = nuestra lima de marca (#84cc16) en lugar del verde del prompt */
  --v6-primary: hsl(85 78% 44%);
  --v6-primary-foreground: hsl(0 0% 4%);
  --v6-muted-foreground: hsl(0 0% 60%);
  --v6-nav-button: hsl(0 0% 18%);
  --v6-hero-bg: hsl(0 0% 8%);
}

@keyframes v6-fade-up {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes v6-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.v6-animate-fade-up {
  opacity: 0;
  animation: v6-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- NAV flotante transparente ---------- */
.v6-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  font-family: var(--u-font);
  background: transparent;
}
@media (min-width: 1024px) { .v6-nav { padding: 20px 64px; } }
.v6-nav-logo {
  color: var(--v6-foreground);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.v6-nav-links { display: none; }
@media (min-width: 768px) {
  .v6-nav-links { display: flex; gap: 32px; }
}
.v6-nav-links a {
  font-size: 0.8rem;
  color: var(--v6-muted-foreground);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.2s;
}
.v6-nav-links a:hover { color: var(--v6-foreground); }
.v6-nav-cta { display: none; }
@media (min-width: 768px) {
  .v6-nav-cta {
    display: inline-flex;
    align-items: center;
    color: var(--v6-primary-foreground);
    background: var(--v6-primary);
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    font-family: var(--u-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 13px 24px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
  }
  .v6-nav-cta:hover { background: #a3e635; }
  .v6-nav-cta:active { transform: scale(0.97); }
}

/* ---------- HERO full-screen ---------- */
.v6-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background: var(--v6-hero-bg);
  overflow: hidden;
  font-family: var(--u-font);
}
.v6-hero-spline {
  position: absolute;
  inset: 0;
}
.v6-hero-spline spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}
.v6-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}
.v6-hero-content {
  position: relative;
  z-index: 10;
  pointer-events: none;
  width: 100%;
  max-width: 90%;
  padding: 128px 24px calc(40px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 640px)  { .v6-hero-content { max-width: 28rem; } }
@media (min-width: 1024px) { .v6-hero-content { max-width: 42rem; padding: 128px 40px calc(40px + env(safe-area-inset-bottom, 0px)); } }

.v6-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--v6-foreground);
  text-transform: uppercase;
  margin: 0 0 8px;
}
@media (min-width: 768px) { .v6-hero h1 { margin-bottom: 16px; } }
.v6-hero h1 .v6-lime { color: var(--v6-primary); }

.v6-hero-sub {
  color: hsl(0 0% 96% / 0.8);
  font-size: clamp(1.125rem, 2.5vw, 1.875rem);
  font-weight: 400;
  margin: 0 0 12px;
}
@media (min-width: 768px) { .v6-hero-sub { margin-bottom: 24px; } }

.v6-hero-desc {
  color: var(--v6-muted-foreground);
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  font-weight: 400;
  margin: 0 0 16px;
}
@media (min-width: 768px) { .v6-hero-desc { margin-bottom: 32px; } }

.v6-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
}
.v6-hero-ctas a {
  pointer-events: auto;
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-family: var(--u-font);
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 768px) { .v6-hero-ctas a { padding: 16px 32px; } }
.v6-hero-ctas a:active { transform: scale(0.97); }
.v6-cta-primary {
  background: var(--v6-primary);
  color: var(--v6-primary-foreground);
}
.v6-cta-primary:hover { filter: brightness(1.1); }
.v6-cta-white {
  background: #fff;
  color: var(--v6-background);
}
.v6-cta-white:hover { filter: brightness(0.9); }

.v6-hero-trust {
  color: hsl(0 0% 60% / 0.6);
  font-size: 0.75rem;
  font-weight: 400;
  margin: 16px 0 0;
}
@media (min-width: 768px) { .v6-hero-trust { margin-top: 24px; } }


/* ---------- enlace Ver planes en tiles (hover lima, pulido2) ---------- */
.cc-ver-planes {
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: color 0.2s, border-color 0.2s;
}
a:hover .cc-ver-planes {
  color: var(--u-lime);
  border-color: var(--u-lime);
}


/* ---------- Pulido 4: hero en grid — cuadro alineado por borde inferior con los CTAs ---------- */
.v6-hero-grid {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: none;
  padding: 128px 4% 40px;
}
@media (min-width: 768px) {
  .v6-hero-grid {
    grid-template-columns: minmax(0, 46rem) auto;
    align-items: end;
    justify-content: space-between;
  }
}
/* Posición en la rejilla del hero v6; el visual lo aporta el componente
   reutilizable .hero-price-box (css/hero-price-box.css) — no duplicar aquí. */
#hero-precio { justify-self: end; }

/* móvil: el cuadro cae DEBAJO del título/funciones y ANTES de los botones */
@media (max-width: 767px) {
  .v6-hero-left { display: contents; }
  .vh-o1 { order: 1; } .vh-o2 { order: 2; } .vh-o3 { order: 3; }
  #hero-precio.vh-o4 { order: 4; justify-self: start; text-align: left; margin: 8px 0; }
  .vh-o5 { order: 5; }
}

/* ---------- Responsive batch: grids con divisor vertical → 1 columna en móvil ---------- */
@media (max-width: 640px) {
  .vs-split { grid-template-columns: 1fr !important; }
  .vs-split > div[aria-hidden="true"] { display: none; }
  .vs-split > div { padding: 16px 0 !important; }
}

.v6-nav-links a { font-weight: 700; }

/* Barrido Pit 12/06: CTAs textuales siempre en mayúsculas */
.v6-cta-primary, .v6-cta-white { text-transform: uppercase; }

/* ---------- FIX MÓVIL (Pit 13/06): el hero crece con su contenido y la página
   scrollea — el 100dvh + overflow:hidden cortaba la caja de precio y los CTAs
   bajo la barra del navegador en Android. ---------- */
@media (max-width: 640px) {
  .v6-hero {
    min-height: auto;
    align-items: stretch;
    overflow: visible;
  }
  .v6-hero-content {
    padding: 88px 24px 64px;
    max-width: 100%;
  }
}

/* ---------- FIX SCROLL MÓVIL (Pit 13/06): el spline 3D de fondo capturaba
   el gesto del dedo y bloqueaba el scroll. pointer-events:none lo cede a la página. ---------- */
.v6-hero-spline, .v6-hero-spline spline-viewer { pointer-events: none !important; }
