/* ======================================================
   HERO – EDITORIAL / CAROUSEL (ESTABLE)
   SINTEGRAD – Alarmas
   ====================================================== */

.hero {
  position: relative;
  height: clamp(580px, 80vh, 720px); /* Ajustado para integrar Brand Strip */
  min-height: 580px;
  max-height: 768px;
  overflow: hidden;
  background: #000;
}

/* ================= SLIDES ================= */

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ================= BACKGROUND ================= */

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.18),
    rgba(0,0,0,0.55)
  );
}

/* ================= CONTENT ================= */

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 960px;
  margin-left: 0;
  margin-right: auto;
  padding: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(5rem, 12vh, 7rem);
  display: grid;
  align-content: start;
  color: #fff;
}

/* ================= COPY ================= */

.hero-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* ===== NUEVO: H1 CENTRADO EN DESKTOP ===== */
.hero-h1-centered {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-content p {
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.82;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* CTA usa btn-primary de components.css */
.hero-content .btn-primary {
  max-width: 240px;
}

/* ====================================================== MOBILE ====================================================== */
@media (max-width: 768px) {
  .hero { height: auto; min-height: 100vh; max-height: none; }
  .hero-content { padding: 4rem 1.5rem; max-width: 100%; }
  .hero-content p { max-width: none; }
  
  /* H1 centrado también en mobile */
  .hero-h1-centered {
    max-width: 100%;
    text-align: center;
  }
}

/* ======================================================
   HERO MOBILE – IMÁGENES PORTRAIT (m_promo_X)
   Reemplaza las widescreen por las versiones 1080×1920
   ====================================================== */
@media (max-width: 768px) {
  /* Slide 1 */
  .hero-slide:nth-child(1) .hero-bg {
    background-image: url('/inicio/assets/img/inicio/hero/m_promo_1.webp') !important;
    background-position: center top;
  }
  /* Slide 2 */
  .hero-slide:nth-child(2) .hero-bg {
    background-image: url('/inicio/assets/img/inicio/hero/m_promo_2.webp') !important;
    background-position: center top;
  }
  /* Slide 3 */
  .hero-slide:nth-child(3) .hero-bg {
    background-image: url('/inicio/assets/img/inicio/hero/m_promo_3.webp') !important;
    background-position: center top;
  }
}
/* ======================================================
   HERO – AJUSTE FINO MOBILE (ULTRA PREMIUM)
   Reduce peso visual sin perder jerarquía
   ====================================================== */

@media (max-width: 768px) {

  /* Contenedor general: un poco más de aire */
  .hero-content {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* H1 – bajar MUCHO tamaño, conservar autoridad */
  .hero-content h1 {
    font-size: clamp(1.85rem, 6.2vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-weight: 700; /* antes 800 */
  }

  /* Subcopy – apenas más discreto */
  .hero-content p {
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.78;
  }

  /* CTA – más fino, menos "botón publicitario" */
  .hero-content .btn-primary {
    height: 40px;
    padding: 0 22px;
    font-size: 0.88rem;
    max-width: 220px;
  }

}
/* ======================================================
   HERO MOBILE – AJUSTE DE ALTURA PARA MOSTRAR BRAND STRIP
   ====================================================== */
@media (max-width: 768px) {
  .hero {
    min-height: 88vh; /* antes 100vh */
  }
}
/* ======================================================
   HERO MOBILE – REFINAMIENTO TIPOGRÁFICO PREMIUM
   ====================================================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  .hero-content p {
    font-size: 0.92rem;
    opacity: 0.78;
  }

  .hero-content .btn-primary {
    height: 40px;
    font-size: 0.85rem;
  }
}
/* ======================================================
   HERO DESKTOP – RECUPERAR BALANCE COPY vs RENDER
   Ajuste editorial de peso visual
   ====================================================== */
@media (min-width: 1024px) {

  .hero-content {
    max-width: 1100px; /* antes 960px */
  }

  .hero-content h1 {
    font-size: clamp(3.2rem, 4.8vw, 4.6rem);
    line-height: 1.04;
  }

  .hero-content p {
    max-width: 640px;   /* antes 520px */
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.85;
  }

}

/* ===== AJUSTE: H1 alineado + cortes más parejos ===== */
.hero-h1-centered{
  text-align:left !important;
  max-width:18ch;
  margin-left:0 !important;
}
