/* ==========================================================================
   Primible — Hero dividido (tienda + pedidos personalizados)
   · Dos mitades a sangre que suben hasta la barra de anuncio: el menú
     flotante queda encima del hero (sin franja gris).
   · Alto ≈ 70 % de la pantalla.
   · Cada foto cubre su mitad completa, con el degradé negro de las
     tarjetas de «¿Qué podemos imprimir?» solo detrás del texto.
   · Sin boquilla: la animación del filamento parte en el segundo módulo.
   --hs-pull (alto del menú) lo afina hero-split.js; 94px es el respaldo.
   ========================================================================== */

/* La sección de Elementor completa sube detrás del menú: sus envoltorios
   recortan lo que sobresale, así que no basta con mover el widget. */
.elementor-top-section:has(.hero-split),
.elementor-top-section.has-hero-split {
  --hs-pull: 94px;
  z-index: 1;
  margin-top: calc(var(--hs-pull) * -1) !important;
  background: #181818 !important;
}

html .section--hero.hero-split {
  display: block;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  background: #181818 !important;
  text-align: left;
}

.hero-split__grid {
  display: flex;
  width: 100%;
  height: clamp(620px, calc(72svh + 40px), 920px);
}

/* --------------------------------------------------------------------------
   Mitad
   -------------------------------------------------------------------------- */
html .section--hero.hero-split article.hero-split__panel {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: #181818;
  box-shadow: none !important;
  color: #fff;
}

.hero-split__panel--tienda { order: 1; }
.hero-split__panel--pedidos { order: 2; }

html .section--hero.hero-split article.hero-split__panel--pedidos {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08) !important;
}

/* Foto a toda la mitad (igual que .primible-path-card__media) */
.hero-split__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-split__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.03);
}

/* Degradé negro de las tarjetas de «¿Qué podemos imprimir?» */
.hero-split__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 24, 24, .98) 0%, rgba(24, 24, 24, .9) 30%, rgba(24, 24, 24, .48) 55%, rgba(24, 24, 24, .04) 80%),
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .4) 100%);
}

.hero-split__top { display: none !important; }

/* --------------------------------------------------------------------------
   Contenido
   -------------------------------------------------------------------------- */
.hero-split__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(600px, 54%);
  padding: calc(var(--hs-pull, 94px) + 16px) 24px 32px clamp(28px, 4.5vw, 96px);
}

/* Etiqueta violeta (igual a .primible-path-card__number) */
.hero-split__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  margin-bottom: 18px;
  padding: 0 11px;
  border: 1px solid rgba(214, 107, 255, .3);
  border-radius: 999px;
  background: rgba(177, 20, 255, .14);
  color: #e6a6ff !important;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-split__pill b { color: #fff; font-weight: 600; }

html .section--hero.hero-split .hero-split__title {
  max-width: 17ch !important;
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: clamp(32px, 2.9vw, 52px) !important;
  font-weight: 600 !important;
  line-height: 1.04 !important;
  letter-spacing: -.028em !important;
  text-wrap: balance;
}

html .section--hero.hero-split .hero-split__title .tone-muted {
  color: #d66bff !important;
}

html .section--hero.hero-split p.hero-split__desc {
  max-width: 40ch !important;
  margin: 0 0 24px !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: clamp(15px, 1vw, 16.5px) !important;
  font-weight: 300;
  line-height: 1.55;
}

/* Atajos */
.hero-split__chips {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

.hero-split__chips li { margin: 0 !important; }

html .section--hero.hero-split a.hero-split__chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 400;
  text-decoration: none !important;
}

html .section--hero.hero-split a.hero-split__chip:hover,
html .section--hero.hero-split a.hero-split__chip:focus-visible {
  border-color: rgba(214, 107, 255, .55);
  background: rgba(177, 20, 255, .22);
}

/* Botón: píldora con contorno, texto y círculo violeta con flecha.
   Sin animaciones; al pasar el mouse solo cambia el color. */
html .section--hero.hero-split a.hero-split__cta {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 6px 0 22px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(24, 24, 24, .35);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}

.hero-split__cta-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #b114ff;
  color: #fff;
}

html .section--hero.hero-split a.hero-split__cta:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .12);
}

.hero-split__cta:focus-visible { outline: 2px solid #d66bff; outline-offset: 4px; }


/* --------------------------------------------------------------------------
   Móvil: una mitad sobre otra, pedidos primero; foto arriba y degradé abajo
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-split__grid {
    flex-direction: column;
    height: auto;
  }

  html .section--hero.hero-split article.hero-split__panel { flex: none; justify-content: flex-end; }
  .hero-split__panel--pedidos { order: 1; min-height: 600px; }
  .hero-split__panel--tienda { order: 2; min-height: 500px; }

  html .section--hero.hero-split article.hero-split__panel--pedidos { box-shadow: none !important; }
  html .section--hero.hero-split article.hero-split__panel--tienda { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important; }


  .hero-split__shade {
    background: linear-gradient(180deg, rgba(24, 24, 24, .55) 0%, rgba(24, 24, 24, .1) 16%, rgba(24, 24, 24, .8) 40%, #181818 60%);
  }

  .hero-split__body { max-width: none; padding: 160px 22px 40px; }
  .hero-split__panel--pedidos .hero-split__body { padding-top: calc(var(--hs-pull, 84px) + 120px); }

  html .section--hero.hero-split .hero-split__title { font-size: clamp(32px, 9vw, 42px) !important; }
}


/* --------------------------------------------------------------------------
   Boquilla en el segundo módulo (section-verticales con «Mostrar boquilla»):
   la animación del filamento parte aquí, detrás del contenido.
   -------------------------------------------------------------------------- */
[data-primible-extruder-host] { isolation: isolate; }
[data-primible-extruder-host] > :not(.primible-hero__extruder):not(.primible-hero-filament) {
  position: relative;
  z-index: 1;
}
[data-primible-extruder-host] .primible-hero__extruder { top: clamp(24px, 3vw, 48px); opacity: .16; }

/* Hero sin ninguna animación: anula transiciones y efectos heredados de los
   estilos globales del tema (article, enlaces, imágenes). */
html .section--hero.hero-split,
html .section--hero.hero-split * {
  animation: none !important;
  transition: none !important;
}

html .section--hero.hero-split article.hero-split__panel:hover {
  transform: none !important;
}

/* Única animación del hero: la foto se acerca suavemente al pasar el mouse */
html .section--hero.hero-split .hero-split__media img {
  transform: scale(1) !important;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) !important;
}
@media (hover: hover) {
  html .section--hero.hero-split .hero-split__panel:hover .hero-split__media img { transform: scale(1.12) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html .section--hero.hero-split .hero-split__media img { transition: none !important; }
}

/* El módulo recortaba la boquilla por la izquierda (overflow: hidden). */
html body .section--verticales[data-primible-extruder-host] { overflow: visible !important; }
