/* --- RESET BASICO --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('web_images/fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* --- CONTENEDOR PRINCIPAL --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* --- CABECERA Y MENU --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

#logo {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background 0.3s;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #007bff;
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #007bff;
    cursor: pointer;
}

/* --- FLASH MESSAGES --- */
.flash-message {
    padding: 12px 20px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: 600;
}
.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- CONTENIDO GENERAL --- */
h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-left: 5px solid #007bff;
    padding-left: 10px;
}

h2 i {
    margin-right: 8px;
}

.highlighted-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #ddd;
}

/* --- SERVICIOS --- */
.service-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-box h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.service-box h3 i {
    margin-right: 8px;
}

/* --- CATALOGO --- */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.producto-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.producto-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.producto-info {
    padding: 15px;
}

.producto-info h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.precio {
    color: #007bff;
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0;
}

.btn-wa {
    display: inline-block;
    background-color: #25d366;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-wa:hover {
    background-color: #1da851;
    color: #fff;
}

.btn-wa i {
    margin-right: 5px;
}

/* --- GALERIA --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.galeria-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.galeria-item:hover {
    transform: scale(1.03);
}

.galeria-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

/* --- CONTACTO --- */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.contacto-info, .contacto-form {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.contacto-info h3, .contacto-form h3 {
    color: #007bff;
    margin-bottom: 20px;
}

.contacto-dato {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contacto-dato i {
    font-size: 24px;
    color: #007bff;
    margin-top: 3px;
}

.contacto-dato a {
    color: #007bff;
    text-decoration: none;
}

.contacto-dato a:hover {
    text-decoration: underline;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group label i {
    margin-right: 5px;
    color: #007bff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.btn-enviar {
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

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

.btn-enviar i {
    margin-right: 5px;
}

/* --- PIE DE PAGINA --- */
footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #eee;
    color: #666;
    font-size: 14px;
}

.social-icons {
    margin-bottom: 10px;
}

.social-icons a {
    color: #333;
    margin: 0 10px;
    transition: color 0.3s;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .contacto-wrapper {
        grid-template-columns: 1fr;
    }

    .catalogo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .catalogo-grid {
        grid-template-columns: 1fr;
    }
}
