
/* Contenedor principal que cubre toda la pantalla */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;

    /* ----- EL FONDO HA SIDO MODIFICADO ----- */
    
    /* 1. Un fondo base blanco para el patrón */
    background-color: #f1f1f1;
    
    /* 2. El patrón de PUNTOS SUTILES que has elegido */
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    
    /* 3. El tamaño/espaciado del patrón de puntos */
    background-size: 20px 20px;
    
    /* ----- El resto de propiedades se mantienen ----- */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Transición para la animación de salida */
    transition: transform 1.3s cubic-bezier(0.6, 0, 0.2, 1), opacity 1.3s ease;
}

/* Estado oculto del preloader */
#preloader.preloader-hidden {
    transform: translateY(100%);
}

/* Área del contador, AHORA SIN NINGÚN FONDO */
.preloader-counter-area {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    
    /* Eliminamos todos los estilos de "caja" o "glassmorphism" de aquí */
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0; /* Sin espaciado extra */
    
    color: var(--color-fondo-oscuro); /* El mismo color que el texto principal */
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0);
    text-align: center;
}

.preloader-counter-area .percentage {
    font-size: 1.8rem;
    font-weight: 700;
}

.preloader-counter-area .loading-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 0.1rem;
}

/* Clase para evitar el scroll mientras el preloader está activo */
.noscroll-preloader {
    overflow: hidden;
}

.header {
    background-color: var(--color-blanco);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: fixed; width: 100%; top: 0; left: 0;
    z-index: 1000; display: flex;
    justify-content: space-between;
    align-items: center; padding: 0 2rem;
    height: var(--header-height);
    transition: top 0.4s ease-in-out; 
}

.header.header-hidden {
    top: -80px;
}

.header-logo { 
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-texto-principal);
    z-index: 1010;
}

.header-logo span {
    color: var(--color-enfasis);
}

.header-nav a {
    color: var(--color-texto-principal);
    margin: 0 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    /* Al pasar el ratón, cambiamos el color al de énfasis de la web */
    color: #aaa;
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    
    /* ===== INICIO DE LOS CAMBIOS ===== */
    
    /* 1. La movemos al centro horizontal del elemento */
    left: 50%;
    
    /* 2. La centramos perfectamente con este truco de transformación */
    transform: translateX(-50%);
    
    /* 3. Hacemos la barra más estrecha (puedes jugar con este valor) */
    width: 60%; 
    
    /* 4. Hacemos la barra más fina */
    height: 2px;

    /* ===== FIN DE LOS CAMBIOS ===== */
    
    background-color: var(--color-enfasis);
}


/* --- Logo en el HEADER --- */
.header-logo {
    /* Convertimos el enlace en un contenedor flexible para alinear la imagen */
    display: flex;
    align-items: center;
    /* Eliminamos cualquier estilo de texto que pudiera tener antes */
    font-size: 1rem; 
    font-weight: normal;
    padding: 0;
}
/* Le damos tamaño a la imagen DENTRO del logo del header */
.header-logo img {
    height: 45px; /* <- Puedes ajustar este valor si tu logo es muy alto o bajo */
    width: auto;  /* Mantiene la proporción automáticamente */
    transition: transform 0.3s ease;
}
.header-logo:hover img {
    transform: scale(1.03); /* Un pequeño y sutil efecto al pasar el ratón */
}



.hamburger-menu {
    display: none; 
    z-index: 1010; 
    border: none;
    background: none;
    cursor: pointer;
    padding: 1rem;
    margin-left: auto;
}


@media (max-width: 768px) {
    body {
        padding-top: var(--header-height);
    }
    

    .hamburger-menu {
        display: block;
        order: 3; 
        margin-left: 0; 
    }


    /* Mover el menú de navegación fuera de la vista */
    .header-nav {
        order: 2; /* Lógicamente en medio, pero se moverá */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-blanco);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 2rem;
    }


    

    .container {
        padding: 4rem 1.5rem; 
    }


    .service-detail-block, 
    .service-detail-block:nth-child(even), 
    .philosophy-section, 
    .contact-wrapper,
    .form-grid { 
        grid-template-columns: 1fr;
    }
}




