/* ================================================================
   ENSUTEX · REMONTAJE CINE 2026
   Capa final de experiencia. No reemplaza el sistema existente:
   lo calibra con un marco, una escala y un lenguaje de movimiento.
   ================================================================ */

:root {
  --ens-cinema-bg: #000000;
  --ens-ink: #070707;
  --ens-paper: #fdfbff;
  --ens-red: #e20613;
  --ens-sky: #87ceeb;
  --ens-frame: 76rem;
  --ens-frame-pad: max(4rem, calc((100vw - var(--ens-frame)) / 2));
  --space-section-sm: clamp(3rem, 6vw, 4.5rem);
  --space-section-md: clamp(4.5rem, 8vw, 6.5rem);
  --space-section-lg: clamp(6rem, 10vw, 8.5rem);
  --space-heading: clamp(2rem, 4vw, 3.5rem);
  --ens-spring: cubic-bezier(0.34, 1.35, 0.64, 1);
  --ens-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background: var(--ens-cinema-bg);
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

/* La opacidad nunca se aplica a una secciÃ³n completa: degrada contraste y crea capas gigantes. */
body section:not(:first-of-type) {
  opacity: 1 !important;
  transform: none !important;
  animation-name: none !important;
}

@supports (content-visibility: auto) {
  main > section:not(#hero-section) {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

/* Los nombres de ligadura nunca se muestran. local-icons.js inyecta SVG. */
.material-symbols-outlined {
  display: inline-flex !important;
  width: 1em;
  min-width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  font-family: inherit !important;
  font-size: 1em;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
  line-height: 1;
  text-transform: none !important;
  visibility: visible !important;
}

.material-symbols-outlined:not([data-icon-ready]) {
  color: transparent !important;
  font-size: 0 !important;
}

.material-symbols-outlined[data-icon-ready] {
  color: inherit;
}

.material-symbols-outlined > svg,
.ens-local-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: currentColor;
}

.ens-frame {
  width: min(100%, var(--ens-frame));
  margin-inline: auto;
  padding-inline: 4rem;
}

.ens-section-head {
  max-width: 52rem;
  margin-bottom: var(--space-heading);
}

.ens-section-head--center {
  margin-inline: auto;
  text-align: center;
}

.ens-eyebrow {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--ens-sky);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ens-eyebrow::before {
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.ens-cinema {
  position: relative;
  overflow: clip;
  background: var(--ens-cinema-bg);
  color: #ffffff;
  isolation: isolate;
}

.ens-cinema::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(135, 206, 235, 0.08), transparent 30%),
    radial-gradient(circle at 84% 70%, rgba(226, 6, 19, 0.07), transparent 29%);
  content: "";
  pointer-events: none;
}

.ens-cinema__texture,
.ens-cinema .ens-motion-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  opacity: 0.42;
  pointer-events: none;
}

.ens-cinema__texture::before,
.ens-cinema .ens-motion-grid::before {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(135, 206, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 206, 235, 0.045) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 12%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 12%, transparent 72%);
}

.ens-cinema__video,
.ens-cinema .ens-motion-product {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  background: var(--ens-cinema-bg);
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(135, 206, 235, 0.3))
    drop-shadow(0 0 24px rgba(135, 206, 235, 0.09));
  -webkit-mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, #000 72%, rgba(0, 0, 0, 0.88) 86%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, #000 72%, rgba(0, 0, 0, 0.88) 86%, transparent 100%);
}

/* ---------- Hero: una sola escena completa dentro de 100dvh ---------- */
#hero-section.ens-cinema-hero {
  box-sizing: border-box;
  display: flex;
  min-height: 100svh;
  padding-top: 5rem;
  align-items: stretch;
  background: var(--ens-cinema-bg) !important;
  color: #ffffff;
}

.ens-cinema-hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(100%, var(--ens-frame));
  min-height: calc(100svh - 5rem);
  margin-inline: auto;
  padding: clamp(1.75rem, 4vh, 3.25rem) 3rem;
  grid-template-columns: minmax(0, 0.93fr) minmax(28rem, 1.07fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.ens-cinema-hero__copy {
  min-width: 0;
  max-width: 40rem;
}

#hero-section .ens-motion-eyebrow {
  display: flex;
  max-width: 35rem;
  margin: 0 0 clamp(0.65rem, 1.5vh, 1rem);
  color: #bfc4cd;
  font-size: clamp(0.75rem, 0.8vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-align: left;
  text-transform: uppercase;
}

#hero-section .ens-motion-hero__title {
  max-width: 11ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-align: left;
  text-wrap: balance;
  text-transform: uppercase;
}

#hero-section .ens-hero-line {
  display: block;
  white-space: nowrap;
}

#hero-section .ens-hero-line--accent {
  color: var(--ens-sky);
  text-shadow: 0 0 28px rgba(135, 206, 235, 0.14);
}

#hero-section .ens-motion-hero__lead {
  max-width: 38rem;
  margin: clamp(1rem, 2.4vh, 1.55rem) 0 0;
  color: #d5d7dc;
  font-size: clamp(1rem, 1.18vw, 1.08rem);
  line-height: 1.6;
  text-align: left;
}

