/* =========================================
   ÍNDICE DE ESTILOS - COLOCABLE
   1. VARIABLES Y BASE
   2. UTILIDADES GLOBALES
   3. CABECERA Y NAVEGACIÓN
   4. HERO (PORTADA)
   5. SECCIÓN DE SERVICIOS
   6. LOGOS DE OPERADORAS
   7. GALERÍA Y COMPARATIVAS (ANTES/DESPUÉS)
   8. TESTIMONIOS
   9. BANNER CTA (LLAMADA A LA ACCIÓN)
   10. FORMULARIO Y CONTACTO
   11. FOOTER Y WHATSAPP
   12. RESPONSIVE (MÓVILES)
========================================= */

/* =========================================
   1. VARIABLES Y BASE
========================================= */
:root {
    --primary-color: #ff6600;
    --primary-hover: #e65c00;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   2. UTILIDADES GLOBALES
========================================= */
.section-padding { 
    padding: 80px 0; 
}
.bg-white { 
    background-color: #ffffff; 
}
.bg-gray { 
    background-color: #f8f9fa; 
}
.section-title { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 40px; 
    color: var(--text-dark); 
    font-weight: 800; 
}
.section-subtitle { 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto 50px auto; 
    font-size: 1.1rem; 
    color: #555; 
    line-height: 1.6; 
}
.text-center {
    text-align: center;
}

/* =========================================
   3. CABECERA Y NAVEGACIÓN
========================================= */
.main-header {
    position: sticky; 
    top: 0;
    background-color: #060b14;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.main-logo {
    height: 40px; 
    width: auto;
    display: block;
    margin: 0;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-nav-white {
    background-color: #ffffff;
    color: #060b14 !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700 !important;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
}

.btn-nav-white:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.menu-toggle { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
    z-index: 1000; 
}

.menu-toggle .bar { 
    width: 25px; 
    height: 3px; 
    background-color: #ffffff; 
    margin: 3px 0; 
    transition: 0.3s; 
}

/* =========================================
   4. HERO (PORTADA)
========================================= */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
    padding-top: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: -20px; right: -20px; bottom: -20px; left: -20px; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/hero_bg.webp') !important; 
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 35px;
}

.hero-desc {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
    text-shadow: none !important;
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: #ffffff !important;
    text-shadow: none !important;
    border: 2px solid #ffffff;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
    background: #ffffff;
    color: #333333 !important;
}

/* =========================================
   5. SECCIÓN DE SERVICIOS
========================================= */
.services-grid { 
    display: flex; 
    gap: 30px; 
    justify-content: center; 
    flex-wrap: wrap; 
}
.service-card { 
    flex: 1; 
    min-width: 300px; 
    max-width: 350px; 
    background: #f8f9fa; 
    padding: 40px 30px; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border-bottom: 4px solid transparent; 
}
.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-bottom: 4px solid var(--primary-color); 
}
.service-icon { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
}
.service-title { 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
    color: var(--text-dark); 
    font-weight: 800; 
}
.service-desc { 
    color: #555; 
    font-size: 1rem; 
    line-height: 1.6; 
}

/* =========================================
   6. LOGOS DE OPERADORAS
========================================= */
.operator-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.operator-logos img {
    height: 45px; 
    width: auto;
    max-width: 130px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* =========================================
   7. GALERÍA Y COMPARATIVAS (ANTES/DESPUÉS)
========================================= */
.project-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.project-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 800;
}

.comparison-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-item, .comparison-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.comparison-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.comparison-img:hover {
    transform: translateY(-5px);
}

.comparison-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 4/3; 
}

.comparison-item img:hover {
    transform: translateY(-5px);
}

.enfoque-abajo {
    object-position: center 80% !important;
}

