/* =============================================
   Hero + Carrusel responsivo - SOLO EN HOME
   ============================================= */
.home-page .hero {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}
.home-page .carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.home-page .slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.home-page .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.home-page .slide.active {
  opacity: 1;
  z-index: 1;
}
.home-page .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.75));
  z-index: 1;
}
.home-page .slide-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 30px;
  width: 90%;
}
.home-page .slide h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.home-page .slide p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.home-page .btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
 
  color: white;
}
.home-page .btn.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.home-page .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.home-page .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}
.home-page .carousel-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}
.home-page .carousel-btn.prev { left: 20px; }
.home-page .carousel-btn.next { right: 20px; }

/* =============================================
   TARJETAS DE PRODUCTO - SOLO EN HOME
   ============================================= */
.home-page .five-columns {
    flex: 0 0 auto;
    width: 20%;
}
@media (max-width: 1200px) { .home-page .five-columns { width: 25%; } }
@media (max-width: 992px)  { .home-page .five-columns { width: 33.333%; } }
@media (max-width: 768px)  { .home-page .five-columns { width: 50%; } }
@media (max-width: 576px)  { .home-page .five-columns { width: 100%; } }

.home-page .product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.home-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border-color: transparent;
}
.home-page .product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f8f9fa;
    display: block;
}
.home-page .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.home-page .product-card:hover .product-image {
    transform: scale(1.05);
}
.home-page .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e63946;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Asegurar que estos estilos SOLO se apliquen dentro de .home-page */
.home-page .product-badge.offer { background: #ff9800; }
.home-page .product-badge.new { background: #4caf50; }
.home-page .product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.home-page .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.home-page .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 12px;
}
.home-page .product-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #95a5a6;
    text-decoration: line-through;
    margin-left: 8px;
}
.home-page .product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.home-page .btn-detail {
    flex: 1;
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.home-page .btn-detail:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}
.home-page .btn-add-cart {
    flex: 1;
    background: #0251a0;
    border: 2px solid #0251a0;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.home-page .btn-add-cart:hover:not(:disabled) {
    background: #e5051a;
    border-color: #e5051a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,204,113,0.3);
}
.home-page .btn-add-cart:disabled {
    background: #bdc3c7;
    border-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}
.home-page .btn-offer {
    background: #e5051a;
    border-color: #e5051a;
}
.home-page .btn-offer:hover:not(:disabled) {
    background: #0251a0;
    border-color: #0251a0;
}

@media (max-width: 768px) {
  .home-page .slide-content { padding: 20px; }
  .home-page .btn { padding: 12px 28px; font-size: 1rem; }
  .home-page .carousel-btn { width: 45px; height: 45px; font-size: 1.2rem; }
  .home-page .carousel-btn.prev { left: 10px; }
  .home-page .carousel-btn.next { right: 10px; }
}
@media (max-width: 480px) {
  .home-page .slide h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .home-page .slide p  { font-size: 1.1rem; margin-bottom: 1.5rem; }
}


/* Anular cualquier badge que esté fuera de home-page */
body:not(.home-page) .product-badge,
body:not(.home-page) .product-badge.new,
body:not(.home-page) .product-badge.offer,
body:not(.home-page) [class*="product-badge"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}