/* Fuentes (igual que antes) */
@import url('https://fonts.cdnfonts.com/css/antipasto-pro');
@import url('https://fonts.cdnfonts.com/css/amsi-pro');

/* Estilos base (igual que antes) */
body {
    font-family: 'Amsi Pro', 'Montserrat', sans-serif;
    margin: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header (igual que antes) */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Antipasto Pro', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #3f3d56;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #3f3d56;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #9b9ece;
}

/* Hero Section (igual que antes) */
#hero {
    background: linear-gradient(to right, #9b9ece, #c3aed6);
    color: white;
    padding: 100px 0;
    text-align: center;
}

#hero h1 {
    font-family: 'Antipasto Pro', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-button {
    background-color: #3f3d56;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #2c2a3e;
}

/* Products Section (igual que antes) */
#products {
    padding: 80px 20px;
}

#products h2, #contact h2 {
    text-align: center;
    font-family: 'Antipasto Pro', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3f3d56;
}

#contact p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-card h3 {
    font-family: 'Antipasto Pro', sans-serif;
    color: #3f3d56;
}

/* NUEVA SECCIÓN DE CONTACTO */
#contact {
    padding: 80px 20px;
    background-color: #fff;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f4f4f9;
    padding: 30px;
    border-radius: 10px;
}

/* Footer (igual que antes) */
footer {
    background-color: #3f3d56;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Modal Styles (actualizados) */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

/* Estilos de Formularios (unificados) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Importante para el padding */
}

.form-group textarea {
    resize: vertical;
}

.hidden {
    display: none;
}

/* --- DISEÑO RESPONSIVO --- */

/* Tablets y Móviles Grandes */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    header .container {
        flex-direction: column;
    }

    nav {
        margin-top: 15px;
    }
}

/* Móviles Pequeños */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

    nav a {
        margin: 0 10px;
    }

    .modal-content {
        padding: 20px;
        margin: 20% auto;
    }
}