.tag-antes, .tag-despues {
    display: inline-block;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tag-antes {
    background-color: #e74c3c;
}

.tag-despues {
    background-color: #2ecc71;
}

/* =========================================
   8. TESTIMONIOS
========================================= */
.testimonials-grid { 
    display: flex; 
    gap: 30px; 
    justify-content: center; 
    flex-wrap: wrap; 
}
.testimonial-card { 
    flex: 1; 
    min-width: 300px; 
    max-width: 400px; 
    background: #ffffff; 
    padding: 40px 30px; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    text-align: left; 
    position: relative; 
}
.quote-icon { 
    font-size: 3rem; 
    color: rgba(255, 102, 0, 0.2); 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    font-family: serif; 
    line-height: 1; 
}
.testimonial-text { 
    font-style: italic; 
    margin-bottom: 20px; 
    position: relative; 
    z-index: 1; 
    font-size: 1.05rem; 
}
.testimonial-author { 
    font-weight: 800; 
    color: var(--text-dark); 
}
.testimonial-role { 
    font-size: 0.9rem; 
    color: #666; 
}

/* =========================================
   9. BANNER CTA (LLAMADA A LA ACCIÓN)
========================================= */
.cta-banner { 
    background-color: var(--primary-color); 
    padding: 70px 0; 
    text-align: center; 
    color: #ffffff; 
}
.cta-banner h2 { 
    font-size: 2.8rem; 
    margin-bottom: 20px; 
    color: #ffffff; 
    font-weight: 800; 
}
.cta-banner p { 
    font-size: 1.2rem; 
    margin-bottom: 35px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}
.btn-white { 
    background-color: #ffffff; 
    color: var(--primary-color) !important; 
    padding: 15px 40px; 
    border-radius: 5px; 
    font-weight: 800; 
    text-decoration: none; 
    display: inline-block; 
    transition: transform 0.3s; 
}
.btn-white:hover { 
    transform: scale(1.05); 
}

/* =========================================
   10. FORMULARIO Y CONTACTO
========================================= */
.contact-section { padding: 60px 0; }
.contact-wrapper { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h1 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 20px;line-height: 1.2; }
.contact-info p { font-size: 1.1rem; margin-bottom: 20px; }
.contact-details { margin-top: 40px; background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.detail-item { display: flex; align-items: center; margin-top: 15px; font-size: 1.1rem; }
.detail-item .icon { font-size: 1.5rem; margin-right: 15px; }

.contact-form-card { flex: 1; min-width: 300px; background: #fff; padding: 35px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #444; }
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="email"], .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-size: 1rem; transition: border-color 0.3s; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.file-upload-group { background: #fdfdfd; border: 2px dashed #ccc; padding: 20px; border-radius: 6px; text-align: center; }
.file-upload-group input[type="file"] { width: 100%; margin-top: 10px; }
.file-upload-group small { display: block; margin-top: 10px; color: #666; }

.privacy-wrapper { display: flex; align-items: center; gap: 10px; margin-top: 15px; margin-bottom: 20px; }
.privacy-wrapper input[type="checkbox"] { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.privacy-wrapper .label-inline { font-weight: 400; font-size: 0.95rem; color: #555; cursor: pointer; margin-bottom: 0; }

.btn-submit { width: 100%; padding: 15px; font-size: 1.1rem; margin-top: 10px; border: none; cursor: pointer; }

.progress-wrapper { margin-top: 20px; text-align: center; }
.progress-container { width: 100%; height: 22px; background-color: #eee; border-radius: 12px; overflow: hidden; margin: 10px 0; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.progress-bar { height: 100%; width: 0%; background-color: var(--primary-color); background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 30px 30px; animation: moveStripes 1s linear infinite; transition: width 0.3s ease, background-color 0.3s ease; }

@keyframes moveStripes { 0% { background-position: 30px 0; } 100% { background-position: 0 0; } }

/* =========================================
   11. FOOTER Y WHATSAPP
========================================= */
.main-footer { background-color: #222; color: #fff; padding: 30px 0; text-align: center; margin-top: 40px; }
.main-footer p { margin-bottom: 10px; }
.legal-links a { color: #aaa; text-decoration: none; font-size: 0.9rem; margin: 0 5px; transition: color 0.3s; }
.legal-links a:hover { color: var(--primary-color); }

.whatsapp-float { 
    display: none; 
}
/* =========================================
   PÁGINAS LEGALES
========================================= */
.legal-content { 
    padding: 60px 0; 
    max-width: 800px; 
    margin: 0 auto; 
}
.legal-content h1 { 
    margin-bottom: 30px; 
    font-size: 2rem; 
    color: var(--primary-color); 
}
.legal-content h2 { 
    margin-top: 30px; 
    margin-bottom: 10px; 
    font-size: 1.2rem; 
}
.legal-content p, .legal-content ul { 
    margin-bottom: 15px; 
    color: #555; 
}
.legal-content ul {
    margin-left: 20px;
}

/* =========================================
   12. RESPONSIVE (MÓVILES Y TABLETS)
========================================= */
@media (max-width: 768px) {
    /* --- Cabecera y Menú --- */
    .main-header { padding: 15px 0; }
    .main-logo { height: 35px; }
    .menu-toggle { display: flex; margin-left: auto; margin-right: 15px; }
    
    .nav-list { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        background-color: #ffffff; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
        padding: 20px 0; 
        text-align: center; 
    }
    .nav-list.active { display: flex; }
    .nav-list li { margin: 15px 0; }
    .nav-list a { color: var(--text-dark) !important; text-shadow: none; font-size: 1.1rem; }
    
    /* --- Utilidades Generales y Títulos --- */
    .section-padding { padding: 40px 0 !important; }
    .section-title { 
        font-size: 2rem; 
        line-height: 1.2; 
        margin-bottom: 20px; 
    }
    .section-subtitle { 
        margin-bottom: 30px; 
        font-size: 1rem;
        padding: 0 15px;
    }

    /* --- Hero (Portada) --- */
    .hero { 
        min-height: auto !important;
        padding: 60px 0 !important; 
    }
    .hero-title { 
        font-size: 1.7rem !important; 
        line-height: 1.2; 
        margin-bottom: 12px; 
    }
    .hero-subtitle { 
        font-size: 0.9rem; 
        margin-bottom: 8px; 
    }
    .hero-desc { 
        font-size: 1rem; 
        margin-bottom: 20px; 
        padding: 0 10px; 
    }
    .hero-buttons { 
        display: flex; 
        flex-direction: column; 
        gap: 10px; 
        width: 100%;
    }
    .btn-primary, .btn-outline { 
        width: 100%; 
        padding: 12px 20px; 
    }
    
    /* --- Servicios --- */
    .services-grid { gap: 15px; }
    .service-card { 
        padding: 25px 20px; 
        min-width: 100%; 
    }
    .service-icon { 
        font-size: 2.5rem; 
        margin-bottom: 10px; 
    }
    .service-title { 
        font-size: 1.2rem; 
        margin-bottom: 10px; 
    }
    .service-desc { font-size: 0.95rem; }

    /* --- Operadoras y Contacto --- */
    .operator-logos img { height: 30px; margin: 10px; }
    .contact-wrapper { flex-direction: column; }
    .cta-banner h2 { font-size: 2.2rem; }
    
    /* --- Botón Flotante de WhatsApp --- */
    .whatsapp-float { 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        position: fixed; 
        bottom: 20px; 
        right: 20px; 
        width: 55px; 
        height: 55px; 
        background-color: #25d366; 
        border-radius: 50%; 
        box-shadow: 2px 2px 10px rgba(0,0,0,0.3); 
        z-index: 1000; 
        text-decoration: none; 
    }
    
    .whatsapp-icon { 
        width: 34px; 
        height: 34px; 
        fill: #ffffff; 
        flex-shrink: 0; 
        display: block; 
    }
}

/* =========================================
   13. BANNER DE COOKIES
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #060b14; /* Mismo color elegante de tu cabecera */
    color: #ffffff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}
.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}
.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}
.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}
.cookie-buttons button {
    flex: 1; /* Los botones ocupan el mismo ancho en móvil */
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* En ordenadores, lo ponemos en horizontal */
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
    }
    .cookie-content p {
        text-align: left;
        padding-right: 30px;
    }
    .cookie-buttons {
        width: auto;
    }
    .cookie-buttons button {
        flex: none;
    }
}