/* app/static/css/home.css */

/* === 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;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

/* === AJUSTES CARRUSEL PRODUCTOS MÓVIL === */
#productosDestacadosCarousel .carousel-item {
  text-align: center;     
  padding-top: 25px;
  padding-bottom: 20px; /* Espacio para la sombra */
}



/* === 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;
}

.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-info {
  padding: 1rem 0.8rem;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.03);
  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: #2c3e50;
  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); 
}
.category-poster:hover .poster-img { transform: scale(1.08); }
.category-poster:hover .poster-title { color: #0d6efd; }
.category-poster:hover .poster-cta { color: #0d6efd; opacity: 1; }


/* === OFERTAS ESPECIALES (Split Design) === */
.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;
}

.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: #1e8bb2;
  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(41, 189, 239, 0.2);
}
.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: #333; text-decoration: none; transition: color 0.2s; }
.oferta-title a:hover { color: #29BDEF; }


/* === SECCIÓN QUIENES SOMOS / ESTADÍSTICAS === */
.blur-decoration { z-index: 0; pointer-events: none; }

.icon-circle {
  width: 32px; height: 32px;
  background-color: rgba(41, 189, 239, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-card {
  bottom: 20px; right: -20px;
  min-width: 200px;
  border-left: 4px solid #198754;
  z-index: 10;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

.hover-color { transition: all 0.3s ease; }
.hover-color:hover { filter: grayscale(0%) !important; opacity: 1 !important; transform: scale(1.05); }

@media (max-width: 991px) {
  .stat-card {
    right: 50%;
    transform: translateX(50%);
    bottom: -20px;
  }
  .animate-float { animation: none; }
}