/**
 * Sección Hero: Banner Panorámico Multi-Panel estilo Falabella (Escaparate Continuo).
 * Grid continuo de 5 columnas divididas por sutiles líneas arquitectónicas.
 * Columna 1 (20%): Panel de campaña con tipografía vertical limpia y botón píldora blanco.
 * Columnas 2, 3, 4, 5 (20% c/u): Cuadros con acercamiento macro a productos, zoom interactivo
 * y etiqueta dual de precio (Lime #C4F82A + White #FFFFFF).
 * Vista: app/Views/Sections/Hero/hero.php.
 */

.hero {
  position: relative;
  height: 440px;
  min-height: 400px;
  max-height: 480px;
  overflow: hidden;
  background: #120912;
}

.hero .swiper,
.hero .swiper-wrapper {
  height: 100%;
}

.hero .swiper-slide {
  height: 100%;
  display: block;
}

/* Grid continuo de paneles arquitectónicos: 5 columnas exactas como la referencia */
.hero-panels-grid {
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
  height: 100%;
  width: 100%;
  position: relative;
}

/* ---------- Panel 1: Editorial de Campaña (Izquierda) ---------- */
.panel-intro {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.6rem;
  background: #1A0D18;
  background-image:
    radial-gradient(circle at 18% 32%, rgba(255, 94, 167, 0.18) 0%, transparent 65%),
    linear-gradient(145deg, #251221 0%, #150914 55%, #1E0D1B 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 5;
}

.panel-intro-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.panel-intro-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(1.65rem, 2.05vw, 2.3rem);
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.panel-intro-title span {
  display: block;
}

/* Botón píldora blanco estilo referencia Falabella */
.panel-intro-btn {
  background: #FFFFFF;
  color: #111111 !important;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.52rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.panel-intro-btn:hover {
  background: #FF5EA7;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 94, 167, 0.45);
}

.panel-intro-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
}

.panel-intro-btn:hover svg {
  transform: translateX(3px);
}

/* ---------- Paneles 2, 3, 4, 5: Cuadros con Acercamiento Macro a Producto ---------- */
.panel-product {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: block;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.panel-product:last-child {
  border-right: none;
}

/* Fondo con acercamiento fotográfico continuo */
.panel-product-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.55s cubic-bezier(0.2, 1, 0.3, 1);
  transform: scale(1);
}

.panel-product:hover .panel-product-bg {
  transform: scale(1.08);
}

/* Degradado inferior para contraste y legibilidad */
.panel-product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 7, 13, 0.95) 0%,
    rgba(14, 7, 13, 0.52) 35%,
    rgba(14, 7, 13, 0.08) 65%,
    transparent 100%
  );
  z-index: 2;
  transition: background 0.3s ease;
}

.panel-product:hover .panel-product-overlay {
  background: linear-gradient(
    to top,
    rgba(14, 7, 13, 0.98) 0%,
    rgba(255, 94, 167, 0.18) 40%,
    transparent 100%
  );
}

/* Contenedor inferior de título y etiqueta dual */
.panel-product-content {
  position: absolute;
  bottom: 1.15rem;
  left: 0.85rem;
  right: 0.85rem;
  z-index: 3;
}

.panel-product-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  margin-bottom: 0.45rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Etiqueta Dual de Precio estilo Falabella ---------- */
.dual-price-tag {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

/* Caja Rosita / Fucsia Katrina's (#FF5EA7): Precio Selecto Mayorista */
.price-box-select {
  background: var(--color-primary, #FF5EA7);
  color: #FFFFFF;
  padding: 0.35rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.price-box-select .price-amount {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.price-box-select .price-label {
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.92);
}

/* Caja Blanca: Precio Normal o de Referencia */
.price-box-normal {
  background: #FFFFFF;
  color: #222222;
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.price-box-normal .price-normal-text {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  color: #333333;
  white-space: nowrap;
}

/* ---------- Controles del Carrusel (< y >) ---------- */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(18, 12, 20, 0.55);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-nav:hover {
  background: #FF5EA7;
  border-color: #FF5EA7;
  transform: translateY(-50%) scale(1.08);
}

.hero-nav-prev {
  left: calc(20% + 14px);
}

.hero-nav-next {
  right: 1rem;
}

.hero-pagination {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
}

.hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.45);
  width: 24px;
  height: 4px;
  border-radius: 2px;
  margin: 0 4px;
  transition: all 0.3s ease;
  opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: #FF5EA7;
  width: 38px;
  box-shadow: 0 0 14px rgba(255, 94, 167, 0.9);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-panels-grid {
    grid-template-columns: 24% 25.33% 25.33% 25.33%;
  }
  .panel-product:nth-child(5) {
    display: none; /* Mantener 3 productos legibles en pantallas medianas */
  }
}

@media (max-width: 860px) {
  .hero {
    height: auto;
    min-height: 420px;
    max-height: none;
  }

  .hero-panels-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .panel-intro {
    grid-column: 1 / -1;
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .panel-intro-content {
    align-items: center;
    text-align: center;
  }

  .panel-intro-title {
    margin-bottom: 1.2rem;
  }

  .panel-product {
    height: 250px;
  }

  .panel-product:nth-child(5) {
    display: block;
  }

  .hero-nav {
    display: none;
  }
}

@media (max-width: 540px) {
  .hero-panels-grid {
    grid-template-columns: 1fr;
  }

  .panel-product {
    height: 230px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

