/* ============================================================
   GRUPO FERREIRA — C206 · pages/home.css
   Estilos exclusivos de index.html: hero slider y franja de marcas.
   Requiere las variables definidas en main.css.
   ============================================================ */

/* ── HERO SLIDER ───────────────────────────────────────────── */
/* Los banners traen texto incrustado: el contenedor replica su proporción
   (formato estándar 1920×900) y la imagen usa contain, así nunca se recorta. */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 900;
  background: #EEF2F7;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero-slide__sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-slider__arrow:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.06); }
.hero-slider__arrow--prev { left: 1.25rem; }
.hero-slider__arrow--next { right: 1.25rem; }
.hero-slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 1.1rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.hero-slider__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition), width var(--transition);
}
.hero-slider__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  width: 26px;
  border-radius: 6px;
}
@media (max-width: 768px) {
  /* El banner queda chico: sin flechas (hay swipe y autoplay) y los dots
     van en una franja debajo de la imagen para no tapar el texto. */
  .hero-slider { aspect-ratio: auto; height: calc(100vw * 900 / 1920 + 28px); }
  .hero-slide { bottom: 28px; }
  .hero-slider__arrow { display: none; }
  .hero-slider__dots { bottom: 9px; }
  .hero-slider__dot { width: 8px; height: 8px; background: var(--border); border-color: var(--border); }
  .hero-slider__dot.is-active { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ── FRANJA DE MARCAS ──────────────────────────────────────── */
.brands-strip {
  background: linear-gradient(180deg, var(--white) 0%, #F5F8FB 100%);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.brands-strip__head {
  text-align: center;
  margin-bottom: 3rem;
}
.brands-strip__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: .5rem;
}
.brands-strip__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0;
}
.brands-strip__lead {
  color: var(--text-light);
  max-width: 640px;
  margin: .9rem auto 0;
  font-size: 1.05rem;
}
.brands-strip__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

/* Divisor central con el logo de Grupo Ferreira */
.brands-strip__divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
}
.brands-strip__divider::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, var(--primary) 20%, var(--accent) 80%, transparent 100%);
  opacity: .5;
}
.brands-strip__divider-logo {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.brands-strip__divider-logo img { width: 100%; height: auto; object-fit: contain; }

/* Panel de marca */
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: opacity .6s ease, transform .6s ease, box-shadow var(--transition), border-color var(--transition);
}
.brand-panel--foz { border-top-color: var(--accent); }
.brand-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}
.brand-panel--foz:hover { border-color: var(--accent); }
.brand-panel__logo {
  display: flex;
  align-items: center;
  height: 96px;
  margin-bottom: 1.25rem;
}
.brand-panel__logo img { height: 100%; width: auto; max-width: 180px; object-fit: contain; }
.brand-panel__tagline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: .6rem;
}
.brand-panel__desc {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 1.1rem;
}
.brand-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
}
.brand-panel__chip {
  background: var(--gray-light);
  color: var(--gray);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 50px;
}
.brand-panel__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin-top: auto;
  margin-bottom: 1.5rem;
}
.brand-panel__visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #ECECEC;
  transition: transform var(--transition);
}
.brand-panel:hover .brand-panel__visual img { transform: scale(1.03); }
.brand-panel__cta {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--secondary);
}
.brand-panel--foz .brand-panel__cta { color: var(--accent-dark); }

@media (max-width: 1024px) {
  .brands-strip__grid { gap: 1.25rem; }
  .brands-strip__divider { width: 88px; }
  .brands-strip__divider-logo { width: 88px; height: 88px; padding: .85rem; }
  .brand-panel { padding: 1.75rem 1.5rem 1.5rem; }
}
@media (max-width: 900px) {
  .brands-strip { padding: 3.5rem 0; }
  .brands-strip__grid { grid-template-columns: 1fr; max-width: 560px; }
  .brands-strip__divider { width: 100%; height: 88px; }
  .brands-strip__divider::before {
    top: 50%; bottom: auto; left: 0; right: 0;
    width: auto; height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--accent) 80%, transparent 100%);
  }
}
@media (max-width: 480px) {
  .brand-panel__logo { height: 80px; }
  .brand-panel__visual { gap: .6rem; }
}
