/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a252f; /* Azul oscuro elegante */
    --secondary: #27ae60; /* Verde Nova */
    --text: #333;
    --gray-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
    overflow-x: hidden;
}

/* --- CLASES DE UTILIDAD --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--gray-light);
}

/* --- NAV BAR --- */
nav {
    background-color: var(--primary);
    min-height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    width: 50%;
    justify-content: flex-end;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px;
    transition: 0.3s;
}

/* --- HERO SLIDER --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active { opacity: 1; }

.content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
}

.content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #219150;
    transform: translateY(-2px);
}

.slider-buttons button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s;
}

.slider-buttons button:hover { background: rgba(255,255,255,0.4); }
#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

/* --- TÍTULOS DE SECCIÓN --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--secondary);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

/* --- SECCIÓN QUIÉNES SOMOS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p { margin-bottom: 15px; }

.about-list { list-style: none; margin-top: 20px; }
.about-list li { margin-bottom: 10px; font-weight: 500; }
.about-list i { color: var(--secondary); margin-right: 10px; }

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* --- SECCIÓN SERVICIOS (ATENDEMOS A) --- */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.service-card:hover { transform: translateY(-5px); }
.service-card i { color: var(--secondary); margin-bottom: 15px; }
.service-card h3 { color: var(--primary); font-size: 1.1rem; }

/* --- SECCIÓN MARCAS --- */
.logos-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.logo-item {
    color: #888;
    font-weight: bold;
    transition: 0.3s;
}
.logo-item:hover { color: var(--primary); transform: scale(1.1); }

/* --- SECCIÓN CONTACTO Y FORMULARIO --- */
.contact-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info p { margin-bottom: 15px; font-size: 1.1rem; }
.contact-info i { color: var(--secondary); width: 25px; }

.social-icons { margin-top: 30px; }
.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: 0.3s;
}
.social-icons a:hover { color: var(--secondary); }

/* Formulario */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    color: var(--text);
}

.contact-form h3 { color: var(--primary); margin-bottom: 20px; text-align: center; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-submit:hover { background: #219150; }

/* --- SECCIÓN PRODUCTOS (GRILLA) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

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

.card-image {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

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

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

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 62, 80, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.card:hover .card-overlay { opacity: 1; }

.card-overlay span {
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.card-content { padding: 25px; text-align: center; }
.card-content h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.25rem; }
.card-content p { color: #666; font-size: 0.9rem; }

/* --- BOTONES FLOTANTES --- */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.float-wa:hover { transform: scale(1.1); }

#myBtn {
    display: none;
    position: fixed;
    bottom: 90px; /* Arriba del WhatsApp */
    right: 25px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    box-shadow: 2px 2px 3px #999;
}

#myBtn:hover { background-color: #555; }

/* --- FOOTER --- */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5vh auto;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    animation: slideUp 0.4s;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--primary);
    padding: 20px;
    text-align: center;
}

.modal-header h2 { color: white; font-size: 1.5rem; margin: 0; }

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.lista-bonita { list-style: none; }
.lista-bonita li {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    color: #444;
}
.lista-bonita li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.modal-footer {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.btn-cerrar {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.close {
    position: absolute;
    right: 20px; top: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    cursor: pointer;
}
.close:hover { color: white; }

@keyframes slideUp {
    from {transform: translateY(100px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: var(--primary);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
    }

    .nav-links li { margin: 20px 0; opacity: 0; }
    
    .burger { display: block; }
    .nav-active { transform: translateX(0%); }

    .content h1 { font-size: 2rem; }
    .slider-container { height: 50vh; }
    
    .grid-container, .about-grid, .contact-wrapper, .checkbox-group {
        grid-template-columns: 1fr; /* Todo a 1 columna */
    }
    
    .about-img { order: -1; /* Imagen primero en móvil */ }
}