/* Estilos para el catálogo de productos */
.productos-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.productos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.producto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.producto-imagen {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: white;
    padding: 20px;
}

.producto-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.producto-nombre {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    flex-grow: 1;
}

.btn-ver-mas {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.btn-ver-mas:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

/* Filtros de categoría */
.categorias-filtro {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.categoria-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 30px;
    margin: 0 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.categoria-btn.active,
.categoria-btn:hover {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Responsive */
@media (max-width: 1199px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .producto-card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
}

/* Product Detail Modal */
.producto-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.producto-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.producto-modal.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: #c0392b;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-details {
    padding: 30px;
    background: white;
}

.product-category {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 20px;
    font-weight: 700;
}

.product-section {
    margin-bottom: 25px;
}

.product-section h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-section h3 i {
    color: #e74c3c;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.spec-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.spec-value {
    color: #495057;
}

.usage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #495057;
}

.usage-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

.btn-close-modal {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-close-modal:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Responsive styles for modal */
@media (max-width: 992px) {
    .modal-container {
        width: 95%;
        margin: 2.5vh auto;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal-gallery {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-whatsapp,
    .btn-close-modal {
        width: 100%;
    }
}