:root { --color-enfasis: #003366; --color-fondo-claro: #f8f9fa; --color-fondo-oscuro: #0a0a0a; --color-texto-principal: #212529; --color-texto-secundario: #EAEAEA; --color-blanco: #FFFFFF; --tipografia-principal: 'Inter', sans-serif; --header-height: 70px; }
html { scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; padding-top: var(--header-height); font-family: var(--tipografia-principal); background-color: var(--color-blanco); color: var(--color-texto-principal); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
* { box-sizing: border-box; }
h1, h2, h3, h4 { font-weight: 700; margin-top: 0; }
p { line-height: 1.7; margin-bottom: 1rem; }
a { color: var(--color-enfasis); text-decoration: none; transition: opacity 0.3s ease; }
.container { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.section-dark { background-color: var(--color-fondo-oscuro); color: var(--color-texto-secundario); }
.section-gray { background-color: var(--color-fondo-claro); }
.section-title { text-align: center; margin-bottom: 1rem; font-size: 2.8rem; }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 4rem auto; font-size: 1.1rem; line-height: 1.6; color: #555; }
.section-dark .section-subtitle { color: #aaa; }
.footer { padding: 4rem 2rem; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-logo { font-weight: 700; font-size: 1.5rem; }
.footer-nav a { color: var(--color-texto-secundario); margin: 0 0.75rem; font-size: 0.9rem; }
.footer-legal { font-size: 0.8rem; opacity: 0.7; }
.btn { display: inline-block; font-weight: 600; padding: 1rem 2.5rem; margin: 0.5rem; text-align: center; transition: transform 0.3s ease, background-color 0.3s ease; border: 2px solid transparent; }
.btn-primary { background-color: var(--color-enfasis); color: var(--color-blanco); }
.btn-primary:hover { background-color: #004488; }
.btn-secondary { background-color: transparent; color: var(--color-blanco); border-color: var(--color-blanco); }
.btn-secondary.dark { color: var(--color-enfasis); border-color: var(--color-enfasis); }
.btn-secondary.dark:hover { background-color: rgba(0, 51, 102, 0.1); }
.btn:hover { transform: translateY(-3px); opacity: 1; }
.hero-section { background-image: linear-gradient(rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.65)), url(https://images.unsplash.com/photo-1554495574-3c66f272de3f?q=80&w=2070&auto=format&fit=crop); background-size: cover; background-position: center; color: var(--color-blanco); height: calc(90vh - var(--header-height)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem; }
.hero-section h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 850px; margin-bottom: 1rem; }
.hero-section p { font-size: 1.25rem; max-width: 600px; margin-bottom: 2rem; opacity: 0.9; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.trust-item { text-align: center; padding: 2rem; }
.trust-item .icon { font-size: 3rem; color: var(--color-enfasis); margin-bottom: 1rem; }
.trust-item h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.service-detail-block { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; margin-bottom: 5rem; }
.service-detail-block:nth-child(even) { grid-template-columns: 2fr 1fr; }
.service-detail-block:nth-child(even) .service-image { order: 2; }
.service-image { width: 100%; height: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-content h3 { font-size: 2rem; margin-bottom: 1rem; }
.service-content .key-points { list-style-type: none; padding-left: 0; }
.service-content .key-points li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; }
.service-content .key-points li::before { content: '✓'; color: var(--color-enfasis); font-weight: bold; position: absolute; left: 0; }
.philosophy-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.philosophy-image { width: 100%; }
.faq-accordion .faq-item { border-bottom: 1px solid #ddd; }
.faq-question { width: 100%; background: none; border: none; text-align: left; font-size: 1.2rem; font-weight: 600; padding: 1.5rem 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.8rem; font-weight: 300; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer p { padding: 0 1rem 1.5rem 1rem; margin-bottom: 0; }
.faq-item.active .faq-answer { max-height: 300px; }
.modern-form { background-color: var(--color-blanco); padding: 3rem; color: var(--color-texto-principal); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-control { width: 100%; padding: 1rem; font-family: var(--tipografia-principal); font-size: 1rem; border: 1px solid #ccc; background-color: #f8f9fa; transition: border-color 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--color-enfasis); }
.map-container { width: 100%; height: 450px; overflow: hidden; }
.map-iframe { width: 100%; height: 100%; border: 0; filter: grayscale(100%); }
.contact-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: flex-start; }
.contact-details { padding: 2.5rem; background-color: var(--color-fondo-claro); border: 1px solid #e0e0e0; }
.contact-details h3 { font-size: 1.8rem; margin-bottom: 2rem; border-bottom: 2px solid var(--color-enfasis); padding-bottom: 0.75rem; }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { display: flex; align-items: flex-start; margin-bottom: 1.8rem; font-size: 1rem; }
.contact-info-list .icon { font-size: 1.3rem; color: var(--color-enfasis); margin-right: 1.5rem; margin-top: 0.1rem; width: 20px; text-align: center; }
.contact-info-list .info-text strong { display: block; font-size: 0.9rem; color: #666; margin-bottom: 0.2rem; }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.hamburger-menu { display: none; z-index: 1010; border: none; background: none; cursor: pointer; padding: 1rem; }
.hamburger-menu .bar { display: block; width: 25px; height: 3px; background-color: var(--color-texto-principal); margin: 5px auto; transition: all 0.3s ease-in-out; }
.hamburger-menu.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
body.noscroll { overflow: hidden; }
@media (max-width: 768px) { 
    body { padding-top: var(--header-height); } 
    .hamburger-menu { display: block; order: 3; } 
    .header-logo { order: 1; }
    .header-nav { order: 2; position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(5px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding: 2rem; } 
    .header-nav.nav-active { transform: translateX(0); }
    .header-nav a { font-size: 1.5rem; color: var(--color-texto-principal); font-weight: 600; }
    .header-nav a.active::after { display: none; }
    .section-title { font-size: 2rem; } 
    .hero-section h1 { font-size: 2.2rem; }
    .container { padding: 4rem 1.5rem; } 
    .service-detail-block, .service-detail-block:nth-child(even), .philosophy-section, .contact-wrapper, .form-grid { grid-template-columns: 1fr; } 
    .service-detail-block:nth-child(even) .service-image { order: 0; }
    .contact-details { margin-top: 3rem; }
}


/* --- 1. Estilo por Defecto (MOBILE FIRST) --- */
.hero-fullwidth-container {
    /* ----- Configuración del Fondo ----- */
    /* Aquí definimos la imagen para MÓVIL por defecto */
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), 
        url('assets/img/hero-mobile.jpg.png'); /* <-- CAMBIA ESTA RUTA */
    
    background-size: cover;
    background-position: center center;
    color: var(--color-blanco);

    /* ----- Espaciado Vertical ----- */
    padding-top: 6rem; /* Un poco menos de padding en móvil */
    padding-bottom: 6rem;
}

/* --- 2. Contenedor Interior (se mantiene igual) --- */
.hero-content-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
}


/* Div que contiene todo el texto a la izquierda */
.hero-text-column {
    /* Espaciado a la derecha para que no se pegue al centro de la página */
    padding-right: 2rem;
}

/* El resto de estilos de texto no cambian */
.hero-text-column .pre-header {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.hero-text-column h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text-column h1 em {
    font-style: italic;
    font-weight: 400;
    color: #f0f0f0;
}

.hero-text-column .subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 2.5rem;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
/* Estilos para la simulación de la reseña de Google */
.google-review-mockup .google-logo {
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
}

.google-review-mockup .rating {
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- 2. Estilo para TABLETS (a partir de 768px de ancho) --- */
@media (min-width: 768px) {
    .hero-fullwidth-container {
        /* Reemplazamos la imagen de fondo por la de la tablet */
        background-image: 
            linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), 
            url('assets/img/hero-tablet.jpg.png'); /* <-- CAMBIA ESTA RUTA */
        
        /* Aumentamos un poco el padding */
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* --- 3. Estilo para DESKTOP (a partir de 1024px de ancho) --- */
@media (min-width: 1024px) {
    .hero-fullwidth-container {
        /* Reemplazamos la imagen de fondo por la de escritorio */
        background-image: 
            linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), 
            url('assets/img/hero-desktop.jpg.png'); /* <-- CAMBIA ESTA RUTA */
    }
}


.hero-section h1 {
    text-shadow: 0px 2px 4px rgba(0,0,0,0.3);
}

/* Tarjetas de enfoque de cliente (Familia, Negocio, Futuro) */
.client-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.focus-card {
    background-color: var(--color-blanco);
    border: 1px solid #e0e0e0;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.focus-card .icon {
    font-size: 3rem;
    color: var(--color-enfasis);
    margin-bottom: 1.5rem;
}

.focus-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* Sección de Metodología de Trabajo */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    counter-reset: step-counter; /* Inicializa el contador */
    position: relative;
}

.method-step {
    padding: 2rem;
    position: relative;
}

.method-step::before {
    counter-increment: step-counter; /* Incrementa el contador */
    content: "0" counter(step-counter);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 51, 102, 0.08); /* Número grande y semitransparente */
    position: absolute;
    top: -0.5rem;
    left: 0;
    z-index: -1;
}

.method-step h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}


/* Sección "Sobre mí" en la página de inicio */
.home-about-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.home-about-section img {
    width: 100%;
    border-radius: 10%; /* Foto de perfil redonda para un toque más personal */
}

/* Sección de CTA Final */
.final-cta-section {
    background-color: #ffffffc9;
    color: var(--color-blanco);
    text-align: center;
}

.final-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- Ajustes Responsive para los nuevos componentes --- */
@media (max-width: 992px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .home-about-section img {
        max-width: 200px; /* Tamaño de la foto en móvil */
        margin: 0 auto 2rem auto;
    }
}

/* --- NUEVOS ESTILOS PARA INFORMACIÓN DE CONTACTO EN CTA DE INICIO --- */
.home-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem 2rem;
    max-width: 900px;
    margin: 3rem auto 0 auto;
    text-align: left;
}

.home-contact-info li {
    list-style: none;
    display: flex;
    align-items: center;
}

.home-contact-info .icon {
    color: var(--color-enfasis);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.home-contact-info .info-text {
    font-size: 1rem;
    color: #ccc;
}


.footer {
    padding: 1.5rem 2rem; /* Mucho menos alto */
    background-color: var(--color-fondo-oscuro);
    color: #aaa; /* Un gris más sutil para el texto */
    border-top: 1px solid #222; /* Línea de separación fina */
}

.footer-content {
    display: flex;
    flex-direction: row; /* Elementos en horizontal */
    justify-content: space-between; /* Empuja los elementos a los lados */
    align-items: center; /* Alineación vertical perfecta */
    width: 100%;
    gap: 2rem;
}

/* El texto legal se mantiene legible pero discreto */
.footer-legal {
    font-size: 0.8rem;
    text-align: right;
    opacity: 0.8;
}

/* Quitamos los links del footer que ya están en el header */
.footer-nav {
    display: none;
}


/* --- Ajustes Responsive para el footer nuevo --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Apilar en móvil para legibilidad */
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        text-align: center;
    }
}

/* --- NUEVOS ESTILOS AVANZADOS PARA LA PÁGINA "QUIÉN SOY" --- */

/* Sección de introducción personal */
.about-intro-section {
    background-color: var(--color-fondo-oscuro);
    color: var(--color-blanco);
    text-align: center;
}
.about-intro-section img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-blanco);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}
.about-intro-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.about-intro-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ccc;
}

/* Sección de trayectoria en cifras */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 2rem;
}
.stat-item .icon {
    font-size: 2.5rem;
    color: var(--color-enfasis);
    margin-bottom: 1rem;
}
.stat-item .number {
    font-size: 2.8rem;
    font-weight: 700;
}
.stat-item .text {
    font-size: 1rem;
    color: #666;
}

/* Sección de Testimonios renovada */
.testimonials-section-dark {
    background-color: var(--color-fondo-claro);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-blanco);
    padding: 2.5rem 2rem;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que las tarjetas tengan la misma altura */
}
.testimonial-card .stars {
    color: #f0c419; /* Color de estrellas (dorado) */
    margin-bottom: 1rem;
}
.testimonial-card blockquote {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
    flex-grow: 1; /* Permite que la cita ocupe el espacio disponible */
    border: none;
    padding: 0;
}
.testimonial-card cite {
    display: block;
    margin-top: 1.5rem;
    font-weight: 600;
    font-style: normal;
}


/* --- Ajustes Responsive para la nueva página --- */
@media (max-width: 768px) {
    .about-intro-section h1 {
        font-size: 2.2rem;
    }
}

/* ================================================================ */
/* ===   ESTILOS RESPONSIVE PARA LA SECCIÓN HERO INTEGRADA      === */
/* ================================================================ */

/* --- Estilos Responsive --- */
@media (max-width: 992px) {
    /* Colapsamos la rejilla a una sola columna */
    .hero-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Reseteamos el padding del texto */
    .hero-text-column {
        padding-right: 0;
    }

    .hero-text-column .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    /* Centramos los botones */
    .hero-cta-group {
        justify-content: center;
    }
}

/* ======================================================== */
/* ===   ESTILOS PARA EL WIDGET FLOTANTE DE WHATSAPP    === */
/* ======================================================== */

/* Keyframes para la animación de pulso sutil */
@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    4% {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    8% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    /* El 92% del tiempo restante, la animación está inactiva */
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* El contenedor principal del widget, posicionado en la esquina */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
}

/* El botón circular con el icono */
.whatsapp-widget .whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #075E54; /* Un verde WhatsApp más corporativo */
    color: var(--color-blanco);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 2.2rem; /* Tamaño del icono */
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;

    /* Aplicamos la animación */
    animation: pulse-whatsapp 8s infinite;
}

/* Al pasar el ratón, detenemos la animación y hacemos un efecto sutil */
.whatsapp-widget:hover .whatsapp-button {
    animation: none; /* Detiene la animación de pulso */
    transform: scale(1.05);
    background-color: #128C7E; /* Un verde ligeramente más brillante */
}

/* La burbuja de texto (tooltip) que aparece al pasar el ratón */
.whatsapp-widget .whatsapp-tooltip {
    position: absolute;
    bottom: 75px; /* Lo posiciona justo encima del botón */
    right: 0;
    
    background-color: var(--color-blanco);
    padding: 1rem 1.5rem;
    border-radius: 8px; /* Un borde suave es amigable aquí */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 280px;
    
    /* Oculto por defecto, con una animación de entrada */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* El triángulo/flecha de la burbuja, creado con CSS */
.whatsapp-widget .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Lo posiciona debajo de la burbuja */
    right: 22px;
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: var(--color-blanco) transparent transparent transparent;
}

/* Cuando se pasa el ratón sobre el widget, mostramos el tooltip */
.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-widget .tooltip-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-texto-principal);
}
.whatsapp-widget .tooltip-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: #555;
}