#hero-section .ens-motion-chips {
  display: flex;
  margin: clamp(0.9rem, 2.2vh, 1.4rem) 0 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

#hero-section .ens-motion-chips span {
  display: inline-flex;
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #e8e9ec;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
}

#hero-section .ens-motion-chips strong {
  margin-left: 0.28rem;
  color: var(--ens-sky);
}

#hero-section .ens-motion-actions {
  display: flex;
  margin-top: clamp(1rem, 2.4vh, 1.5rem);
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-start;
}

#hero-section .ens-motion-button,
#hero-section .ens-motion-link {
  display: inline-flex;
  min-height: 2.9rem;
  padding: 0.72rem 1.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 220ms var(--ens-spring), border-color 220ms ease, background-color 220ms ease;
}

#hero-section .ens-motion-button--primary {
  order: -1;
  border: 1px solid var(--ens-red);
  background: var(--ens-red);
  color: #ffffff;
  box-shadow: 0 16px 44px rgba(226, 6, 19, 0.24);
}

#hero-section .ens-motion-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

#hero-section .ens-motion-button:hover,
#hero-section .ens-motion-link:hover {
  transform: translateY(-2px);
}

.ens-cinema-hero__media {
  position: relative;
  display: grid;
  min-width: 0;
  height: min(66vh, 39rem);
  max-height: calc(100svh - 5rem - 3.5rem);
  place-items: center;
}

.ens-cinema-hero__poster,
.ens-cinema-hero__video {
  grid-area: 1 / 1;
}

#hero-section .ens-cinema-hero__video {
  z-index: 2;
  opacity: 0 !important;
  transition: opacity 360ms ease;
}

#hero-section .ens-cinema-hero__video.is-playing {
  opacity: 1 !important;
}

.ens-cinema-hero__media::after {
  position: absolute;
  z-index: 0;
  width: min(70%, 30rem);
  height: 1.2rem;
  bottom: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(135, 206, 235, 0.18), transparent 70%);
  content: "";
  filter: blur(8px);
}

.ens-cinema-hero__media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.motion-ready .ens-cinema-enter {
  animation: ens-cinema-enter 640ms var(--ens-ease) both;
  animation-delay: var(--ens-enter-delay, 0ms);
}

/* El poster del producto es el LCP: entra inmediato; el copy conserva el stagger. */
#hero-section .ens-cinema-hero__media.ens-cinema-enter {
  opacity: 1 !important;
  animation: none !important;
}

@keyframes ens-cinema-enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------- Storytelling oscuro ---------- */
.ens-cinema-proof,
.ens-cinema-showcase {
  padding-block: var(--space-section-lg);
}

.ens-cinema-proof__layout,
.ens-cinema-story__row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(24rem, 1.06fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.ens-cinema-proof__copy h2,
.ens-cinema-story__copy h2 {
  max-width: 14ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.ens-cinema-proof__copy > p:not(.ens-eyebrow),
.ens-cinema-story__copy > p:not(.ens-eyebrow) {
  max-width: 38rem;
  margin-top: 1.3rem;
  color: #bfc2c8;
  font-size: 1rem;
  line-height: 1.65;
}

.ens-cinema-proof__features,
.ens-magic-steps {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.ens-cinema-proof__features li,
.ens-magic-steps li {
  display: grid;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 0.9rem;
}

.ens-cinema-proof__features li::before {
  display: grid;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(135, 206, 235, 0.35);
  border-radius: 50%;
  color: var(--ens-sky);
  content: "\2713";
  font-weight: 900;
  place-items: center;
}

.ens-cinema-proof__features strong,
.ens-magic-steps strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.ens-cinema-proof__features span,
.ens-magic-steps p {
  display: block;
  margin: 0.2rem 0 0;
  color: #aeb2b9;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ens-cinema-stage {
  position: relative;
  display: grid;
  min-height: min(74vh, 44rem);
  place-items: center;
}

.ens-cinema-stage video {
  position: relative;
  z-index: 1;
  max-height: min(74vh, 44rem);
}

.ens-cinema-showcase {
  padding-top: 0;
}

.ens-cinema-story {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(4rem, 10vw, 8rem);
}

.ens-cinema-story__row:nth-child(even) {
  grid-template-columns: minmax(24rem, 1.12fr) minmax(0, 0.88fr);
}

.ens-cinema-story__row:nth-child(even) .ens-cinema-stage {
  order: -1;
}

.ens-cinema-story__copy .ens-motion-link {
  display: inline-flex;
  min-height: 44px;
  margin-top: 1.5rem;
  align-items: center;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

/* Continuidad de las escenas reales y del marquee. */
#client-3d-world.ens-client-section,
[data-marquee].ens-cinema-marquee {
  border: 0;
  background: var(--ens-cinema-bg) !important;
}

#client-3d-world.ens-client-section {
  padding-block: var(--space-section-md);
}

#client-3d-world .ens-client-layout {
  position: relative;
  z-index: 3;
}

#client-3d-world .ens-client-copy {
  color: #ffffff;
}

#client-3d-world .ens-client-copy h2 {
  color: #ffffff;
}

