/* style.css - Estilos principales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('https://aeterna.click/imgs/fondo.png');
}

/* Navegación */
.navbar {
background-color: rgba(255, 255, 255, 0);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    background-color: rgba(255, 255, 255, 0);
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    opacity: 1;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: white;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #007bff;
}

/* Barra de categorías */
.categorias-bar {
    margin-top: 150px;
    background-color: rgba(255, 255, 255, 0);
    padding: 15px 0;
}

.categorias-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.categoria-btn {
    padding: 8px 16px;
    background: #2B2A26;
    cursor: pointer;
    transition: all 0.3s;
}

.categoria-btn:hover,
.categoria-btn.active {
    background: #007bff;
    color: white;
}

/* Galería de productos */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.producto-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-img {
    height: 200px;
    overflow: hidden;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.producto-card:hover .producto-img img {
    transform: scale(1.1);
}

.producto-info {
    padding: 20px;
}

.producto-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.producto-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.producto-precio {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.btn-vermas {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 50%;
    transition: background 0.3s;
}

.btn-vermas:hover {
    background: #0056b3;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Contacto */
.contacto-section {
    background-color: rgba(255, 255, 255, 0);
    padding: 60px 20px;
    margin-top: 50px;
}

.contacto-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contacto-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.contacto-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.btn-enviar {
    background: #0F353C;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
}

.btn-enviar:hover {
    background: #0056b3;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p,
.footer-section a {
    color: white;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid #34495e;
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .categorias-bar {
        margin-top: 220px;
    }
    
    .contacto-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}