/* Importación de todos los componentes */
@import url('utilities/reset.css');
@import url('utilities/variables.css');
@import url('utilities/utilities.css');
@import url('components/header.css');
@import url('components/hero.css');
@import url('components/services.css');
@import url('components/about.css');
@import url('components/cases.css');
@import url('components/cta.css');
@import url('components/contact.css');
@import url('components/footer.css');

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--neutral);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Estilos de tipografía */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Media Queries */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* ---------------------------------------------------------------------------- */
/* Estilos para el selector de idioma */
        .language-selector {
            position: relative;
            display: inline-block;
            margin-left: 20px;
        }
        
        .language-button {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--neutral);
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: var(--transition);
        }
        
        .language-button:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .language-button i {
            margin-left: 0.5rem;
        }
        
        .language-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--neutral);
            border-radius: 4px;
            box-shadow: var(--shadow);
            width: 150px;
            z-index: 1000;
            display: none;
            margin-top: 0.5rem;
        }
        
        .language-dropdown.active {
            display: block;
        }
        
        .language-option {
            padding: 0.75rem 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: var(--transition);
            color: var(--primary);
        }
        
        .language-option:hover {
            background: var(--gray-light);
        }
        
        .language-option img {
            width: 20px;
            height: 15px;
            margin-right: 0.75rem;
            object-fit: cover;
        }
        
        @media (max-width: 768px) {
            .language-selector {
                margin-left: 0;
                margin-top: 1rem;
                width: 100%;
            }
            
            .language-dropdown {
                width: 100%;
                right: auto;
                left: 0;
            }
        }

/* ---------------------------------------------------------------------------- */
/* Estilos para ventanas modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 31, 68, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--neutral);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-60px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: var(--gray-dark);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: var(--accent);
    text-decoration: none;
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
}

.modal ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.modal li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 1.8rem;
        width: 85%;
    }
    
    .close {
        top: 0.8rem;
        right: 1rem;
        font-size: 1.8rem;
    }
}

/* ---------------------------------------------------------------------------- */
/* Estilos para la sección de WhatsApp */
.whatsapp-contact {
    background-color: rgba(37, 211, 102, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #25D366;
}

.whatsapp-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.whatsapp-icon {
    color: #25D366;
    margin-right: 10px;
    font-size: 1.5rem;
}

.whatsapp-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.whatsapp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.whatsapp-qr, .whatsapp-desktop {
    flex: 1;
    min-width: 250px;
}

.whatsapp-qr p, .whatsapp-desktop p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.qr-image {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
}

.whatsapp-link {
    color: #25D366;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-link:hover {
    color: #128C7E;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-options {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .whatsapp-qr, .whatsapp-desktop {
        text-align: center;
    }
    
    .qr-image {
        width: 130px;
        height: 130px;
    }
}

/* ---------------------------------------------------------------------------- */
/* Estilos para imágenes de fondo con respaldo */
.service-img,
.about-image,
.case-img {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fondo de respaldo por si la imagen no carga */
.service-img,
.about-image,
.case-img {
    background-color: var(--primary); /* Fondo sólido como respaldo */
}

/* Iconos sobre las imágenes */
.service-img i,
.about-image i,
.case-img i {
    position: relative;
    z-index: 2;
    color: var(--accent);
    font-size: 3rem;
    opacity: 0.9;
}

/* Overlay para mejorar legibilidad del icono */
.service-img::before,
.about-image::before,
.case-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.7); /* Overlay semi-transparente */
    z-index: 1;
}

/* Efecto hover para las tarjetas con imágenes */
.service-card:hover .service-img::before,
.case-card:hover .case-img::before {
    background: rgba(24, 255, 255, 0.2); /* Efecto al pasar el mouse */
}

/* Tamaños específicos para cada sección */
.service-img {
    height: 200px;
}

.about-image {
    height: 400px;
    border-radius: 8px;
}

.case-img {
    height: 200px;
}

/* Responsive */
@media (max-width: 992px) {
    .about-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .service-img i,
    .case-img i {
        font-size: 2.5rem;
    }
    
    .about-image i {
        font-size: 4rem;
    }
}