/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 220px 0 0 0;
    background-color: white;
    color: #333;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #001220, #34b0a8, white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
}

.logo {
    width: 70%;
    height: auto;
    max-width: 300px;
    margin: 0 auto;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.nav-button {
    background-color: #81ef99;
    color: #001220;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #001220;
}

.nav-button:hover {
    background-color: #6acb82;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-item img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-item h3 {
    margin: 0;
    font-size: 1.1em;
    color: #001220;
}

/* Modal Styles */
.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);
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
}

#modal-img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

#modal-name {
    color: #001220;
    margin-bottom: 25px;
}

.modal-options {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.option {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 8px;
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option h3 {
    margin-top: 0;
    color: #34b0a8;
}

.option p {
    font-size: 1.2em;
    font-weight: bold;
    color: #001220;
    margin: 10px 0;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.whatsapp-button:hover {
    background-color: #1EBE57;
}

.whatsapp-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: #001220;
    padding: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 20%;
    height: auto;
    max-width: 150px;
    margin-bottom: 15px;
}

.back-to-top {
    background-color: #34b0a8;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: #2a8e86;
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .modal-content {
        width: 90%;
    }
    .modal-options {
        flex-direction: column;
    }
    .option {
        width: 100%;
        margin-bottom: 15px;
    }
    .nav-buttons {
        flex-wrap: wrap;
    }
    .nav-button {
        margin-bottom: 5px;
    }
}