#client-3d-world .ens-client-copy > p:last-child {
  color: #bfc2c8;
}

#client-3d-world .ens-motion-kicker {
  color: var(--ens-sky);
}

[data-marquee].ens-cinema-marquee {
  padding-block: var(--space-section-sm);
}

/* ---------- Proceso: respiro claro ---------- */
.ens-process {
  scroll-margin-top: 7rem;
  position: relative;
  overflow: clip;
  padding-block: var(--space-section-md);
  background:
    radial-gradient(circle at 7% 10%, rgba(135, 206, 235, 0.15), transparent 22rem),
    linear-gradient(180deg, #ffffff, var(--ens-paper));
  color: var(--ens-ink);
}

.ens-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.ens-process-step {
  position: relative;
  min-width: 0;
  padding: 1.5rem 1rem 1.25rem;
  border-top: 1px solid #d9dadd;
}

.ens-process-step:not(:last-child)::after {
  position: absolute;
  width: 1.6rem;
  height: 1px;
  top: 3.15rem;
  right: -0.8rem;
  background: #a7abb1;
  content: "";
}

.ens-process-step__icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.8);
  color: #09090b;
  place-items: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08), inset 0 1px rgba(255, 255, 255, 0.9);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.ens-process-step__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.ens-process-step__number {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ens-red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ens-process-step h3 {
  margin: 0;
  color: #09090b;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ens-process-step p {
  margin: 0.65rem 0 0;
  color: #4d5159;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ens-process__cta {
  display: flex;
  margin-top: 2rem;
  justify-content: center;
}

.ens-process__cta a {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.8rem 1.45rem;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  background: var(--ens-red);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 15px 36px rgba(226, 6, 19, 0.22);
}

.ens-trust-card {
  position: relative;
  display: grid;
  max-width: 66rem;
  margin: 2.5rem auto 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  overflow: hidden;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.68);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  box-shadow: 0 22px 65px rgba(10, 10, 10, 0.1), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.ens-trust-card::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(135, 206, 235, 0.8), rgba(255, 255, 255, 0.2), rgba(226, 6, 19, 0.35));
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.ens-trust-card__icon {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: #09090b;
  color: var(--ens-sky);
  place-items: center;
}

.ens-trust-card__icon svg {
  width: 1.8rem;
  height: 1.8rem;
}

