/* ================================================
   INDEX.CSS — Página principal limpia
================================================ */

.index-page {
  margin: 0;
  padding: 0;
  background: #f3f4f6;
}

/* HEADER */
.index-page .topbar__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}

.index-page .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.index-page .brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.index-page .brand h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--vino);
  font-size: 19px;
  margin: 0;
  white-space: nowrap;
}

/* LOGO CARRUSEL */
.index-page .brand-logo-carousel {
  position: relative;
  overflow: hidden;
}

.index-page .brand-logo-carousel .brand-logo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .6s ease;
}

.index-page .brand-logo-carousel .brand-logo-slide:first-child,
.index-page .brand-logo-carousel .brand-logo-slide.active {
  opacity: 1;
}

/* ICONOS */
.index-page .index-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.index-page .index-img-btn {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  border: 2px solid #7A1737;
  cursor: pointer;
  display: block;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.index-page .index-img-btn:hover {
  transform: scale(1.08);
}

/* HERO */
.index-page .hero.hero--carousel {
  position: relative;
  width: 100%;
  height: 440px;
  margin: 0;
  overflow: hidden;
}

.index-page .carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.index-page .carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .45s ease-in-out;
}

.index-page .carousel__slide.active {
  opacity: 1;
  z-index: 1;
}

.index-page .carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(122,23,55,.55) 0%,
    rgba(122,23,55,.36) 48%,
    rgba(122,23,55,.50) 100%
  );
  z-index: 2;
}

.index-page .hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.index-page .hero__content h1 {
  margin: 0 0 10px;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
}

.index-page .hero__content p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.45;
  color: #fff;
  max-width: 720px;
}

/* DOTS */
.index-page .carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 10px;
}

.index-page .carousel__dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,.65);
  cursor: pointer;
}

.index-page .carousel__dots button.active {
  background: #fff;
  transform: scale(1.18);
}

/* TARJETAS */
.index-page .section {
  padding-top: 44px;
  padding-bottom: 44px;
  background: #f3f4f6;
}

.index-page .cards-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}

.index-page .feature-card {
  width: 320px;
  max-width: 320px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  padding: 32px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.index-page .feature-card h3 {
  color: var(--vino);
  font-size: 22px;
  margin-bottom: 14px;
}

.index-page .feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.index-page .feature-card .btn {
  width: 100%;
  min-height: 46px;
}

/* FOOTER */
.index-page .footer__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 62px;
}

/* TABLET */
@media (max-width: 1100px) {
  .index-page .hero.hero--carousel {
    height: 400px;
  }

  .index-page .hero__content h1 {
    font-size: 44px;
  }

  .index-page .feature-card {
    max-width: 300px;
  }

  .index-page .cards-grid {
    gap: 16px;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .index-page .topbar__inner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 16px !important;
    min-height: auto !important;
    gap: 10px !important;
  }

  .index-page .brand {
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .index-page .brand__logo {
    width: 42px;
    height: 42px;
  }

  .index-page .brand h2 {
    font-size: 16px;
  }

  .index-page .index-actions {
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .index-page .index-img-btn {
    width: 36px;
    height: 36px;
    padding: 5px;
  }

  .index-page .hero.hero--carousel {
    height: 300px;
  }

  .index-page .hero__content {
    align-items: center;
    text-align: center;
    padding-bottom: 44px;
  }

  .index-page .hero__content h1 {
    font-size: 30px;
  }

  .index-page .hero__content p {
    font-size: 15px;
  }

  .index-page .section {
    padding: 26px 12px;
  }

  .index-page .cards-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .index-page .feature-card {
    width: 160px !important;
    max-width: 160px !important;
    min-height: 220px !important;
    padding: 18px 12px !important;
  }

  .index-page .feature-card:nth-child(3) {
    width: 200px !important;
    max-width: 200px !important;
  }

  .index-page .feature-card h3 {
    font-size: 19px;
  }

  .index-page .feature-card p {
    font-size: 11px;
    min-height: 70px;
  }

  .index-page .feature-card .btn {
    width: auto;
    min-height: 36px;
    font-size: 11px;
    padding: 0 12px;
  }

  .index-page .footer__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 14px 16px;
  }
}

/* CELULAR PEQUEÑO */
@media (max-width: 480px) {
  .index-page .hero.hero--carousel {
    height: 240px;
  }

  .index-page .hero__content h1 {
    font-size: 26px;
  }

  .index-page .hero__content p {
    font-size: 14px;
  }

  .index-page .index-img-btn {
    width: 30px;
    height: 30px;
  }

  .index-page .feature-card {
    width: 145px !important;
    max-width: 145px !important;
  }

  .index-page .feature-card:nth-child(3) {
    width: 190px !important;
    max-width: 190px !important;
  }
}