/* ========================================================== */
/* ===   NUEVO ESTILO PARA FONDOS CON PATRÓN SUBTIL       === */
/* ========================================================== */

.section-patterned {
    background-color: var(--color-blanco);
    background-image: 
    linear-gradient(rgba(220,220,220, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,220,220, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
}


.section-pattern-dots {
    background-color: var(--color-blanco);
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Para usar esta, cambia el contenido de .section-pattern-quotes por esto: */
.section-pattern-quotes {
    background-color: var(--color-blanco);
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}

.section-pattern-quotes2 {
    background-color: var(white);
    background-image: radial-gradient(#00000023 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ========================================================== */
/* ===   ESTILO UNIFICADO Y DEFINITIVO PARA EL WIDGET DE IDIOMAS === */
/* === (Reemplaza cualquier estilo .language-switcher anterior) === */
/* ========================================================== */

/* Este es ahora el ÚNICO estilo, y se aplica en TODAS las pantallas */
.language-switcher {
    /* Posición fija como widget flotante */
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    
    /* Estilo visual del widget */
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    
    /* Estilos internos (banderas y texto) */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.language-switcher:hover {
    transform: scale(1.05);
}

.language-switcher a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-blanco);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    opacity: 0.4; /* El inactivo está un poco más atenuado */
    transition: opacity 0.3s ease;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-switcher a.active {
    opacity: 1;
    font-weight: 700;
}

.language-switcher img {
    width: 24px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ================================================================ */
/* ===   ESTILOS PARA CURSOR PERSONALIZADO (ROJO, PEQUEÑO)      === */
/* ================================================================ */

/* 1. Ocultamos el cursor por defecto */
html, body, a, button {
    cursor: none;
}

/* 2. Estilo base del cursor */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    
    /* TAMAÑO MÁS PEQUEÑO */
    width: 15px;
    height: 15px;
    border-radius: 50%;
    
    /* NUEVO COLOR ROJO SEMITRANSPARENTE */
    background-color: rgba(220, 38, 38, 0.7); /* Un rojo elegante */
    
    opacity: 0; /* Empieza invisible hasta el primer movimiento */
    transition: opacity 0.3s ease-out, width 0.2s ease-out, height 0.2s ease-out, background-color 0.2s ease-out;
    transform: translate(-50%, -50%);
}

.custom-cursor.visible {
    opacity: 1;
}

/* 3. Estado "hover" (agrandamiento más sutil) */
.custom-cursor.grow {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 0, 0, 0.726); /* Se hace más transparente */
}

/* 4. Estado invertido para fondos oscuros (ahora blanco) */
.custom-cursor.inverted {
    background-color: rgba(255, 255, 255, 0.7);
}

.custom-cursor.grow.inverted {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Ocultamos el cursor en pantallas táctiles */
@media (pointer: coarse) {
    .custom-cursor { display: none !important; }
    html, body, a, button { cursor: auto; }
}

/* ========================================================== */
/* ===         ESTILOS MEJORADOS PARA EL FOOTER           === */
/* ========================================================== */

/* Contenedor para los nuevos enlaces legales */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Espacio entre cada enlace */
    flex-wrap: wrap; /* Permite que los enlaces se apilen en pantallas muy pequeñas */
    margin: 0; /* Quitamos el margen por si acaso */
}

.footer-links a {
    color: #aaa; /* El mismo color sutil del texto del footer */
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-blanco); /* Se ilumina al pasar el ratón */
    text-decoration: underline;
}

.legal-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.legal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.legal-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.legal-content ul {
    line-height: 1.7;
}


/* --- Logo en el FOOTER --- */
.footer-logo {
    /* Eliminamos cualquier estilo de texto heredado */
    font-size: 1rem;
    font-weight: normal;
}
/* Le damos tamaño a la imagen DENTRO del logo del footer */
.footer-logo img {
    height: 40px; /* Hacemos el logo del footer un poco más pequeño para que sea más discreto */
    width: auto;
    opacity: 0.8; /* Lo hacemos un poco más sutil para que no destaque tanto */
    transition: opacity 0.3s ease;
}
.footer-logo:hover img {
    opacity: 1; /* Se vuelve totalmente opaco al pasar el ratón */
}

/* ======================================================== */
/* ===         ESTILOS PARA BANNER DE COOKIES           === */
/* ======================================================== */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9998; /* Muy alto, pero por debajo del cursor y el preloader */

    /* Efecto Glassmorphism coherente con el resto del diseño */
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.1);
    
    color: var(--color-blanco);
    padding: 1.5rem 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;

    /* Oculto por defecto, con animación de entrada */
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-banner-text {
    font-size: 0.9rem;
    line-height: 1.6;
}
.cookie-banner-text a {
    color: var(--color-blanco);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0; /* Evita que los botones se encojan */
}

/* En móvil, apilamos el texto y los botones */
@media (max-width: 768px) {
    #cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
}