/* Portada de Nuestras marcas: escena del portafolio y contenido real del CMS. */
.brands-hero.brands-hero-v2 {
  position:relative;
  isolation:isolate;
  min-height:clamp(39rem,44.65vw,52rem);
  padding:0 !important;
  overflow:hidden;
  color:#0b2c52;
  background:#f3f0f6;
}
.brands-hero.brands-hero-v2::before,
.brands-hero.brands-hero-v2::after { content:none !important; }
.brands-hero-scene,
.brands-hero-veil {
  position:absolute;
  inset:0;
}
.brands-hero-scene {
  z-index:-3;
  background-color:#f3f0f6;
  background-image:url("../brands-hero/nuestras-marcas-claro-final.png");
  background-image:-webkit-image-set(url("../brands-hero/nuestras-marcas-claro-final.avif") type("image/avif"),url("../brands-hero/nuestras-marcas-claro-final.png") type("image/png"));
  background-image:image-set(url("../brands-hero/nuestras-marcas-claro-final.avif") type("image/avif"),url("../brands-hero/nuestras-marcas-claro-final.png") type("image/png"));
  background-position:center bottom;
  background-repeat:no-repeat;
  background-size:100% auto;
}
.brands-hero-scene::after {
  content:none;
}
.brands-hero-veil {
  z-index:-2;
  pointer-events:none;
  background:linear-gradient(90deg,
    rgba(247,245,249,.98) 0%,
    rgba(247,245,249,.93) 27%,
    rgba(247,245,249,.65) 37%,
    rgba(247,245,249,.18) 45%,
    transparent 51%);
}
.brands-hero-shell.container {
  position:relative;
  z-index:1;
  width:100%;
  max-width:none;
  min-height:inherit;
  padding:clamp(1.35rem,2.6vw,2.5rem) clamp(1.5rem,5.35vw,5.4rem) clamp(2rem,3.4vw,3.25rem);
  display:grid;
  grid-template-rows:auto 1fr;
}
.brands-hero .brands-hero-breadcrumb {
  margin:0;
  padding:0;
  color:#405775;
  font-size:clamp(.94rem,1vw,1.08rem);
  line-height:1.5;
  opacity:1;
}
.brands-hero .brands-hero-breadcrumb a { color:inherit; }
.brands-hero .brands-hero-heading {
  align-self:center;
  width:min(38rem,38.5vw);
  max-width:none;
  margin:0;
  padding:clamp(1.4rem,2.7vh,2.3rem) 0 1.4rem;
  position:relative;
  z-index:1;
  text-align:left;
  transform:translateY(-2.25rem);
}
.brands-hero .brands-hero-heading .eyebrow {
  display:block;
  margin:0 0 clamp(1.25rem,2.3vh,1.9rem);
  color:#4b35d4;
  font-size:clamp(.75rem,.86vw,.92rem);
  font-weight:750;
  letter-spacing:.23em;
  line-height:1.45;
  text-transform:uppercase;
}
.brands-hero.brands-hero-v2 h1 {
  max-width:8.8em;
  margin:0 0 clamp(1.4rem,2.4vh,2.1rem);
  color:#0b2c52;
  font-size:clamp(3.25rem,4.45vw,5rem);
  font-weight:800;
  letter-spacing:-.058em;
  line-height:.99;
  white-space:pre-line;
  text-wrap:balance;
}
.brands-hero .brands-hero-heading > p {
  max-width:35rem;
  margin:0 0 clamp(1.1rem,1.8vh,1.5rem);
  color:#405775;
  font-size:clamp(1rem,1.16vw,1.28rem);
  line-height:1.55;
  opacity:1;
}
.brands-hero .brands-cta-row {
  margin:0;
  display:flex;
  justify-content:flex-start;
}
.brands-hero .brands-down {
  width:max-content;
  max-width:100%;
  min-height:4.15rem;
  margin:0;
  padding:.85rem 1.1rem .85rem 1.55rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:1.35rem;
  border:1px solid transparent;
  border-radius:.75rem;
  color:#fff;
  background:#4b35d4;
  box-shadow:0 .8rem 1.8rem rgba(75,53,212,.18);
  font-size:clamp(.98rem,1.08vw,1.14rem);
  font-weight:750;
  text-decoration:none;
  transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.brands-hero .brands-down > span {
  width:2.35rem;
  height:2.35rem;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.72);
  border-radius:50%;
  font-size:1.28rem;
  line-height:1;
}
.brands-hero .brands-down:hover {
  transform:translateY(-2px);
  background:#3c27bd;
  box-shadow:0 1rem 2.1rem rgba(75,53,212,.25);
}

