/* =========================================================
   BIELAB — Preventa (página oscura)
   Se carga SOLO en /preventa/ (ver bielab_assets_preventa en
   functions.php), así que nada de esto afecta al resto de la web.
   La página va en negro de arriba abajo: cabecera, secciones y
   pie se tiñen aquí, sin tocar bielab.css.
   ========================================================= */

body.pv-page {
  --pv-bg: #08090b;
  --pv-bg2: #101216;
  --pv-line: rgba(255, 255, 255, 0.13);
  --pv-text: #f3f4f6;
  --pv-muted: #9b9ea5;

  background: var(--pv-bg);
  color: var(--pv-text);
}

/* ---------- Tipografía heredada del tema, en claro ---------- */
body.pv-page .elementor-heading-title { color: var(--pv-text); }

body.pv-page .elementor-widget-text-editor,
body.pv-page .elementor-widget-text-editor p,
body.pv-page .lead,
body.pv-page .lead p { color: var(--pv-muted); }

body.pv-page .eyebrow { color: var(--pv-muted); }

/* Los enlaces del contenido heredan el color del texto. OJO: este
   selector le gana por especificidad a `.nav-panel a` de bielab.css, así
   que los enlaces del menú hay que volver a fijarlos más abajo; si no,
   salen casi blancos sobre el panel blanco y en la home el menú se abría
   en blanco sin poder leer nada. Acotarlo a `.site-main` no vale: sube la
   especificidad y se lleva por delante el color de los `.pv-btn`. */
body.pv-page a { color: inherit; }

/* ---------- Cabecera y pie en negro ---------- */
/* La cabecera sólo va transparente sobre el hero. En cuanto deja de
   estarlo —al bajar (.is-scrolled) o al abrir el menú— bielab.css la
   devuelve a blanco sólido, así que aquí se tiñe de negro en ambos casos.
   Sin la parte del menú, abrirlo arriba del todo dejaba una franja blanca
   sobre la página negra. */
body.pv-page .site-header.is-scrolled,
body.pv-page .site-header:has(#nav-toggle:checked) {
  background: rgba(8, 9, 11, 0.92);
  border-bottom-color: var(--pv-line);
}