.ens-trust-card__copy strong {
  display: block;
  color: var(--ens-red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ens-trust-card__copy span {
  display: block;
  margin-top: 0.3rem;
  color: #17171a;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

.ens-trust-card__link {
  display: inline-flex;
  min-height: 44px;
  padding-inline: 1rem;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  color: #09090b;
  font-size: 0.75rem;
  font-weight: 850;
}

.ens-process-doubts {
  display: flex;
  max-width: 66rem;
  margin: 1rem auto 0;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.ens-doubt-chip {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #17171a;
  font-size: 0.78rem;
  font-weight: 800;
}

.ens-doubt-chip[aria-expanded="true"] {
  border-color: var(--ens-sky);
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.18);
}

.ens-doubt-popover {
  display: none;
  width: min(100%, 42rem);
  margin: 0.8rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.9rem;
  background: #ffffff;
  color: #3f3f46;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.ens-doubt-popover.is-visible {
  display: block;
}

/* ---------- Teaser y diseño/canje ---------- */
.ens-catalog-teaser,
.ens-exchange {
  padding-block: var(--space-section-md);
}

body.ensutex-home #catalogo.ens-catalog-teaser {
  background: var(--ens-cinema-bg) !important;
  color: #ffffff;
}

.ens-catalog-teaser__layout,
.ens-exchange__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(23rem, 0.84fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.ens-catalog-teaser h2,
.ens-exchange h2 {
  max-width: 13ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.15rem, 4.5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-transform: uppercase;
}

.ens-catalog-teaser__copy > p:not(.ens-eyebrow),
.ens-exchange__copy > p:not(.ens-eyebrow) {
  max-width: 44rem;
  margin: 1.15rem 0 0;
  color: #bfc2c8;
  font-size: 1rem;
  line-height: 1.65;
}

.ens-catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.ens-catalog-stat {
  display: flex;
  min-height: 9rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.045);
  flex-direction: column;
  justify-content: flex-end;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ens-catalog-stat strong {
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.ens-catalog-stat span {
  margin-top: 0.7rem;
  color: #bfc2c8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ens-section-actions {
  display: flex;
  margin-top: 1.7rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ens-section-actions a {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.ens-section-actions__primary {
  background: var(--ens-red);
  color: #ffffff;
}

.ens-section-actions__secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ens-exchange__guides {
  display: grid;
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.ens-guide-link {
  display: flex;
  min-height: 8.6rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  flex-direction: column;
  color: #ffffff;
  transition: transform 240ms var(--ens-spring), border-color 240ms ease;
}

.ens-guide-link:hover {
  border-color: rgba(135, 206, 235, 0.5);
  transform: translateY(-3px);
}

.ens-guide-link svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ens-sky);
}

.ens-guide-link strong {
  margin-top: auto;
  font-size: 1rem;
  text-transform: uppercase;
}

.ens-guide-link span {
  margin-top: 0.35rem;
  color: #afb3ba;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ens-exchange-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 84% 12%, rgba(135, 206, 235, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.ens-exchange-card::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(135, 206, 235, 0.65), rgba(255, 255, 255, 0.08), rgba(226, 6, 19, 0.42));
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.ens-exchange-card__label {
  color: var(--ens-sky);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ens-exchange-card__title {
  display: block;
  margin-top: 1.3rem;
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-transform: uppercase;
}

.ens-exchange-card__condition {
  display: flex;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  color: #c9ccd1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ens-exchange-card__seal {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(135, 206, 235, 0.45);
  border-radius: 50%;
  color: var(--ens-sky);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  place-items: center;
  transform: rotate(-7deg);
}

/* ---------- FAQ única ---------- */
.ens-faq {
  scroll-margin-top: 7rem;
  padding-block: var(--space-section-md);
  background:
    radial-gradient(circle at 92% 4%, rgba(135, 206, 235, 0.18), transparent 24rem),
    var(--ens-paper);
  color: #09090b;
}

.ens-faq__intro {
  max-width: 40rem;
  margin: -1rem auto 0;
  color: #52525b;
  line-height: 1.65;
}

.ens-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.ens-faq__group {
  display: grid;
  align-content: start;
  gap: .7rem;
}

.ens-faq__group-label {
  margin: 0 0 .1rem;
  color: #6b252a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ens-faq__tabs {
  max-width: 100%;
  overflow-x: auto;
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0.3rem;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  gap: 0.25rem;
  scrollbar-width: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ens-faq__tabs::-webkit-scrollbar {
  display: none;
}

.ens-faq__tab {
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #52525b;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.ens-faq__tab[aria-selected="true"] {
  background: #09090b;
  color: #ffffff;
}

.ens-faq__panel {
  display: grid;
  max-width: 52rem;
  margin-inline: auto;
  gap: 0.7rem;
}

.ens-faq__panel[hidden] {
  display: none;
}

.ens-faq__item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.055), inset 0 1px rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ens-faq__item::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(135, 206, 235, 0.55), rgba(0, 0, 0, 0.08), rgba(226, 6, 19, 0.2));
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.ens-faq__question {
  display: grid;
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.1rem;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 1rem;
  align-items: center;
  color: #121216;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.ens-faq__question svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 240ms var(--ens-spring);
}

.ens-faq__question[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.ens-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ens-ease);
}

.ens-faq__answer > div {
  overflow: hidden;
}

.ens-faq__answer p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: #52525b;
  font-size: 0.94rem;
  line-height: 1.65;
}

.ens-faq__question[aria-expanded="true"] + .ens-faq__answer {
  grid-template-rows: 1fr;
}

/* ---------- Contacto: cupón llena el lateral sin alterar el flujo ---------- */
#contacto.ens-contact {
  padding-block: var(--space-section-md) !important;
}

#contacto.ens-contact > div {
  padding-inline: 3rem;
}

.ens-contact-coupon {
  margin-bottom: 1rem;
  padding: 1.3rem;
  border: 1px dashed rgba(0, 0, 0, 0.24);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f5faff, #ffffff 55%, #fff4f4);
}

.ens-contact-coupon span {
  display: block;
  color: var(--ens-red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ens-contact-coupon strong {
  display: block;
  margin-top: 0.5rem;
  color: #09090b;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

/* ---------- Catálogo: hero sin tablet, carrusel centrado, telas grandes ---------- */
.catalog-page-hero.ens-catalog-hero {
  min-height: min(100svh, 56rem);
  padding: 5rem 0 0 !important;
  background: var(--ens-cinema-bg) !important;
  color: #ffffff !important;
}

.catalog-page-hero.ens-catalog-hero > .absolute {
  display: none;
}

.catalog-page-hero.ens-catalog-hero > .relative.z-10 {
  display: grid;
  width: min(100%, var(--ens-frame));
  max-width: none !important;
  min-height: calc(min(100svh, 56rem) - 5rem);
  padding: var(--space-section-sm) 3rem !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.ens-catalog-hero .catalog-page-hero__copy {
  max-width: 40rem;
  margin: 0;
  text-align: left;
}

.ens-catalog-hero .catalog-hero-badge {
  display: inline-flex;
  min-height: 1.8rem;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ens-sky);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.ens-catalog-hero .catalog-hero-badge::before {
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.ens-catalog-hero .catalog-hero-badge > span {
  display: none;
}

.ens-catalog-hero h1 {
  margin-bottom: 1.2rem !important;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.7vw, 4.4rem) !important;
  line-height: 0.98 !important;
}

.ens-catalog-hero .catalog-page-hero__copy > p {
  color: #c5c8ce !important;
  font-size: 1rem !important;
  line-height: 1.65;
}

.ens-catalog-hero .cta-flow {
  justify-content: flex-start !important;
}

.ens-catalog-hero .cta-flow a:first-child {
  border-color: var(--ens-red);
  border-radius: 999px;
  background: var(--ens-red);
}

.ens-catalog-hero .cta-flow a:last-child {
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
}

.ens-catalog-hero #cat-prueba-visual {
  min-width: 0;
  margin: 0;
}

.ens-catalog-hero .showreel-frame {
  width: min(100%, 38rem);
  margin-inline: auto;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  -webkit-mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, #000 74%, rgba(0, 0, 0, 0.84) 88%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, #000 74%, rgba(0, 0, 0, 0.84) 88%, transparent 100%);
}

.ens-catalog-hero #cat-prueba-visual .showreel-frame {
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ens-catalog-hero #cat-prueba-visual .showreel-slide {
  border-radius: 0 !important;
  background: transparent !important;
}

#catalogo.ens-catalog-carousel-section {
  padding-block: var(--space-section-md) !important;
  border: 0 !important;
  background: #050505 !important;
  color: #ffffff;
}

#catalogo.ens-catalog-carousel-section h2,
#catalogo.ens-catalog-carousel-section .catalog-carousel__status {
  color: inherit;
}

#catalogo.ens-catalog-carousel-section .cat-card,
#catalogo.ens-catalog-carousel-section .catalog-search,
#catalogo.ens-catalog-carousel-section .catalog-paths {
  color: #09090b;
}

#catalogo.ens-catalog-carousel-section .md\:flex .inline-block.mb-3 {
  color: #d4d4d8 !important;
}

