/* app/static/css/home.css */

/* === VARIABLES DE MARCA === */
:root {
  --taca-navy: #0A1F44;
  --taca-blue: #1E3A6E;
  --taca-red: #C62828;
  --taca-white: #FAFAFA;
}

/* === HERO CARROUSEL === */
.hero-frame.full-width-hero {
  border-radius: 0 !important;
  margin: 0 !important;
  height: auto;
}

.hero-img {
  width: 100%;
  height: auto !important;
  object-fit: contain;
}

.banner-medio-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Indicadores personalizados */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.5;
  border: 2px solid var(--taca-navy);
  transition: all 0.3s;
}
.carousel-indicators .active {
  opacity: 1;
  background-color: var(--taca-red);
  border-color: var(--taca-red);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* === AJUSTES CARRUSEL PRODUCTOS MÓVIL === */
#productosDestacadosCarousel .carousel-item {
  text-align: center;
  padding-top: 25px;
  padding-bottom: 20px;
}

/* === SECTION DIVIDER (Para títulos de sección) === */
.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--taca-red), var(--taca-navy));
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* === CATEGORÍAS TIPO POSTER === */
.category-poster {
  position: relative;
  border-radius: 16px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(10, 31, 68, 0.07);
}

.poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: #f0f2f5;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 68, 0.25) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.poster-info {
  padding: 1rem 0.8rem;
  text-align: center;
  border-top: 2px solid rgba(198, 40, 40, 0.08);
  background: white;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poster-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--taca-navy);
  margin-bottom: 4px;
  text-transform: capitalize;
}

.poster-cta {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
  opacity: 0.8;
  transition: color 0.3s;
}

/* Hover Categoría */
.category-poster:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: var(--taca-red);
}
.category-poster:hover .poster-img { transform: scale(1.08); }
.category-poster:hover .poster-overlay { opacity: 1; }
.category-poster:hover .poster-title { color: var(--taca-red); }
.category-poster:hover .poster-cta { color: var(--taca-red); opacity: 1; }


/* === OFERTAS ESPECIALES === */
.oferta-card-wrapper {
  position: relative;
}

.oferta-visual {
  display: flex;
  width: 100%;
  height: 200px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(10, 31, 68, 0.06);
}

.oferta-img-side {
  flex: 1;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.oferta-img-side img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.oferta-discount-side {
  width: 80px;
  background-color: var(--taca-red);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.discount-percent { font-size: 1.4rem; line-height: 1; font-weight: 800; }
.discount-label { font-size: 0.8rem; opacity: 0.9; margin-top: 4px; }

.oferta-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(198, 40, 40, 0.2);
  border-color: var(--taca-red);
}
.oferta-visual:hover .oferta-img-side img { transform: scale(1.05); }

.oferta-info { padding: 0 4px; }
.oferta-title { font-size: 1rem; margin-bottom: 0.5rem; font-weight: 600; white-space: normal; line-height: 1.4; }
.oferta-title a { color: var(--taca-navy); text-decoration: none; transition: color 0.2s; }
.oferta-title a:hover { color: var(--taca-red); }


/* === ESTILOS BENTO GRID (Sección Nosotros) === */

.hover-up {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hover-up:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1) !important;
}

.grayscale {
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.grayscale:hover {
  filter: grayscale(0%);
}

.ls-2 {
  letter-spacing: 2px;
}

/* Ajustes para los bloques oscuros (bg-dark) */
.rounded-4 {
  border-radius: 20px !important;
}

/* === BADGES DE EQUIPOS (Jugadores Pintados) === */
.badge-team {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}

/* Colo-Colo: Blanco y Negro */
.badge-team--colocolo {
  background: #fff;
  color: #1A1A1A;
  border-color: #ccc;
}

/* U. de Chile: Azul y Rojo */
.badge-team--udechile {
  background: #1E3A6E;
  color: #fff;
  border-color: #C62828;
}

/* U. Católica: Blanco y Azul (cruzado) */
.badge-team--ucatolica {
  background: #fff;
  color: #1E3A6E;
  border-color: #1E3A6E;
}

/* Selección Chile: Rojo */
.badge-team--chile {
  background: #C62828;
  color: #fff;
  border-color: #0A1F44;
}

/* Selección Brasil: Amarillo y Verde */
.badge-team--brasil {
  background: #F9A825;
  color: #1A1A1A;
  border-color: #2E7D32;
}

/* Hover suave en badges */
.badge-team:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}

/* ============================================================
   RESPONSIVE: Texto del bloque oscuro en móvil ocupa 100%
   ============================================================ */
@media (max-width: 767px) {
  .display-3 {
    font-size: 2rem;
  }
  .lead.w-75 {
    width: 100% !important;
  }
  
  /* Badges de equipos: que se apilen bien en móvil */
  .badge-team {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .display-3 {
    font-size: 2rem;
  }
  .lead.w-75 {
    width: 100% !important;
  }
}