html[data-theme="dark"] .brands-hero.brands-hero-v2 {
  color:#f7f5ff;
  background:#11102b;
}
html[data-theme="dark"] .brands-hero-scene {
  background-color:#11102b;
  background-image:url("../brands-hero/nuestras-marcas-oscuro.png");
  background-image:-webkit-image-set(url("../brands-hero/nuestras-marcas-oscuro.avif") type("image/avif"),url("../brands-hero/nuestras-marcas-oscuro.png") type("image/png"));
  background-image:image-set(url("../brands-hero/nuestras-marcas-oscuro.avif") type("image/avif"),url("../brands-hero/nuestras-marcas-oscuro.png") type("image/png"));
}
html[data-theme="dark"] .brands-hero-scene::after { content:none; }
html[data-theme="dark"] .brands-hero-veil {
  background:linear-gradient(90deg,
    rgba(17,16,43,.98) 0%,
    rgba(17,16,43,.94) 28%,
    rgba(17,16,43,.68) 38%,
    rgba(17,16,43,.20) 46%,
    transparent 52%);
}
html[data-theme="dark"] .brands-hero .brands-hero-breadcrumb { color:#d4d1e4; }
html[data-theme="dark"] .brands-hero .brands-hero-heading .eyebrow { color:#b9a9ff; }
html[data-theme="dark"] .brands-hero.brands-hero-v2 h1 { color:#f8f6ff; }
html[data-theme="dark"] .brands-hero .brands-hero-heading > p { color:#d6d3e4; }
html[data-theme="dark"] .brands-hero .brands-down {
  color:#17112e;
  background:#b8a7ff;
  box-shadow:0 .9rem 2rem rgba(0,0,0,.28);
}
html[data-theme="dark"] .brands-hero .brands-down > span { border-color:rgba(23,17,46,.55); }
html[data-theme="dark"] .brands-hero .brands-down:hover { background:#d0c4ff; }

@media (max-width:1100px) and (min-width:701px) {
  .brands-hero.brands-hero-v2 { min-height:37rem; }
  .brands-hero .brands-hero-heading { width:41%; padding-top:1rem; transform:translateY(-2rem); }
  .brands-hero.brands-hero-v2 h1 { font-size:clamp(2.75rem,5.2vw,3.65rem); }
  .brands-hero .brands-hero-heading > p { font-size:clamp(.98rem,1.7vw,1.12rem); line-height:1.48; }
  .brands-hero .brands-down { min-height:3.65rem; padding:.72rem .9rem .72rem 1.2rem; gap:1rem; }
  .brands-hero .brands-down > span { width:2rem; height:2rem; }
}

@media (max-width:700px) {
  .brands-hero.brands-hero-v2 {
    min-height:clamp(52rem,106svh,56rem);
  }
  .brands-hero-scene {
    background-color:#f1eff6;
    background-image:url("../brands-hero/nuestras-marcas-movil-claro.png");
    background-image:-webkit-image-set(url("../brands-hero/nuestras-marcas-movil-claro.avif") type("image/avif"),url("../brands-hero/nuestras-marcas-movil-claro.png") type("image/png"));
    background-image:image-set(url("../brands-hero/nuestras-marcas-movil-claro.avif") type("image/avif"),url("../brands-hero/nuestras-marcas-movil-claro.png") type("image/png"));
    background-position:center bottom;
    background-size:100% auto;
  }
  .brands-hero-scene::after { content:none; }
  .brands-hero-veil {
    background:linear-gradient(180deg,
      rgba(247,245,249,.98) 0%,
      rgba(247,245,249,.95) 40%,
      rgba(247,245,249,.70) 52%,
      rgba(247,245,249,.10) 63%,
      transparent 71%);
  }
  .brands-hero-shell.container {
    padding:1.25rem clamp(1.2rem,5.6vw,1.65rem) 2rem;
  }
  .brands-hero .brands-hero-breadcrumb { font-size:.92rem; }
  .brands-hero .brands-hero-heading {
    align-self:start;
    width:100%;
    padding:clamp(1.6rem,4vh,2.35rem) 0 0;
    transform:translateY(-.75rem);
  }
  .brands-hero .brands-hero-heading .eyebrow {
    margin-bottom:.85rem;
    font-size:.7rem;
    letter-spacing:.21em;
  }
  .brands-hero.brands-hero-v2 h1 {
    max-width:8.4em;
    margin-bottom:1rem;
    font-size:clamp(2.55rem,11vw,3.18rem);
    line-height:.98;
  }
  .brands-hero .brands-hero-heading > p {
    max-width:33rem;
    margin-bottom:1rem;
    font-size:clamp(.96rem,4.25vw,1.08rem);
    line-height:1.46;
  }
  .brands-hero .brands-down {
    min-height:3.55rem;
    padding:.68rem .8rem .68rem 1.15rem;
    gap:.95rem;
    font-size:.96rem;
  }
  .brands-hero .brands-down > span { width:2rem; height:2rem; font-size:1.08rem; }
  html[data-theme="dark"] .brands-hero-scene {
    background-color:#11102b;
    background-image:url("../brands-hero/nuestras-marcas-movil-oscuro.png");
    background-image:-webkit-image-set(url("../brands-hero/nuestras-marcas-movil-oscuro.avif") type("image/avif"),url("../brands-hero/nuestras-marcas-movil-oscuro.png") type("image/png"));
    background-image:image-set(url("../brands-hero/nuestras-marcas-movil-oscuro.avif") type("image/avif"),url("../brands-hero/nuestras-marcas-movil-oscuro.png") type("image/png"));
  }
  html[data-theme="dark"] .brands-hero-veil {
    background:linear-gradient(180deg,
      rgba(17,16,43,.98) 0%,
      rgba(17,16,43,.94) 41%,
      rgba(17,16,43,.70) 53%,
      rgba(17,16,43,.12) 64%,
      transparent 72%);
  }
}

@media (max-width:390px) {
  .brands-hero.brands-hero-v2 { min-height:54rem; }
  .brands-hero.brands-hero-v2 h1 { font-size:clamp(2.35rem,10.8vw,2.8rem); }
  .brands-hero .brands-hero-heading > p { font-size:.96rem; }
}

@media (prefers-reduced-motion:reduce) {
  .brands-hero .brands-down { transition:none; }
}

/* Una imagen elegida en el Admin reemplaza solo la escena; el copy y el CTA siguen vivos. */
.brands-hero-scene.has-uploaded-image,
html[data-theme="dark"] .brands-hero-scene.has-uploaded-image {
  overflow:hidden;
  background:none !important;
}
.brands-hero-scene.has-uploaded-image::after,
html[data-theme="dark"] .brands-hero-scene.has-uploaded-image::after {
  content:none;
}
.brands-hero-scene.has-uploaded-image .interior-uploaded-image {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:0;
}