#catalogo.ens-catalog-carousel-section .catalog-swipe-hint {
  color: #7dd3fc !important;
}

#catalogo.ens-catalog-carousel-section > div {
  padding-inline: 3rem;
}

.ens-catalog-carousel-section .catalog-carousel-shell {
  position: relative;
  width: min(100%, 76rem);
  margin-inline: auto;
  overflow: visible;
}

.ens-catalog-carousel-section .catalog-carousel__toolbar {
  position: absolute;
  z-index: 12;
  width: min(100%, 64rem);
  height: min(72vh, 40rem);
  inset: 0 0 auto;
  margin: 0 auto;
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  pointer-events: none;
}

.ens-catalog-carousel-section .catalog-carousel__arrow {
  width: 3.25rem;
  height: 3.25rem;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 14, 0.82);
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ens-catalog-carousel-section .catalog-carousel__status {
  position: absolute;
  width: min(28rem, calc(100vw - 9rem));
  top: -2.4rem;
  left: 50%;
  color: #b8bbc2;
  transform: translateX(-50%);
}

.ens-catalog-carousel-section #cat-grid[data-catalog-carousel] {
  min-height: min(72vh, 40rem);
  height: min(72vh, 40rem) !important;
  overflow: visible !important;
}

.ens-catalog-carousel-section #cat-grid[data-catalog-carousel] > [data-product-id] {
  width: min(25rem, 48vw);
  max-height: min(72vh, 40rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.2rem;
  background: #ffffff;
}

.ens-catalog-carousel-section #cat-grid[data-catalog-carousel] .catalog-product-stage {
  height: min(38vh, 18rem);
  max-height: 18rem;
  padding: 0.8rem;
}

.ens-catalog-carousel-section #cat-grid[data-catalog-carousel] > .is-carousel-center > .p-5 {
  margin-top: 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0 0 1.15rem 1.15rem;
  box-shadow: none;
}

.ens-catalog-carousel-section #cat-grid[data-catalog-carousel] > .is-carousel-prev,
.ens-catalog-carousel-section #cat-grid[data-catalog-carousel] > .is-carousel-next {
  opacity: 0.42;
  filter: saturate(0.7);
}

#telas.ens-fabrics {
  padding-block: var(--space-section-md) !important;
  border: 0 !important;
  background: #f2f3f5 !important;
}

#telas.ens-fabrics > div {
  padding-inline: 3rem;
}

#telas.ens-fabrics .fabric-content > .grid > div,
#telas.ens-fabrics .fabric-content > .max-w-4xl,
#telas.ens-fabrics .fabric-content > .max-w-3xl {
  display: grid !important;
  min-height: 42rem;
  padding: 0.9rem !important;
  border-radius: 1.2rem !important;
  grid-template-rows: minmax(0, 1.7fr) minmax(0, 0.75fr);
  background: #ffffff !important;
}

#telas.ens-fabrics .fabric-content > .grid > div > .mb-6,
#telas.ens-fabrics .fabric-content > .max-w-4xl > .mb-6,
#telas.ens-fabrics .fabric-content > .max-w-3xl > .mb-6 {
  order: 2;
  margin: 0;
  padding: 1rem 0.35rem 0.2rem;
}

#telas.ens-fabrics .fabric-content > .grid > div > .mt-auto,
#telas.ens-fabrics .fabric-content > .max-w-4xl > .mt-auto,
#telas.ens-fabrics .fabric-content > .max-w-3xl > .mt-auto {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  order: 1;
  flex-direction: column;
}

