/* =========================================================
   BIELAB — Sistema de diseño
   Lenguaje visual tipo Porsche: página clara, material visual
   oscuro, botones negros rectangulares y UN micro-acento rojo.
   ========================================================= */

:root {
  --ink: #0e0f11;
  --muted: #6b6d70;
  --surface: #f2f2f4;
  --line: #d8d8dc;
  --accent: #c40020;
  /* Tipografías de marca (webfonts locales en fonts.css):
     Sui Generis para titulares/botones, Acumin para texto. */
  --font-display: "Sui Generis", "Arial Narrow", Arial, sans-serif;
  --font-sans: "Acumin Variable Concept", "Helvetica Neue", Arial,
    sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

ul[class], ol[class] {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--ink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Utilidades ---------- */
/* Ancho completo tipo Porsche: contenido a todo el viewport con
   márgenes laterales fluidos (~4vw) y tope 1880px en ultrapanorámicas. */
.container {
  width: 100%;
  max-width: 1880px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 4.25rem);
}

.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.small { font-size: 0.8125rem; }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 3.5rem;
  left: 1rem;
  z-index: 60;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.5rem 1rem;
  background: #fff;
  font-size: 0.875rem;
}

/* ---------- Tipografía de secciones ---------- */
.h-hero {
  font-size: clamp(2.125rem, 4.2vw, 3.25rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.h-section {
  font-size: clamp(1.625rem, 2.6vw, 2.375rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.h-sub {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* medida de lectura: ningún párrafo de Elementor corre a todo el ancho */
.elementor-widget-text-editor p {
  max-width: 46rem;
}

/* En widgets Elementor la clase va en el WRAPPER; el h1/h2 interno
   aplicaría su tamaño por defecto del navegador (2em/1.5em) sobre el
   heredado. Con inherit manda el tamaño de la clase del tema. */
.h-hero .elementor-heading-title,
.h-section .elementor-heading-title,
.h-sub .elementor-heading-title {
  font-size: inherit;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  /* medida de lectura cómoda: el texto no se estira hasta dejar
     huecos raros en pantallas anchas */
  max-width: 46rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: #2c2d30; }

.btn-secondary {
  background: #e4e4e7;
  color: var(--ink);
}

.btn-secondary:hover { background: var(--line); }

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
}

/* ---------- Cabecera fija ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  /* blanco sólido, estilo Porsche; sin backdrop-filter — crearía un
     containing block que rompería el panel fijo del menú */
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* En la portada: transparente sobre el vídeo del hero, con textos e
   iconos en blanco. Al bajar (JS añade .is-scrolled) o al abrir el
   menú, vuelve al blanco sólido. */
body.has-hero .site-header:not(.is-scrolled):not(:has(#nav-toggle:checked)) {
  background: transparent;
  border-bottom-color: transparent;
}

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

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

/* el logo (PNG negro) pasa a blanco sobre el héroe */
body.has-hero .site-header:not(.is-scrolled):not(:has(#nav-toggle:checked)) .brand img {
  filter: brightness(0) invert(1);
}

/* el hero pasa por debajo del header transparente */
body.has-hero .site-main {
  padding-top: 0;
}

.admin-bar .site-header { top: 32px; }

/* Barra estilo Porsche: menú izquierda · logo centro · iconos derecha */
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding-inline: 1.25rem;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.brand img {
  display: block;
  height: 1.875rem;
  width: auto;
  transition: opacity 0.25s ease, filter 0.3s ease;
}

.brand:hover img {
  opacity: 0.7;
}

@media (max-width: 639px) {
  .brand img { height: 1.625rem; }
}

/* --- izquierda: hamburguesa + "Menú" --- */
.nav-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 3.5rem;
  padding-right: 0.5rem;
  cursor: pointer;
}

#nav-toggle {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
}

#nav-toggle:focus-visible ~ .hamburger {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.site-header:has(#nav-toggle:checked) .hamburger span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.site-header:has(#nav-toggle:checked) .hamburger span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.menu-label {
  font-size: 0.8125rem;
  color: var(--ink);
}

/* --- derecha: idioma · cuenta · carrito --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink);
  font-size: 0.75rem;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.nav-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 480px) {
  .menu-label { display: none; }
  .nav-icon span { display: none; }
  .nav-right { gap: 1rem; }
}

/* --- panel desplegable desde la izquierda, estilo Porsche --- */
body:has(#nav-toggle:checked) { overflow: hidden; }

/* fondo oscurecido tras el panel; clic para cerrar */
.nav-backdrop {
  position: fixed;
  top: 3.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  cursor: pointer;
}

.admin-bar .nav-backdrop { top: calc(3.5rem + 32px); }

.site-header:has(#nav-toggle:checked) .nav-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.nav-panel {
  position: fixed;
  top: 3.5rem;
  left: 0;
  bottom: 0;
  width: min(26rem, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 3.5rem 3rem;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
  overflow-y: auto;
}

.admin-bar .nav-panel { top: calc(3.5rem + 32px); }

.site-header:has(#nav-toggle:checked) .nav-panel {
  transform: none;
  visibility: visible;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-panel a {
  position: relative;
  padding: 0.875rem 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid rgba(216, 216, 220, 0.55);
  /* entran en cascada al abrir el menú */
  opacity: 0;
  transform: translateX(-14px);
  transition: padding-left 0.25s ease, color 0.2s ease,
    opacity 0.4s ease, transform 0.4s ease;
}

.site-header:has(#nav-toggle:checked) .nav-panel a {
  opacity: 1;
  transform: none;
}

.site-header:has(#nav-toggle:checked) .nav-panel a:nth-child(2) { transition-delay: 0.05s; }
.site-header:has(#nav-toggle:checked) .nav-panel a:nth-child(3) { transition-delay: 0.1s; }
.site-header:has(#nav-toggle:checked) .nav-panel a:nth-child(4) { transition-delay: 0.15s; }
.site-header:has(#nav-toggle:checked) .nav-panel a:nth-child(5) { transition-delay: 0.2s; }
.site-header:has(#nav-toggle:checked) .nav-panel a:nth-child(6) { transition-delay: 0.25s; }
.site-header:has(#nav-toggle:checked) .nav-panel a:nth-child(7) { transition-delay: 0.3s; }

.nav-panel a::after {
  content: "›";
  position: absolute;
  right: 0.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: right 0.25s ease;
}

.nav-panel a:hover {
  padding-left: 0.625rem;
}

.nav-panel a:hover::after { right: 0; }

.nav-panel .nav-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 2rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #fff;
  background: var(--ink);
  border-radius: 0.25rem;
  border-bottom: none;
  transition: background-color 0.2s ease;
}

.nav-panel .nav-cta::after { content: none; }

.nav-panel .nav-cta:hover {
  background: #2c2d30;
  padding-left: 1.75rem;
}

.site-main { padding-top: 3.5rem; }

/* ---------- Subnav sticky (home) ---------- */
.subnav {
  position: sticky;
  top: 3.5rem;
  z-index: 40;
  border-top: 1px solid rgba(216, 216, 220, 0.7);
  border-bottom: 1px solid rgba(216, 216, 220, 0.7);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.admin-bar .subnav { top: calc(3.5rem + 32px); }

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.75rem;
  max-width: 1880px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.subnav-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.subnav-links a {
  display: none;
  font-size: 0.75rem;
  color: var(--muted);
}

.subnav-links a:hover { color: var(--ink); }

@media (min-width: 640px) {
  .subnav-links a { display: block; }
  .subnav-links .btn { display: none; }
}

/* ---------- Secciones ---------- */
.section {
  padding: 6rem 1rem;
}

@media (max-width: 640px) {
  .section { padding: 4rem 1.25rem; }
}

.section--surface { background: var(--surface); }
.section--white { background: #fff; }

/* las anclas no deben quedar escondidas bajo el header fijo */
[id] { scroll-margin-top: 4.5rem; }

/* helpers para las páginas montadas en Elementor. OJO: el wrap de columna
   de Elementor es flex con flex-wrap, así que un widget con max-width
   compartiría fila con el siguiente — el ancho de lectura se limita
   siempre en los HIJOS del widget, nunca en el propio widget. */
.el-center { text-align: center; }
.el-center p { margin-inline: auto; }

.elementor-widget.w-narrow > * { max-width: 44rem; }

.elementor-widget.lead,
.elementor-widget.prose {
  max-width: none;
}

.elementor-widget.prose > * { max-width: 44rem; }

/* los bloques que antes eran widgets HTML conservan su maquetado exacto:
   sin la medida de lectura que se aplica al texto editorial normal */
.elementor-widget-text-editor.was-html p { max-width: none; }

.sec-head { max-width: 42rem; }
.sec-head .lead { margin-top: 1rem; }

/* variante centrada, estilo Apple (página de producto) */
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .lead { margin-inline: auto; }

/* lista de puntos clave a dos columnas, centrada */
.list--cols {
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}

@media (min-width: 640px) {
  .list--cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 3rem;
  }
}

/* cabecera de producto centrada, estilo Apple */
.p-hero {
  text-align: center;
  padding: 4.5rem 1rem 0;
}

.p-hero .price-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem 1.25rem;
}

.p-hero .hero-ctas {
  justify-content: center;
}

.variant-grid--center {
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}

@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
  .section { padding: 8rem 1.5rem; }
  .site-nav, .subnav-inner { padding-inline: 1.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 3.5rem 1rem 5rem;
}

.ghost {
  font-size: clamp(2.5rem, 13vw, 11rem);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-align: center;
  color: #ececee;
  white-space: nowrap;
  user-select: none;
}

.hero-media {
  position: relative;
  max-width: 48rem;
  margin: -9vw auto 0;
}

@media (min-width: 1024px) {
  .hero-media { margin-top: -6rem; }
}

.hero-copy {
  position: relative;
  max-width: 42rem;
  margin: 3rem auto 0;
  text-align: center;
}

.hero-copy .lead { margin-top: 1rem; }

.hero-sub {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 20rem;
  margin: 2rem auto 0;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: none;
  }
}

/* ---------- Placeholder de medios ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #e5e5e5;
  border: 1px solid #d5d5d5;
}

.ph span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #8a8a8a;
  text-align: center;
  padding: 0 1.5rem;
}

.ph--dark {
  background: #191b1e;
  border-color: #2c2e33;
}

.ph--dark span { color: #9a9da2; }

/* ---------- Banner de medios con texto ---------- */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

/* vídeo o imagen dentro de un banner: cubre todo el bloque */
.media-video,
.media-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #191b1e;
}

/* vida: zoom suave del medio al pasar el ratón por el banner */
.banner .media-video,
.banner .media-img,
.banner .ph {
  transition: transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}

.banner:hover .media-video,
.banner:hover .media-img,
.banner:hover .ph {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  .banner:hover .media-video,
  .banner:hover .media-img,
  .banner:hover .ph {
    transform: none;
  }
}

/* degradado inferior para que el texto sobre la imagen siempre se lea */
.banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 55%);
  pointer-events: none;
}

.banner-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}

.banner:hover .banner-caption { transform: translateY(-6px); }

@media (min-width: 640px) {
  .banner-caption {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2.5rem;
  }
}


.banner-caption p {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

@media (min-width: 640px) {
  .banner-caption p { font-size: 2.25rem; }
}

/* Móvil: los banners panorámicos 21/9 quedarían en una tira de ~150px
   donde el caption no cabe — la foto pasa a formato vertical 4/5
   (!important: el aspect-ratio viene inline en el HTML del widget) */
@media (max-width: 639px) {
  .banner > .media-img[style*="21/9"],
  .banner > .media-video[style*="21/9"] {
    aspect-ratio: 4 / 5 !important;
  }

  .banner-caption {
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .banner-caption p {
    font-size: 1.25rem;
  }
}

/* ---------- Rejillas ---------- */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- Tarjetas: estilo Porsche, línea fina arriba, sin caja ---------- */
.card {
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.25rem 0 0;
}

.section--white .card {
  background: transparent;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* tarjeta oscura con media */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.tile-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.tile-overlay h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.tile-overlay p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Pasos numerados ---------- */
.steps {
  display: grid;
  gap: 2.5rem 2rem;
  counter-reset: paso;
}

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

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

.steps .num {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.steps h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

/* ---------- Comparativa ---------- */
.cmp-cards {
  margin-top: 3rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.cmp-cards > div {
  padding-block: 1rem;
  border-top: 1px solid rgba(216, 216, 220, 0.6);
}

.cmp-cards > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.cmp-cards .concepto {
  font-size: 0.875rem;
  color: var(--muted);
}

.cmp-cards dl {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.375rem;
  font-size: 0.9375rem;
}

.cmp-cards dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.cmp-cards dt { flex-shrink: 0; color: var(--muted); }
.cmp-cards dt.marca { color: var(--accent); font-weight: 600; }
.cmp-cards dd { text-align: right; }
.cmp-cards dd.marca { font-weight: 500; }

.cmp-table-wrap {
  display: none;
  margin-top: 3rem;
  overflow-x: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .cmp-cards { display: none; }
  .cmp-table-wrap { display: block; }
}

.cmp-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.cmp-table thead tr { border-bottom: 1px solid var(--line); }

.cmp-table th, .cmp-table td {
  padding: 1rem 1rem 1rem 0;
}

.cmp-table thead th { font-weight: 600; letter-spacing: -0.01em; }
.cmp-table thead .col-fija { color: var(--muted); }
.cmp-table thead .col-bielab { color: var(--accent); }

.cmp-table tbody tr {
  border-bottom: 1px solid rgba(216, 216, 220, 0.6);
  transition: background-color 0.2s ease;
}

.cmp-table tbody tr:hover { background: rgba(14, 15, 17, 0.03); }
.cmp-table tbody tr:last-child { border-bottom: 0; }
.cmp-table tbody th { font-weight: 400; color: var(--muted); }
.cmp-table tbody td.marca { font-weight: 500; }

/* ---------- Avisos ---------- */
.note {
  margin-top: 2.5rem;
  border-left: 2px solid var(--line);
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44rem;
}

.note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 3rem; }

.faq-group h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

details.faq-item {
  border-bottom: 1px solid var(--line);
}

details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.125rem 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary {
  transition: padding-left 0.25s ease;
}

details.faq-item summary:hover {
  padding-left: 0.5rem;
}

details.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.faq-item .faq-body {
  padding: 0 2.5rem 1.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

/* --- FAQ con acordeones NATIVOS de Elementor (nested-accordion):
       mismo lenguaje visual que details.faq-item --- */
.elementor-widget.faq-acc .e-n-accordion {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.elementor-widget.faq-acc + .elementor-widget-heading.faq-group {
  margin-top: 3rem;
}

/* los estilos por defecto del widget (caja, icono, espaciados) cargan con
   más especificidad — se anulan con !important para dejar solo el hairline */
.faq-acc .e-n-accordion > details.e-n-accordion-item {
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}

.faq-acc .e-n-accordion > details.e-n-accordion-item > summary.e-n-accordion-item-title {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  padding: 1.125rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  cursor: pointer;
  list-style: none;
  transition: padding-left 0.25s ease;
}

.faq-acc .e-n-accordion-item-title::-webkit-details-marker { display: none; }

.faq-acc .e-n-accordion-item-title:hover { padding-left: 0.5rem; }

.faq-acc .e-n-accordion-item-title::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-acc details[open] > .e-n-accordion-item-title::after {
  transform: rotate(45deg);
}

.faq-acc .e-n-accordion-item-title-text {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq-acc .e-n-accordion-item p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: none;
}

/* el contenedor de la respuesta trae caja gris de serie: aquí sobra */
.faq-acc .e-n-accordion-item > .e-con {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* ---------- Formularios ---------- */
.form {
  max-width: 44rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span-2 { grid-column: span 2; }
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.field .req { color: var(--accent); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: #fff;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
}

.field textarea { min-height: 8rem; resize: vertical; }

/* flecha propia en los selectores: igual en todos los navegadores */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230e0f11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  border-color: transparent;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.check input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.form-ok {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  background: #eef7ee;
  border: 1px solid #cfe6cf;
  color: #1e5b1e;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

.form-error {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  background: #fbeeee;
  border: 1px solid #efd0d0;
  color: #8a1f1f;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: #8a1f1f;
  margin-top: 0.375rem;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #c94f4f;
}

.field.is-invalid .check span { color: #8a1f1f; }

.file-selected {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.375rem;
}

/* Datos de bicicleta: solo se muestran cuando el motivo lo pide */
.bike-fields__title {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.875rem;
}

.bike-fields__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .bike-fields__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Ficha técnica / tablas de datos ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 0.875rem 1rem 0.875rem 0;
  border-bottom: 1px solid rgba(216, 216, 220, 0.6);
  vertical-align: top;
}

.spec-table th {
  font-weight: 500;
  color: var(--muted);
  width: 40%;
}

/* ---------- Listas con marca ---------- */
.list {
  display: grid;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.list li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.375rem;
  height: 1.5px;
  background: var(--ink);
}

/* ---------- Página de producto ---------- */
.product-head {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .product-head {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

/* OJO: se llama .price-xl y NO .price a propósito — WooCommerce Blocks
   usa la clase .price en carrito/checkout y un nombre genérico
   reventaba sus precios (bug ya sufrido). */
.price-xl {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-xl small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.375rem;
}

.price-notes {
  margin-top: 0.875rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.variant-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .variant-grid { grid-template-columns: repeat(2, 1fr); }
}

/* bloques de configuración estilo Apple: la opción incluida se muestra
   como tarjeta seleccionada, no como desplegable */
.opt__label {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.opt-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.875rem;
  background: #fff;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.opt-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a3b3f, #0e0f11);
  flex-shrink: 0;
}

.buy-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.buy-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
  max-width: 1880px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.buy-bar .info {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.buy-bar .info .p {
  font-size: 1rem;
  font-weight: 600;
}

.buy-bar .info .v {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.has-buy-bar { padding-bottom: 3.5rem; }

@media (max-width: 480px) {
  /* en pantallas pequeñas la barra muestra solo precio + botón */
  .buy-bar .info .v { display: none; }
}

/* ---------- Página legal / contenido prose ---------- */
.prose {
  max-width: 44rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.prose p { margin-top: 0.875rem; color: var(--muted); }

.prose ul, .prose ol {
  margin-top: 0.875rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li { margin-top: 0.375rem; }

.prose strong { color: var(--ink); }

.legal-updated {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(216, 216, 220, 0.7);
  background: var(--surface);
}

.footer-inner {
  max-width: 1880px;
  margin-inline: auto;
  padding: 3.5rem 1rem;
}

@media (min-width: 640px) {
  .footer-inner { padding-inline: 1.5rem; }
}

.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
}

.footer-brand .eyebrow { color: var(--ink); }

.footer-logo {
  display: block;
}

.footer-logo img {
  display: block;
  height: 1.5rem;
  width: auto;
  transition: opacity 0.25s ease;
}

.footer-logo:hover img { opacity: 0.7; }

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 16rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-col h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-col ul {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  list-style: none;
  padding: 0;
}

.footer-col a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 0.2s ease, background-size 0.3s ease;
}

.footer-col a:hover {
  color: var(--ink);
  background-size: 100% 1px;
}

.newsletter {
  margin-top: 3rem;
  border-top: 1px solid rgba(216, 216, 220, 0.6);
  padding-top: 2.5rem;
  max-width: 34rem;
}

.newsletter h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.newsletter p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.newsletter-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: #fff;
  padding: 0.55rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.newsletter .check { margin-top: 0.75rem; font-size: 0.75rem; }

.footer-legal {
  margin-top: 3rem;
  border-top: 1px solid rgba(216, 216, 220, 0.6);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-legal p + p { margin-top: 0.25rem; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 30rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .cookie-banner { inset-inline: auto 1.5rem; bottom: 1.5rem; }
}

.cookie-banner h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cookie-banner > p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-actions {
  margin-top: 1.125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-config-link {
  background: none;
  border: 0;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-prefs { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }

.cookie-prefs .check + .check { margin-top: 0.625rem; }

.cookie-banner[hidden], .cookie-prefs[hidden] { display: none; }

/* ---------- Animación de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger > .reveal:nth-child(2) { transition-delay: 120ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(n + 4) { transition-delay: 360ms; }

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-panel { transition: none; }
}

/* ---------- Ayudas para Elementor ---------- */
/* las secciones boxed de Elementor respiran al mismo ancho (1280px)
   que el resto del tema — nada de anchos descoordinados */
/* !important: el CSS inline del kit de Elementor (1140px) carga después
   del tema y ganaría por orden; con !important manda esta regla */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1880px !important;
}

/* Ancho completo: todas las secciones Elementor usan los mismos márgenes
   laterales fluidos que .container (las full-bleed quedan a sangre). */
.elementor-section.elementor-section-boxed:not(.full-bleed) {
  padding-inline: clamp(1rem, 4vw, 4.25rem) !important;
}

/* los botones de Elementor se comportan como los del tema:
   misma fuente, mismo hover con elevación */
.elementor-widget-button .elementor-button {
  font-family: var(--font-display);
  transition: background-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.elementor-widget-button .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .elementor-widget-button .elementor-button:hover { transform: none; box-shadow: none; }
}

/* centra los widgets inline (botones del hero) dentro de la columna */
.hero-center .elementor-widget-wrap {
  justify-content: center;
}

/* Hero Porsche: ocupa EXACTAMENTE el alto visible (descontando la
   cabecera fija), contenido a ancho completo pegado al borde
   izquierdo y anclado abajo. El alto lo controla SOLO este CSS —
   en Elementor la sección va con altura por defecto. */
.hero-full {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* el header es transparente encima del hero: alto completo.
     svh evita que la barra de URL del móvil corte el contenido. */
  min-height: 100vh !important;
  min-height: 100svh !important;
}

/* indicador de scroll del hero: línea con pulso descendente */
.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  pointer-events: none;
}

.scroll-hint span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: #fff;
  animation: bielab-scrollhint 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes bielab-scrollhint {
  0% { top: -40%; }
  65%, 100% { top: 110%; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint { display: none; }
}

/* items hairline de la home: la línea se enciende al pasar el ratón */
.hl-hover {
  transition: border-color 0.3s ease, transform 0.35s ease;
}

.hl-hover:hover {
  border-top-color: var(--ink) !important;
  transform: translateY(-4px);
}

/* iconos de línea de los items — al hover, micro-acento rojo BIELAB */
.hl-icon {
  width: 27px;
  height: 27px;
  margin-bottom: 0.5rem;
  color: var(--ink);
  transition: color 0.3s ease, transform 0.35s ease;
}

.hl-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hl-hover:hover .hl-icon {
  color: var(--accent);
  transform: translateY(-2px);
}

/* iconos pequeños en listas de confianza (producto) */
.p-trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.p-trust svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink);
}

/* cabecera de tarjeta con icono */
.card h3.card-icon-h {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card h3.card-icon-h svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hl-hover:hover { transform: none; }
}

.admin-bar .hero-full {
  min-height: calc(100vh - 32px) !important;
}

.hero-full > .elementor-container {
  max-width: 100% !important;
  width: 100%;
  min-height: 0 !important;
}

/* ---------- Acordeón de Elementor con el lenguaje hairline ---------- */
.elementor-accordion .elementor-accordion-item {
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent;
}

.elementor-accordion .elementor-accordion-item:first-child {
  border-top: 1px solid var(--line) !important;
}

.elementor-accordion .elementor-tab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0.25rem !important;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: padding-left 0.25s ease;
}

.elementor-accordion .elementor-tab-title:hover {
  padding-left: 0.875rem !important;
}

.elementor-accordion .elementor-tab-title a {
  color: inherit;
  flex: 1;
}

.elementor-accordion .elementor-accordion-icon {
  order: 2;
  width: auto !important;
  color: var(--muted) !important;
  transition: transform 0.3s ease, color 0.2s ease;
}

.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon {
  color: var(--ink) !important;
}

.elementor-accordion .elementor-tab-content {
  border: 0 !important;
  padding: 0 3rem 1.5rem 0.25rem !important;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted) !important;
}

/* ---------- Palabra fantasma gigante (Porsche "911") ---------- */
.ghost {
  font-size: clamp(3rem, 13vw, 11rem);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-align: center;
  color: #ececee;
  white-space: nowrap;
  user-select: none;
  margin: 0;
}

/* CTA final con la palabra fantasma detrás */
.cta-final {
  position: relative;
  text-align: center;
}

.cta-final .ghost {
  pointer-events: none;
}

.cta-final__content {
  position: relative;
  margin-top: -3.5vw;
}

.cta-final__content .lead {
  margin-inline: auto;
  margin-top: 1rem;
}

.cta-final__botones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* Sección "statement": una frase gigante, estilo Apple */
.statement h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 62rem;
  margin-inline: auto;
}

.statement .muted-word {
  color: var(--line);
}

/* ---------- Sección "cine": vídeo a ancho completo con texto dentro ---------- */
.full-bleed > .elementor-container {
  max-width: 100% !important;
  width: 100%;
}

.full-bleed .elementor-widget-wrap {
  padding: 0 !important;
}

.cine {
  position: relative;
  overflow: hidden;
  background: #191b1e;
}

.cine > video {
  display: block;
  width: 100%;
  height: 88vh;
  min-height: 520px;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.cine:hover > video {
  transform: scale(1.025);
}

.cine-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.cine-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 4rem 3.5rem;
  transition: transform 0.5s ease;
}

.cine:hover .cine-content { transform: translateY(-8px); }

.cine-content .eyebrow {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.875rem;
}

.cine-content h2 {
  color: #fff;
  max-width: 52rem;
}

.cine-content .cine-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 40rem;
}

@media (max-width: 640px) {
  .cine > video { height: 70svh; min-height: 420px; }
  .cine-content { padding: 2rem 1.25rem 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cine:hover > video { transform: none; }
}

/* ---------- Página de producto: lenguaje Apple ---------- */
body.apple-product .banner {
  border-radius: 1.75rem;
}

body.apple-product .btn {
  border-radius: 980px;
  padding: 0.75rem 1.875rem;
}

body.apple-product .field input,
body.apple-product .field select,
body.apple-product .field textarea {
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
}

body.apple-product .section--surface {
  background: #f5f5f7;
}

body.apple-product .card {
  border-top: 0;
  background: #f5f5f7;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.apple-product .section--surface .card {
  background: #fff;
}

body.apple-product .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

body.apple-product .buy-bar {
  border-top: 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
}

/* --- compra estilo Apple: galería izquierda, datos derecha --- */
body.apple-product .p-buy {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  body.apple-product .p-buy {
    grid-template-columns: 1.25fr 1fr;
    gap: 5.5rem;
  }

  /* la galería se queda fija mientras la columna de compra hace scroll */
  body.apple-product .p-buy__media {
    position: sticky;
    top: 5.5rem;
  }
}

body.apple-product .p-buy__media {
  display: grid;
  gap: 1.5rem;
}

body.apple-product .p-buy__info h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

body.apple-product .p-buy__info .lead {
  font-size: 1rem;
  margin-top: 0.875rem;
}

.p-trust {
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

body.apple-product .p-buy .variant-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

body.apple-product .p-buy .btn-block {
  width: 100%;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  margin-top: 0.75rem;
}

/* --- galería de producto estilo Apple --- */
.p-gallery__main img {
  transition: opacity 0.25s ease;
}

.p-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.875rem;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .p-gallery__thumbs { gap: 0.5rem; margin-top: 0.75rem; }
}

.p-gallery__thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #191b1e;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.p-gallery__thumbs button:hover {
  transform: translateY(-2px);
}

.p-gallery__thumbs button.is-active {
  border-color: var(--ink);
}

.p-gallery__thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* ---------- Página 404 ---------- */
.page-404 {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem;
}

/* ---------- Espaciadores reutilizables ---------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.mt-12 { margin-top: 6rem; }
.center { text-align: center; }

/* =========================================================
   Coreografía de fondo tipo Porsche: las secciones .bl-darkzone son
   TRANSPARENTES; al entrar una en la franja central del viewport,
   main.js pone .bl-dark en el body y toda la página funde a negro
   (#010205, curva y duración medidas en porsche.com). Al salir, el
   color "se quita" y vuelve el blanco. Los textos de esas secciones
   funden a claro a la vez.
   ========================================================= */
body {
  transition: background-color 1.2s cubic-bezier(0.4, 0, 0.5, 1);
}

body.bl-dark {
  background-color: #010205;
}

.bl-darkzone .elementor-heading-title,
.bl-darkzone .elementor-widget-text-editor,
.bl-darkzone .elementor-widget-text-editor p,
.bl-darkzone .hl-icon {
  transition: color 1.2s cubic-bezier(0.4, 0, 0.5, 1);
}

body.bl-dark .bl-darkzone .elementor-heading-title {
  color: #fafbff !important;
}

body.bl-dark .bl-darkzone .elementor-widget-text-editor,
body.bl-dark .bl-darkzone .elementor-widget-text-editor p {
  color: #b7b9be !important;
}

body.bl-dark .bl-darkzone .hl-icon {
  color: #fafbff;
}

/* líneas hairline de las columnas dentro de la zona oscura */
.bl-darkzone .elementor-column,
.bl-darkzone .elementor-widget-wrap {
  transition: border-color 1.2s cubic-bezier(0.4, 0, 0.5, 1);
}

body.bl-dark .bl-darkzone .elementor-column,
body.bl-dark .bl-darkzone .elementor-widget-wrap {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* botones dentro de la zona oscura: invierten a blanco */
.bl-darkzone .elementor-widget-button .elementor-button {
  transition: background-color 1.2s cubic-bezier(0.4, 0, 0.5, 1),
    color 1.2s cubic-bezier(0.4, 0, 0.5, 1),
    transform 0.25s ease, box-shadow 0.25s ease;
}

body.bl-dark .bl-darkzone .elementor-widget-button .elementor-button {
  background-color: #fafbff !important;
  color: #0e0f11 !important;
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

/* ---------- Bloque "CarRange" (grid de tarjetas tipo Porsche) ---------- */
.bl-range {
  max-width: 1880px;
  margin-inline: auto;
  padding: clamp(3rem, 5vw, 4.25rem) clamp(1rem, 4vw, 4.25rem);
}

.bl-range__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.bl-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: clamp(1.25rem, 2.05vw, 2rem);
  background: #0e0f11;
  aspect-ratio: 1.015;
}

/* !important: el CSS global de Elementor (.elementor img{height:auto})
   gana a una sola clase y dejaría la foto sin llenar la tarjeta */
.bl-range .bl-card__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bl-card:hover .bl-card__img,
.bl-card:focus-visible .bl-card__img {
  transform: scale(1.04);
}

.bl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.46) 100%);
}

.bl-card__name {
  position: absolute;
  top: clamp(1.4rem, 2.6vw, 2.6rem);
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  margin: 0;
  text-align: center;
  color: #fafbff;
  font-size: clamp(1.25rem, 1.9vw, 1.875rem);
  font-weight: 400;
  line-height: 1.15;
}

.bl-card__bottom {
  position: absolute;
  left: clamp(1.25rem, 2.3vw, 2.75rem);
  right: clamp(1.25rem, 2.3vw, 2.75rem);
  bottom: clamp(1.25rem, 2.1vw, 2.5rem);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.bl-card__desc {
  margin: 0;
  color: #fafbff;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 38ch;
}

.bl-card__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(10, 11, 13, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.bl-card__arrow svg {
  width: 1.35rem;
  height: 1.35rem;
}

.bl-card:hover .bl-card__arrow {
  background: #010205;
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
  .bl-range { padding-inline: 1rem; }
  .bl-range__grid { grid-template-columns: 1fr; gap: 1rem; }
  .bl-card { aspect-ratio: 1 / 1.05; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-range .bl-card__img { transition: none; }
}

/* --- HOME nativa: los bloques bl-range/cine/banner ahora son contenedores
       de Elementor con widgets; estos adaptadores replican el maquetado
       exacto de los elementos originales sobre los envoltorios nativos --- */
.e-con.bl-range {
  padding: clamp(3rem, 5vw, 4.25rem) clamp(1rem, 4vw, 4.25rem) !important;
}

@media (max-width: 767px) {
  .e-con.bl-range { padding-inline: 1rem !important; }
}

.e-con.bl-range__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

@media (max-width: 767px) {
  .e-con.bl-range__grid { grid-template-columns: 1fr; gap: 1rem; }
}

a.e-con.bl-card {
  display: block;
  min-height: 0;
  overflow: hidden;
  position: relative;
  border-radius: clamp(1.25rem, 2.05vw, 2rem);
}

.bl-card > .elementor-widget-image.bl-cardimg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bl-card .bl-cardimg img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bl-card:hover .bl-cardimg img,
.bl-card:focus-visible .bl-cardimg img { transform: scale(1.04); }

.bl-card__name .elementor-heading-title {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
}

.e-con.bl-card__bottom {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  position: absolute;
  width: auto;
}

.elementor-widget.bl-card__name { position: absolute; }

.bl-carddesc p {
  margin: 0;
  color: #fafbff;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 38ch;
}

.bl-cardarrow { flex: none; }

.bl-cardarrow .elementor-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(10, 11, 13, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.bl-cardarrow .elementor-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
}

.bl-card:hover .bl-cardarrow .elementor-icon {
  background: #010205;
  border-color: rgba(255, 255, 255, 0.5);
}

/* cine con vídeo de fondo nativo de Elementor
   (el CSS de contenedores/widgets de Elementor disputa position/height con
   la misma especificidad — por eso estas reglas van con .e-con/.elementor-widget) */
.e-con.cine-nativo {
  height: 88vh;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .e-con.cine-nativo { height: 70svh; min-height: 420px; }
}

.cine-nativo .elementor-background-video-container {
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.cine-nativo:hover .elementor-background-video-container { transform: scale(1.025); }

.cine-nativo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.e-con.cine-content {
  display: block !important;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  top: auto;
  z-index: 2;
  padding: 4rem 3.5rem !important;
}

@media (max-width: 640px) {
  .e-con.cine-content { padding: 2rem 1.25rem 2.25rem !important; }
}

.cine-content .elementor-widget:not(:last-child) { margin-bottom: 0; }

/* banner 21/9 con vídeo de fondo nativo */
.e-con.banner-nativo {
  display: block !important;
  margin-top: 3rem;
  aspect-ratio: 21 / 9;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

@media (max-width: 639px) {
  .e-con.banner-nativo { aspect-ratio: 4 / 5 !important; }
}

.banner-nativo .elementor-background-video-container {
  transition: transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.banner-nativo:hover .elementor-background-video-container { transform: scale(1.035); }

.elementor-widget.banner-caption {
  position: absolute;
  z-index: 2;
}

/* ---------- Beneficios: lista editorial hairline (2 columnas) ---------- */
.bl-ben {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) 2.1fr;
  gap: 2rem clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.bl-ben__head {
  position: sticky;
  top: 6rem;
}

.bl-ben__title {
  margin-top: 0.875rem;
  font-size: clamp(1.625rem, 2.6vw, 2.375rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.bl-ben__item {
  display: grid;
  grid-template-columns: minmax(11rem, 0.85fr) 1.6fr;
  gap: 0.5rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.bl-ben__item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.bl-ben__item p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 56ch;
}

/* CTA integrado al final de la lista editorial (Para quién → clubes) */
.bl-ben__cta {
  padding-top: 2rem;
}

.bl-ben__cta .btn {
  margin-bottom: 0.875rem;
}

.bl-ben__note {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 44ch;
}

@media (max-width: 900px) {
  .bl-ben { grid-template-columns: 1fr; }
  .bl-ben__head { position: static; }
  .bl-ben__item { grid-template-columns: 1fr; gap: 0.375rem; }
}

/* Variante en zona oscura: el bloque editorial funde sus colores con el
   body igual que el resto de la coreografía */
.bl-darkzone .bl-ben__title,
.bl-darkzone .bl-ben__item h3,
.bl-darkzone .bl-ben__item p,
.bl-darkzone .bl-ben__head .eyebrow,
.bl-darkzone .bl-ben__note {
  transition: color 1.2s cubic-bezier(0.4, 0, 0.5, 1);
}

body.bl-dark .bl-darkzone .bl-ben__title,
body.bl-dark .bl-darkzone .bl-ben__item h3 {
  color: #fafbff;
}

body.bl-dark .bl-darkzone .bl-ben__item p,
body.bl-dark .bl-darkzone .bl-ben__head .eyebrow,
body.bl-dark .bl-darkzone .bl-ben__note {
  color: #b7b9be;
}

.bl-darkzone .bl-ben__item {
  transition: border-color 1.2s cubic-bezier(0.4, 0, 0.5, 1);
}

body.bl-dark .bl-darkzone .bl-ben__item {
  border-color: rgba(255, 255, 255, 0.22);
}

.bl-darkzone .btn-primary {
  transition: background-color 1.2s cubic-bezier(0.4, 0, 0.5, 1),
    color 1.2s cubic-bezier(0.4, 0, 0.5, 1),
    transform 0.25s ease, box-shadow 0.25s ease;
}

body.bl-dark .bl-darkzone .btn-primary {
  background: #fafbff;
  color: #0e0f11;
}

/* Comparativa (tabla + tarjetas) y avisos .note dentro de la zona oscura */
.bl-darkzone .cmp-table,
.bl-darkzone .cmp-table tbody th,
.bl-darkzone .cmp-table thead .col-fija,
.bl-darkzone .cmp-table thead .col-bielab,
.bl-darkzone .cmp-cards,
.bl-darkzone .cmp-cards .concepto,
.bl-darkzone .cmp-cards dt,
.bl-darkzone .note,
.bl-darkzone .note strong {
  transition: color 1.2s cubic-bezier(0.4, 0, 0.5, 1);
}

.bl-darkzone .cmp-table thead tr,
.bl-darkzone .cmp-table tbody tr,
.bl-darkzone .cmp-cards > div,
.bl-darkzone .note {
  transition: border-color 1.2s cubic-bezier(0.4, 0, 0.5, 1),
    background-color 0.2s ease;
}

body.bl-dark .bl-darkzone .cmp-table,
body.bl-dark .bl-darkzone .cmp-cards {
  color: #fafbff;
}

body.bl-dark .bl-darkzone .cmp-table tbody th,
body.bl-dark .bl-darkzone .cmp-table thead .col-fija,
body.bl-dark .bl-darkzone .cmp-cards .concepto,
body.bl-dark .bl-darkzone .cmp-cards dt {
  color: #b7b9be;
}

/* el rojo de marca sube un punto de luz sobre negro para mantener contraste */
body.bl-dark .bl-darkzone .cmp-table thead .col-bielab,
body.bl-dark .bl-darkzone .cmp-cards dt.marca {
  color: #e8354f;
}

body.bl-dark .bl-darkzone .cmp-table thead tr {
  border-color: rgba(255, 255, 255, 0.32);
}

body.bl-dark .bl-darkzone .cmp-table tbody tr,
body.bl-dark .bl-darkzone .cmp-cards > div {
  border-color: rgba(255, 255, 255, 0.18);
}

body.bl-dark .bl-darkzone .cmp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.bl-dark .bl-darkzone .note {
  color: #9a9ca1;
  border-color: rgba(255, 255, 255, 0.32);
}

body.bl-dark .bl-darkzone .note strong {
  color: #fafbff;
}

/* ---------- Tablet: las columnas Elementor de 3 y 4 pasan a 2 ----------
   !important: el CSS por-elemento de Elementor (width:25%) carga después */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-section .elementor-container { flex-wrap: wrap; }
  .elementor-column.elementor-col-25,
  .elementor-column.elementor-col-33 { width: 50% !important; }
}

/* ---------- Huecos de imagen (widgets imagen Elementor .img-slot) ----------
   Placeholder gris hasta que el cliente ponga la foto desde el editor;
   cualquier imagen que se asigne hereda este formato. */
.elementor-widget.img-slot {
  margin-top: 2rem;
}

.elementor-widget.img-slot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
}

/* =========================================================
   MÓDULO DE COMPRA — variantes reales de WooCommerce
   El formulario nativo (tabla .variations + <select>) se presenta
   con el mismo lenguaje de tarjetas que el resto de la ficha.
   Los <select> siguen ahí: si el JS no carga, se ven y funcionan.
   ========================================================= */

.p-buy .variations_form {
  margin-top: 1.75rem;
}

/* La tabla nativa se comporta como bloques apilados */
.p-buy .variations,
.p-buy .variations tbody,
.p-buy .variations tr,
.p-buy .variations th,
.p-buy .variations td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.p-buy .variations tr + tr {
  margin-top: 1.5rem;
}

.p-buy .variations th.label {
  text-align: left;
}

.p-buy .variations th.label label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

/* Desplegable nativo: visible solo mientras el JS no ha pintado tarjetas */
.p-buy .variations select {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 0.875rem;
  background: #fff;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
}

.p-buy .variations select.opt-select--js {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- tarjetas seleccionables --- */
.opt-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.opt-tile--pick {
  border: 1.5px solid var(--line);
  border-radius: 0.875rem;
  background: #fff;
  padding: 0.75rem 1.125rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.opt-tile--pick:hover:not(:disabled) {
  border-color: #a9a9af;
  transform: translateY(-1px);
}

.opt-tile--pick.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.opt-tile--pick.is-off {
  cursor: not-allowed;
  opacity: 0.35;
}

.opt-tile--pick.is-off .opt-tile__value {
  text-decoration: line-through;
}

/* suplemento del embellecedor dentro de la tarjeta del acabado */
.opt-tile--pick .opt-tile__extra {
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.opt-tile--pick.is-active .opt-tile__extra {
  color: var(--ink);
}

/* «Desde» del precio cuando el embellecedor abre un segundo precio */
.price-desde {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
  vertical-align: middle;
}

/* la muestra de color de cada acabado la pinta el JS */
.opt-tile--swatch .opt-swatch {
  box-shadow: inset 0 0 0 1px rgba(14, 15, 17, 0.15);
  background: none;
}

/* aviso visual cuando se intenta comprar sin elegir opciones */
@keyframes bielab-pide-opcion {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 0, 32, 0); }
  35%      { box-shadow: 0 0 0 4px rgba(196, 0, 32, 0.18); }
}

.opt-tiles.pide-opcion {
  border-radius: 0.875rem;
  animation: bielab-pide-opcion 0.55s ease 3;
}

/* enlace «Limpiar» de WooCommerce */
.p-buy .reset_variations {
  display: inline-block;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: underline;
}

/* --- precio y botón de compra --- */

/* el precio grande de la ficha ya muestra el importe: la línea de
   precio del formulario nativo sobraría */
.p-buy .woocommerce-variation-price {
  display: none;
}

.p-buy .woocommerce-variation-availability p {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* compra de una unidad: la cantidad se envía fija a 1 */
.p-buy .woocommerce-variation-add-to-cart .quantity {
  display: none;
}

.p-buy .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.p-buy .single_add_to_cart_button:hover:not(.disabled) {
  background: #2c2d30;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.p-buy .single_add_to_cart_button.disabled,
.p-buy .single_add_to_cart_button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.p-buy .single_add_to_cart_button.wc-variation-selection-needed {
  opacity: 0.4;
}

/* sin combinaciones posibles */
.p-buy .wc-no-matching-variations,
.p-buy .stock.out-of-stock {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --- barra fija --- */
.buy-bar__cta {
  text-decoration: none;
}

.price-xl__amount {
  font: inherit;
  color: inherit;
}

.price-xl .woocommerce-Price-amount,
.buy-bar .info .p .woocommerce-Price-amount {
  font: inherit;
  color: inherit;
}

/* avisos de WooCommerce dentro del módulo de compra */
.p-buy__notices .woocommerce-message,
.p-buy__notices .woocommerce-info,
.p-buy__notices .woocommerce-error {
  margin: 1.5rem 0 0;
  border-radius: 0.875rem;
  border-left-width: 3px;
  font-size: 0.875rem;
  list-style: none;
}

.p-buy__notices .woocommerce-error {
  padding-left: 1.5rem;
}

.p-buy__notices a {
  color: inherit;
  text-decoration: underline;
}

/* el selector de idioma flotante (GTranslate) vive abajo a la izquierda:
   se le deja hueco para que no tape el precio de la barra de compra */
.buy-bar-inner {
  padding-inline-start: 4.75rem;
}