body.pv-page .site-header.is-scrolled .brand,
body.pv-page .site-header.is-scrolled .menu-label,
body.pv-page .site-header.is-scrolled .nav-icon,
body.pv-page .site-header:has(#nav-toggle:checked) .brand,
body.pv-page .site-header:has(#nav-toggle:checked) .menu-label,
body.pv-page .site-header:has(#nav-toggle:checked) .nav-icon { color: #fff; }

body.pv-page .site-header.is-scrolled .hamburger span,
body.pv-page .site-header:has(#nav-toggle:checked) .hamburger span { background: #fff; }

body.pv-page .site-header.is-scrolled .brand img,
body.pv-page .site-header:has(#nav-toggle:checked) .brand img { filter: brightness(0) invert(1); }

/* Panel del menú, en negro como el resto de la página */
body.pv-page .nav-panel {
  background: var(--pv-bg);
  border-top-color: var(--pv-line);
}

body.pv-page .nav-panel a {
  color: var(--pv-text);
  border-bottom-color: var(--pv-line);
}

body.pv-page .nav-panel a::after { color: var(--pv-muted); }

body.pv-page .nav-panel a:hover { color: #fff; }

body.pv-page .nav-panel .nav-cta {
  color: var(--pv-bg);
  background: #fff;
}

body.pv-page .nav-panel .nav-cta:hover { background: var(--pv-muted); }

body.pv-page .site-footer {
  background: var(--pv-bg2);
  border-top-color: var(--pv-line);
}

body.pv-page .site-footer,
body.pv-page .site-footer a,
body.pv-page .site-footer p { color: var(--pv-muted); }

body.pv-page .site-footer h2,
body.pv-page .site-footer .footer-brand { color: #fff; }

/* El logo es oscuro: sobre el pie negro de la preventa hay que invertirlo. */
body.pv-page .site-footer .footer-logo img { filter: brightness(0) invert(1); }

body.pv-page .site-footer a:hover { color: #fff; }

/* ---------- Ritmo de secciones (más apretado que el resto) ---------- */
.pv-sec { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }

.pv-sec--alt { background: var(--pv-bg2); }

.pv-sec--tight { padding: 0; }

.pv-sec__head { max-width: 46rem; }

.pv-sec__head .eyebrow { margin-bottom: 0.75rem; }

/* Titular de sección dentro de los bloques HTML */
.pv-h2 {
  margin: 0.625rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}

/* ---------- Sección clara: las fotos de producto sobre blanco
   piden fondo claro, así que se usan como corte deliberado ---------- */
.pv-sec--luz { background: var(--surface); }

.pv-sec--luz .pv-h2,
.pv-sec--luz h3 { color: var(--ink); }

.pv-sec--luz .eyebrow { color: var(--muted); }

body.pv-page .pv-sec--luz .elementor-widget-text-editor,
body.pv-page .pv-sec--luz .elementor-widget-text-editor p { color: var(--muted); }

.pv-sec--luz .pv-spec th,
.pv-sec--luz .pv-spec td { border-bottom-color: var(--line); }

.pv-sec--luz .pv-spec th { color: var(--muted); }

.pv-sec--luz .pv-spec td { color: var(--ink); }

.pv-sec--luz .pv-inc li { color: var(--muted); }

.pv-sec--luz .pv-inc--no li::before { background: var(--line); }

/* la foto de producto va sobre blanco: se muestra entera, no recortada */
.pv-sec--luz .pv-split__media img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 0.375rem;
  padding: clamp(1rem, 2vw, 2rem);
}

@media (min-width: 900px) {
  .pv-sec--luz .pv-split__media { position: sticky; top: 6.5rem; }
}

/* ---------- Ventajas a dos columnas, sin foto ---------- */
.pv-ben {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .pv-ben {
    grid-template-columns: minmax(14rem, 1fr) 1.5fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }

  .pv-ben__head { position: sticky; top: 6.5rem; }
}

.pv-ben .pv-vent { margin-top: 0; }

/* ---------- Botones sobre negro ---------- */
.btn.pv-btn {
  background: #fff;
  color: #0a0b0d;
}

.btn.pv-btn:hover {
  background: #e6e7ea;
  transform: translateY(-1px);
}

.btn.pv-btn--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn.pv-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px #fff;
}

.pv-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Píldora de estado ---------- */
.pv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.pv-badge::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pv-latido 2.6s ease-out infinite;
}

@keyframes pv-latido {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 0, 32, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(196, 0, 32, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pv-badge::before { animation: none; }
}

/* ---------- Hero ---------- */
.pv-hero__nota {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Franja de datos ---------- */
.pv-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--pv-line);
  border-bottom: 1px solid var(--pv-line);
}

@media (min-width: 900px) {
  .pv-strip { grid-template-columns: repeat(3, 1fr); }
}

.pv-strip__i {
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid var(--pv-line);
}

.pv-strip__i:nth-child(2n) { border-right: 0; }
.pv-strip__i:last-child { border-right: 0; }

@media (min-width: 900px) {
  .pv-strip__i:nth-child(2n) { border-right: 1px solid var(--pv-line); }
  .pv-strip__i:last-child { border-right: 0; }
}

@media (max-width: 899px) {
  .pv-strip__i:nth-child(-n + 2) { border-bottom: 1px solid var(--pv-line); }
}

.pv-strip__lab {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-muted);
}

.pv-strip__val {
  display: block;
  margin-top: 0.625rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

/* dato aún sin confirmar: discreto, nunca chillón */
.pv-tbd {
  color: var(--pv-muted);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
}

/* ---------- Cuenta atrás ---------- */
/* Nace oculta: preventa.js solo la enciende cuando hay fecha en
   data-pv-fin. Sin fecha, la franja se queda como está. */
.pv-count[hidden] { display: none; }

.pv-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.625rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pv-count span[data-pv] { display: inline-block; }

.pv-count i {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pv-muted);
  margin-inline-end: 0.375rem;
}

/* ---------- Imagen a sangre con texto encima ---------- */
.pv-cine {
  position: relative;
  overflow: hidden;
}

.pv-cine img,
.pv-cine video {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

@media (max-width: 768px) {
  .pv-cine img,
  .pv-cine video { aspect-ratio: 4 / 3; }
}

.pv-cine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 45%, transparent 70%);
  pointer-events: none;
}

.pv-cine__txt {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  max-width: 46rem;
}

.pv-cine__txt h2 {
  margin: 0;
  font-size: clamp(1.375rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.pv-cine__txt p {
  margin: 0.625rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Pasos ---------- */
.pv-steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--pv-line);
  border: 1px solid var(--pv-line);
}

@media (min-width: 820px) {
  .pv-steps { grid-template-columns: repeat(3, 1fr); }
}

.pv-steps li {
  background: var(--pv-bg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.pv-sec--alt .pv-steps li { background: var(--pv-bg2); }

.pv-steps__n {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.pv-steps h3 {
  margin: 0.875rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.pv-steps p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--pv-muted);
}

/* ---------- Bloque partido: imagen + contenido ---------- */
.pv-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .pv-split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .pv-split--texto-izq .pv-split__media { order: 2; }
}

/* ficha técnica: las dos columnas arrancan arriba, no centradas */
.pv-split--top { align-items: start; }

.pv-split__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.375rem;
}

@media (max-width: 899px) {
  .pv-split__media img { aspect-ratio: 3 / 2; }
}

/* ---------- Lista de ventajas ---------- */
.pv-vent {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.pv-vent li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--pv-line);
}

.pv-vent li:last-child { border-bottom: 1px solid var(--pv-line); }

.pv-vent h3 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.pv-vent p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--pv-muted);
}

/* ---------- Ficha técnica ---------- */
.pv-spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.75rem;
}