#telas.ens-fabrics .fabric-photo {
  width: 100%;
  min-height: 0;
  flex: 1;
  border-radius: 0.9rem !important;
  aspect-ratio: 4 / 5 !important;
}

#telas.ens-fabrics .fabric-photo img {
  padding: 0 !important;
  object-fit: cover !important;
  transform: scale(1.02);
}

#telas.ens-fabrics .fabric-content .grid.grid-cols-2.gap-4.text-xs {
  margin-top: 0.8rem !important;
  padding: 0.8rem !important;
}

#cotizador-express[data-fade-rise] #cotizador-box {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 680ms var(--ens-ease), transform 760ms var(--ens-ease);
}

#cotizador-express[data-fade-rise].fade-rise-active #cotizador-box {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Standalone telas.html: la muestra manda, el marco acompaña. */
body.ensutex-fabric-guide main .fabric-card,
body:has(main [aria-labelledby="fabric-title"]) .fabric-card {
  padding: 0.85rem;
}

body.ensutex-fabric-guide .fabric-card img,
body:has(main [aria-labelledby="fabric-title"]) .fabric-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ens-fabric-cards .tl-card {
  display: flex;
  min-height: 36rem;
  padding: 0.85rem;
  overflow: hidden;
  border: 1px solid #e1e2e5;
  border-radius: 1.2rem;
  flex-direction: column;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.07);
}

.ens-fabric-cards .tl-card__media {
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 0.9rem;
  flex: 1 1 70%;
  background: #f5f5f6;
}

.ens-fabric-cards .tl-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 420ms var(--ens-ease);
}

.ens-fabric-cards .tl-card:hover .tl-card__media img {
  transform: scale(1.08);
}

.ens-fabric-cards .tl-card > div,
.ens-fabric-cards .tl-card > p {
  margin-inline: 0.35rem;
}

/* ---------- Asu Web: asistente visible, nunca protagonista ---------- */
.floating-widgets {
  position: fixed;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: opacity 220ms ease, transform 220ms var(--ens-ease);
  right: max(1rem, env(safe-area-inset-right)) !important;
  bottom: max(1rem, env(safe-area-inset-bottom)) !important;
}

.floating-widgets > div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#chatbot-trigger.ens-chat-trigger {
  width: 3.65rem !important;
  height: 3.65rem !important;
  min-width: 3.65rem;
  min-height: 3.65rem;
  padding: 0.38rem !important;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  background: rgba(8, 8, 10, 0.86) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

#chatbot-trigger.ens-chat-trigger img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#chatbot-trigger.ens-chat-trigger:hover {
  transform: translateY(-2px) scale(1.02);
}

#chatbot-cta.ens-chat-prompt {
  right: 4.25rem;
  max-width: 13rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 10, 0.86);
  font-size: 0.7rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#chatbot-panel.ens-chat-panel {
  position: fixed;
  z-index: 95;
  display: none;
  flex-direction: column;
  width: min(420px, calc(100vw - 2rem)) !important;
  max-height: min(640px, calc(100dvh - 6.5rem)) !important;
  right: 1rem !important;
  bottom: 5.4rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 1.35rem !important;
  background: rgba(9, 9, 11, 0.9) !important;
  color: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

#chatbot-panel.ens-chat-panel.is-open {
  display: flex !important;
  animation: ens-chat-open 300ms var(--ens-spring) both;
}

@keyframes ens-chat-open {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

#chatbot-panel.ens-chat-panel > div:first-child {
  display: flex;
  padding: 0.75rem 1rem;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.74) !important;
}

#chatbot-panel.ens-chat-panel > div:first-child > div:first-child {
  display: flex;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
}

#chatbot-panel.ens-chat-panel > div:first-child > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

#chatbot-panel.ens-chat-panel > div:nth-child(2) {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

#chatbot-panel.ens-chat-panel #chat-messages {
  display: flex;
  min-height: 0;
  padding: 0.75rem;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  background: transparent !important;
  color: #ffffff;
}

.ens-chat-message {
  max-width: 88%;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: rgba(255, 255, 255, 0.075);
  color: #f2f2f3;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ens-chat-message--user {
  margin-left: auto;
  border-color: rgba(135, 206, 235, 0.25);
  border-radius: 1rem 1rem 0.25rem 1rem;
  background: rgba(135, 206, 235, 0.12);
}

.ens-chat-typing {
  display: inline-flex;
  min-height: 2.5rem;
  padding: 0.75rem 0.9rem;
  align-items: center;
  gap: 0.3rem;
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: rgba(255, 255, 255, 0.07);
}

.ens-chat-typing span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ens-sky);
  animation: ens-chat-dot 600ms ease-in-out infinite alternate;
}

.ens-chat-typing span:nth-child(2) { animation-delay: 100ms; }
.ens-chat-typing span:nth-child(3) { animation-delay: 200ms; }

@keyframes ens-chat-dot {
  to { opacity: 0.35; transform: translateY(-3px); }
}

#chatbot-panel.ens-chat-panel #chat-options-wrap {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

