/* Estilos para la sección de ofertas - Tema Navideño */
.ofertas {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a3a2a 0%, #064428 100%);
    min-height: 100vh;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.producto-card {
    background: rgba(22, 90, 67, 0.45);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.61);
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(0);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.producto-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.producto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-image img {
    transform: scale(1.05);
}

.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.en-stock {
    background: #165a43;
    color: white;
    border: 1px solid #d4af37;
}

.stock-badge.sin-stock {
    background: #c41e3a;
    color: white;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c41e3a;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    animation: pulse 2s infinite;
    border: 1px solid #d4af37;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.producto-info {
    padding: 1.5rem;
}

.producto-titulo {
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 1rem;
    font-weight: 600;
}

.producto-precio {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.precio-actual {
    font-size: 1.8rem;
    font-weight: bold;
    color: #cbcbcb;
}

.precio-original {
    font-size: 1.2rem;
    color: #adbbbc;
    text-decoration: line-through;
}

.producto-acciones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-detalles, .btn-comprar {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-detalles {
    background: #c41e3a;
    color: white;
    border: 1px solid #d4af37;
}

.btn-detalles:hover {
    background: #a01628;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-comprar {
    background: #165a43;
    color: white;
    border: 1px solid #d4af37;
}

.btn-comprar:hover {
    background: #0a3a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-comprar.sin-stock {
    background: #95a5a6;
    cursor: not-allowed;
    border: 1px solid #7f8c8d;
}

.btn-comprar.sin-stock:hover {
    background: #95a5a6;
    transform: none;
    box-shadow: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: rgba(10, 58, 42, 0.95);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #d4af37;
    transition: color 0.3s ease;
}

.close:hover {
    color: #c41e3a;
}

#modalTitulo {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#modalPrecio {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#modalDescripcion {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-comprar-modal {
    background: #165a43;
    color: white;
    border: 2px solid #d4af37;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-comprar-modal:hover {
    background: #0a3a2a;
    transform: translateY(-2px);
    box-shadow: 0 0px 20px rgba(212, 175, 55, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ofertas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .producto-card {
        margin: 0 10px;
    }
    
    .producto-acciones {
        flex-direction: column;
    }
    
    .btn-detalles, .btn-comprar {
        min-width: auto;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ofertas {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .producto-titulo {
        font-size: 1.1rem;
    }
    
    .precio-actual {
        font-size: 1.5rem;
    }
    
    .precio-original {
        font-size: 1rem;
    }
}

/* Animaciones adicionales */
.producto-card {
    animation: fadeInUp 0.6s ease forwards;
}

.producto-card:nth-child(1) { animation-delay: 0.1s; }
.producto-card:nth-child(2) { animation-delay: 0.2s; }
.producto-card:nth-child(3) { animation-delay: 0.3s; }
.producto-card:nth-child(4) { animation-delay: 0.4s; }
.producto-card:nth-child(5) { animation-delay: 0.5s; }
.producto-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}