/* ===== HERO SECTION ===== */
.products-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/products-bg.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 8rem 0 6rem;
    margin-top: 72px;
}

.products-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.products-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== CONTROLES DE FILTRADO ===== */
.products-controls {
    background: var(--light-color);
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.controls-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.search-box {
    flex: 2;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    font-size: 1rem;
    padding-right: 3rem;
}

.search-box button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.custom-select {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    font-size: 0.9rem;
    background-color: white;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* ===== CATÁLOGO DE PRODUCTOS ===== */
.products-catalog {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-price .old-price {
    text-decoration: line-through;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.7rem;
    font-size: 0.9rem;
}

/* ===== PAGINACIÓN ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-pagination {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gray-light);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pagination:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.promo-content {
    max-width: 800px;
    margin: 0 auto;
}

.promo-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.promo-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
}

/* ===== MODAL DE PRODUCTO ===== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 3rem auto;
    max-width: 900px;
    width: 90%;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    height: 350px;
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.rating {
    color: #ffc107;
    margin-bottom: 1.5rem;
}

.rating i {
    margin-right: 0.2rem;
}

.description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

#product-qty {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-light);
    border-right: 1px solid var(--gray-light);
    padding: 0.3rem;
}

.product-meta {
    border-top: 1px solid var(--gray-light);
    padding-top: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .controls-grid {
        flex-direction: column;
    }
    
    .search-box, .filters {
        width: 100%;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 250px;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ESTILOS DEL FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--gray-light);
    padding: 4rem 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-col ul li:hover {
    transform: translateX(5px);
}

.footer-col a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-col i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col {
        margin-bottom: 1.5rem;
    }
    
    .footer-col h3 {
        margin-bottom: 1rem;
    }
}