#chatbot-panel.ens-chat-panel #chat-options {
  display: grid;
  max-height: 13rem !important;
  padding: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.ens-chat-option {
  min-width: 0;
  min-height: 44px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.ens-chat-option:hover,
.ens-chat-option:focus-visible {
  border-color: rgba(135, 206, 235, 0.55);
  background: rgba(135, 206, 235, 0.1);
  outline: none;
}

.ens-chat-option--primary {
  border-color: rgba(226, 6, 19, 0.5);
  background: rgba(226, 6, 19, 0.16);
}

#chatbot-panel.ens-chat-panel > div:last-child {
  padding: 0.55rem 0.75rem;
  flex-shrink: 0;
  font-size: 0.72rem;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(0, 0, 0, 0.58) !important;
  color: #b6bac1 !important;
}

#chatbot-panel.ens-chat-panel a {
  color: #ffffff !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  :root {
    --ens-frame-pad: 2rem;
  }

  .ens-frame,
  #contacto.ens-contact > div,
  #catalogo.ens-catalog-carousel-section > div,
  #telas.ens-fabrics > div {
    padding-inline: 2.5rem;
  }

  .ens-cinema-hero__inner,
  .catalog-page-hero.ens-catalog-hero > .relative.z-10 {
    grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
    gap: 2rem;
  }

  .ens-cinema-proof__layout,
  .ens-cinema-story__row,
  .ens-cinema-story__row:nth-child(even),
  .ens-catalog-teaser__layout,
  .ens-exchange__layout {
    gap: 2.5rem;
  }

  .ens-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ens-process-step:nth-child(2)::after {
    display: none;
  }

  .ens-process-step:nth-child(n+3) {
    border-top: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --ens-frame-pad: 1.5rem;
    --space-section-sm: clamp(3rem, 15vw, 4rem);
    --space-section-md: clamp(3.8rem, 17vw, 5rem);
    --space-section-lg: clamp(4.2rem, 20vw, 5.8rem);
  }

  .ens-frame,
  #contacto.ens-contact > div,
  #catalogo.ens-catalog-carousel-section > div,
  #telas.ens-fabrics > div {
    padding-inline: 1.5rem;
  }

  #hero-section.ens-cinema-hero {
    min-height: 100svh;
    padding-top: 4rem;
  }

  .ens-cinema-hero__inner {
    display: flex;
    min-height: calc(100svh - 4rem);
    padding: clamp(1rem, 2.5vh, 1.35rem) 1.5rem max(1.15rem, env(safe-area-inset-bottom));
    flex-direction: column;
    gap: clamp(0.65rem, 1.6vh, 0.95rem);
    justify-content: center;
  }

  .ens-cinema-hero__copy {
    display: contents;
  }

  #hero-section .ens-motion-eyebrow {
    width: 100%;
    margin: 0;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
  }

  #hero-section .ens-motion-hero__title {
    width: 100%;
    max-width: 13ch;
    margin-inline: auto;
    font-size: clamp(2.2rem, 9vw, 2.8rem);
    line-height: 0.92;
    text-align: center;
  }

  .ens-cinema-hero__media {
    width: 100%;
    height: min(27dvh, 13.5rem);
    max-height: 13.5rem;
    order: 3;
  }

  #hero-section .ens-motion-hero__lead {
    margin: 0;
    order: 4;
    font-size: 1rem;
    line-height: 1.45;
    text-align: center;
  }

  #hero-section .ens-motion-chips {
    margin: 0;
    order: 5;
    gap: 0.38rem;
    justify-content: center;
  }

  #hero-section .ens-motion-chips span {
    min-height: 1.75rem;
    padding: 0.34rem 0.6rem;
    font-size: 0.75rem;
  }

  #hero-section .ens-motion-actions {
    display: grid;
    width: 100%;
    margin: 0;
    order: 6;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  #hero-section .ens-motion-button,
  #hero-section .ens-motion-link {
    width: 100%;
    min-height: 44px;
    padding-block: 0.68rem;
  }

  #hero-section .ens-motion-link {
    order: 2;
  }

  .ens-cinema-proof__layout,
  .ens-cinema-story__row,
  .ens-cinema-story__row:nth-child(even),
  .ens-catalog-teaser__layout,
  .ens-exchange__layout,
  .catalog-page-hero.ens-catalog-hero > .relative.z-10 {
    grid-template-columns: 1fr;
  }

  .ens-cinema-proof__copy h2,
  .ens-cinema-story__copy h2,
  .ens-catalog-teaser h2,
  .ens-exchange h2 {
    font-size: clamp(2.15rem, 11vw, 3.3rem);
  }

  .ens-cinema-stage {
    min-height: min(70vh, 32rem);
  }

  .ens-cinema-stage video {
    max-height: min(70vh, 32rem);
  }

  .ens-cinema-story__row:nth-child(even) .ens-cinema-stage {
    order: initial;
  }

  .ens-process__grid {
    grid-template-columns: 1fr;
  }

  .ens-faq__grid {
    grid-template-columns: 1fr;
  }

  .ens-process-step {
    display: grid;
    padding: 1.1rem 0;
    border-top: 1px solid #d9dadd !important;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .ens-process-step::after {
    display: none;
  }

  .ens-process-step__icon {
    grid-row: 1 / 4;
    margin: 0;
  }

  .ens-process-step__number {
    margin: 0;
  }

  .ens-process-step p {
    margin-top: 0.5rem;
  }

  .ens-trust-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ens-trust-card__link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .ens-catalog-stats {
    gap: 0.45rem;
  }

  .ens-catalog-stat {
    min-height: 7rem;
    padding: 0.75rem;
  }

  .ens-catalog-stat strong {
    font-size: 2.4rem;
  }

  .ens-catalog-stat span {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }

  .ens-exchange__guides {
    grid-template-columns: 1fr;
  }

  .ens-guide-link {
    min-height: 7.4rem;
  }

  .ens-faq__tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .catalog-page-hero.ens-catalog-hero {
    min-height: auto;
    padding-top: 4rem !important;
  }

  .catalog-page-hero.ens-catalog-hero > .relative.z-10 {
    min-height: auto;
    padding: var(--space-section-sm) 1.5rem !important;
  }

  .ens-catalog-hero .catalog-page-hero__copy {
    text-align: center;
  }

  .ens-catalog-hero .catalog-hero-badge,
  .ens-catalog-hero .cta-flow {
    justify-content: center !important;
  }

  .ens-catalog-carousel-section .catalog-carousel__toolbar {
    width: calc(100% + 1rem);
    height: min(72vh, 39rem);
    margin-left: -0.5rem;
    grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem;
  }

  .ens-catalog-carousel-section .catalog-carousel__arrow {
    width: 2.8rem;
    height: 2.8rem;
  }

  .ens-catalog-carousel-section #cat-grid[data-catalog-carousel] {
    min-height: min(72vh, 39rem);
    height: min(72vh, 39rem) !important;
  }

  .ens-catalog-carousel-section #cat-grid[data-catalog-carousel] > [data-product-id] {
    width: calc(100% - 2.2rem) !important;
    max-height: min(72vh, 39rem);
  }

  .ens-catalog-carousel-section #cat-grid[data-catalog-carousel] .catalog-product-stage {
    height: min(34vh, 15.5rem);
  }

  #telas.ens-fabrics .fabric-content > .grid > div,
  #telas.ens-fabrics .fabric-content > .max-w-4xl,
  #telas.ens-fabrics .fabric-content > .max-w-3xl {
    min-height: 38rem;
  }

  .floating-widgets {
    right: 0.75rem !important;
    bottom: calc(0.75rem + env(safe-area-inset-bottom)) !important;
  }

  body.ensutex-home.ens-hero-in-view .floating-widgets {
    opacity: 0;
    transform: translateY(0.75rem);
    pointer-events: none;
  }

  #chatbot-trigger.ens-chat-trigger {
    width: 3.25rem !important;
    height: 3.25rem !important;
    min-width: 3.25rem;
    min-height: 3.25rem;
  }

  #chatbot-cta.ens-chat-prompt {
    right: 3.7rem;
    bottom: auto;
    max-width: 7.8rem;
    font-size: 0.66rem;
  }

  #chatbot-panel.ens-chat-panel {
    width: auto !important;
    height: min(39rem, calc(100dvh - 6rem)) !important;
    max-height: calc(100dvh - 6rem) !important;
    right: 0.65rem !important;
    left: 0.65rem !important;
    bottom: calc(4.8rem + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-height: 730px) and (min-width: 768px) {
  .ens-cinema-hero__inner {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  #hero-section .ens-motion-hero__title {
    font-size: clamp(2.25rem, 4vw, 3.2rem);
  }

  #hero-section .ens-motion-hero__lead {
    line-height: 1.45;
  }

  .ens-cinema-hero__media {
    height: calc(100svh - 7.4rem);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .ens-trust-card,
  .ens-exchange-card,
  .ens-faq__tabs,
  .ens-faq__item,
  #chatbot-panel.ens-chat-panel,
  #chatbot-trigger.ens-chat-trigger {
    background-color: rgba(12, 12, 14, 0.96);
  }

  .ens-trust-card,
  .ens-faq__tabs,
  .ens-faq__item {
    background-color: rgba(255, 255, 255, 0.96);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .ens-trust-card,
  .ens-faq__tabs,
  .ens-faq__item {
    background: #ffffff;
    backdrop-filter: none;
  }

  .ens-exchange-card,
  #chatbot-panel.ens-chat-panel,
  #chatbot-trigger.ens-chat-trigger {
    background: #0a0a0c !important;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .ens-cinema-enter,
  #chatbot-panel.ens-chat-panel.is-open,
  .ens-chat-typing span {
    animation: none !important;
  }

  .ens-cinema-enter,
  #cotizador-express[data-fade-rise] #cotizador-box {
    opacity: 1 !important;
    transform: none !important;
  }

  .ens-faq__answer,
  .ens-faq__question svg,
  .ens-guide-link,
  #hero-section .ens-motion-button,
  #hero-section .ens-motion-link {
    transition-duration: 0.01ms !important;
  }
}