.pv-spec th,
.pv-spec td {
  padding: 0.8125rem 0;
  border-bottom: 1px solid var(--pv-line);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.pv-spec th {
  width: 48%;
  font-weight: 400;
  color: var(--pv-muted);
}

.pv-spec td { color: #fff; }

.pv-inc {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pv-inc li {
  position: relative;
  padding-left: 1.375rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--pv-muted);
}

.pv-inc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--accent);
}

.pv-inc--no li::before { background: rgba(255, 255, 255, 0.25); }

/* ---------- Preguntas frecuentes en oscuro ---------- */
body.pv-page .faq-list {
  max-width: 52rem;
  border-top-color: var(--pv-line);
}

body.pv-page details.faq-item { border-bottom-color: var(--pv-line); }

body.pv-page details.faq-item summary { color: #fff; }

body.pv-page details.faq-item .faq-body { color: var(--pv-muted); }

body.pv-page details.faq-item .faq-body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* El mismo bloque, montado con el acordeón nativo de Elementor: la forma la
   pone .faq-acc (bielab.css) y aquí solo se pasa a oscuro. */
body.pv-page .elementor-widget.pv-faq .e-n-accordion {
  max-width: 52rem;
  border-top-color: var(--pv-line);
}

body.pv-page .pv-faq .e-n-accordion > details.e-n-accordion-item {
  border-bottom-color: var(--pv-line) !important;
}

body.pv-page .pv-faq .e-n-accordion-item-title-text { color: #fff; }

body.pv-page .pv-faq .e-n-accordion-item-title::after { color: var(--pv-muted); }

body.pv-page .pv-faq .e-n-accordion-item p { color: var(--pv-muted); }

body.pv-page .pv-faq .e-n-accordion-item a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- Cierre ---------- */
.pv-cierre {
  position: relative;
  min-height: clamp(24rem, 55vh, 34rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.pv-cierre--liso {
  background: linear-gradient(180deg, var(--pv-bg2) 0%, var(--pv-bg) 70%);
  border-top: 1px solid var(--pv-line);
}

.pv-cierre img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.pv-cierre__txt {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  max-width: 44rem;
}

.pv-cierre__txt h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.pv-cierre__txt p {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.pv-cierre .pv-ctas { justify-content: center; }

/* ---------- Barra fija de reserva ---------- */
.pv-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(8, 9, 11, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--pv-line);
}

.pv-bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
  max-width: 1880px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.pv-bar__info {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.pv-bar__p {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.pv-bar__v {
  font-size: 0.75rem;
  color: var(--pv-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-bar .btn { padding: 0.625rem 1.375rem; }

body.pv-page.has-pv-bar { padding-bottom: 3.75rem; }

@media (max-width: 560px) {
  .pv-bar__v { display: none; }
}
