/* ===================================== */
/* VARIABLES GLOBALES                    */
/* ===================================== */
:root {
    /* Colores base AI Smart */
    --color-dark-bg: #1A202C; /* Fondo principal oscuro (azul muy oscuro, casi negro) */
    --color-medium-dark-bg: #2D3748; /* Fondo de contenedores/secciones alternas (gris oscuro) */
    --color-light-bg: #F7FAFC; /* Fondo claro para secciones (gris muy claro) */
    
    /* Colores de texto */
    --color-light-text: #E2E8F0; /* Texto claro principal (gris blanquecino, para fondos oscuros) */
    --color-secondary-text: #A0AEC0; /* Texto gris claro secundario (para detalles sobre fondos oscuros) */
    --color-dark-text: #2D3748; /* Texto oscuro sobre fondos claros (para fondos claros) */
    
    /* Colores de acento */
    --color-primary-accent: #3182CE; /* Azul vibrante principal (para enlaces/elementos interactivos) */
    --color-secondary-accent: #4FD1C5; /* Un turquesa/verde azulado (PARA BOTONES Y HIGHLIGHTS CLAROS SOBRE FONDOS OSCUROS) */
    
    /* Colores de botones */
    --color-button-primary-dark-bg: var(--color-secondary-accent);
    --color-button-primary-dark-bg-hover: #38A169;
    --color-button-primary-light-bg: var(--color-primary-accent);
    --color-button-primary-light-bg-hover: #2B6CB0;

    /* Colores de enlaces */
    --color-link: var(--color-primary-accent);
    --color-link-hover: #2B6CB0;
    
    /* Fondos específicos */
    --color-card-bg: var(--color-medium-dark-bg);

    /* Fuentes */
    --font-primary: 'Poppins', sans-serif;
}

/* ===================================== */
/* RESET BÁSICO Y PROPIEDADES GENERALES  */
/* ===================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Previene scroll horizontal indeseado */
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-light-text); /* Color de texto por defecto para el body */
    background-color: var(--color-dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Previene scroll horizontal indeseado */
}

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

/* ===================================== */
/* CLASES DE UTILIDAD                    */
/* ===================================== */
.text-center {
    text-align: center;
}

.section-spacing {
    padding: 6em 0;
}

.lead-text {
    font-size: 1.25em;
    max-width: 800px;
    margin: 1em auto 2em auto;
    color: inherit; /* Hereda el color del padre para consistencia */
}

.text-dark {
    color: var(--color-dark-text); /* Para usar específicamente en secciones de fondo claro */
}

.highlight-text {
    color: var(--color-secondary-accent);
    text-shadow: 0 0 8px rgba(79, 209, 197, 0.6);
}

/* ===================================== */
/* COMPONENTES PRINCIPALES               */
/* ===================================== */

/* --- Header Principal --- */
.main-header {
    background-color: var(--color-dark-bg);
    padding: 1em 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* === MODIFICACIÓN: Añadir transform y opacity a la transición para el efecto inteligente === */
    transition: background-color 0.3s ease, padding 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    overflow: visible; 
    -webkit-transform: translateZ(0); /* Forzar aceleración de hardware para iOS */
    transform: translateZ(0);
}

/* Estado del header "pegado" al scroll (se encoge) */
.main-header.sticky {
    padding: 0.7em 0;
    background-color: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* === Clase para ocultar el header (inteligente) === */
.main-header.hidden {
    transform: translateY(-100%); /* Desliza el header completamente hacia arriba */
    opacity: 0; /* Lo hace invisible */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    z-index: 1002;
    -webkit-transform: translateZ(0); 
    transform: translateZ(0);
}

.logo img {
    max-height: 45px;
    width: auto;
    transition: max-height 0.3s ease;
}

.main-header.sticky .logo img {
    max-height: 38px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8em;
}

.main-nav ul li a {
    color: var(--color-light-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5em 0;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--color-primary-accent);
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.9em 1.8em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: var(--color-button-primary-dark-bg);
    color: var(--color-dark-text);
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-button-primary-dark-bg-hover);
    color: var(--color-light-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
}

.btn-primary-light-bg {
    background-color: var(--color-button-primary-light-bg);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary-light-bg:hover {
    background-color: var(--color-button-primary-light-bg-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-large {
    padding: 1.2em 2.5em;
    font-size: 1.1em;
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--color-secondary-accent);
    border: 2px solid var(--color-secondary-accent);
    box-shadow: none;
}

.btn-secondary-outline:hover {
    background-color: var(--color-secondary-accent);
    color: var(--color-dark-text);
    border-color: var(--color-secondary-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(79, 209, 197, 0.2);
}

/* --- Títulos de Sección (Estilos Generales) --- */
.section-title {
    color: var(--color-light-text);
    font-size: 2.8em;
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.2;
}

.section-bg-light .section-title {
    color: var(--color-dark-text);
}

/* --- Hero Section --- */
/* Estilos base para hero-section (simples, como en gbp-automation.html por defecto) */
.hero-section {
    background-color: var(--color-dark-bg);
    padding: 6em 0; /* Más compacto, como service-hero-section */
    min-height: 50vh; /* Altura mínima como service-hero-section */
    color: var(--color-light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1; 
    -webkit-transform: translateZ(0); 
    transform: translateZ(0);
    /* Aseguramos que NO tenga el background-image complejo por defecto */
    background-image: none !important; 
}

/* Pseudo-elemento animado (NO se aplica por defecto en hero-section) */
.hero-section::before {
    content: '';
    display: none; /* Ocultar por defecto */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, var(--color-secondary-text) 1px, transparent 1px),
        radial-gradient(circle, var(--color-secondary-text) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.05;
    animation: background-move 120s linear infinite;
    z-index: 0;
    -webkit-transform: translateZ(0); 
    transform: translateZ(0);
}

@keyframes background-move {
    from { background-position: 0 0, 10px 10px; }
    to { background-position: 1000px 1000px, 1010px 1010px; }
}

.hero-container {
    text-align: center;
    z-index: 2; 
    position: relative;
    -webkit-transform: translateZ(0); 
    transform: translateZ(0);
}

.hero-title {
    font-size: 4.5em;
    color: var(--color-light-text);
    margin-bottom: 0.4em;
    line-height: 1.1;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto 2.5em auto;
    color: var(--color-secondary-text);
    font-weight: 300;
}

.hero-actions .btn {
    margin: 0 0.8em;
}

/* === MODIFICACIÓN CLAVE: Reaplicar el fondo complejo SOLO a #hero en desktop === */
@media (min-width: 769px) {
    #hero.hero-section { /* Apunta específicamente a la hero de la Home */
        background-image:
            radial-gradient(circle at 10% 20%, rgba(49, 130, 206, 0.08) 0%, rgba(49, 130, 206, 0.0) 70%),
            linear-gradient(135deg, var(--color-dark-bg) 0%, #0F131A 100%);
        padding: 8em 0; /* Vuelve al padding grande */
        min-height: 70vh; /* Vuelve a la altura grande */
    }
    #hero.hero-section::before {
        display: block; /* Muestra el pseudo-elemento animado de nuevo */
    }
}


/* --- Services Section --- */
.services-section {
    background-color: var(--color-medium-dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-top: 3em;
    text-align: left;
}

.service-card {
    background-color: var(--color-dark-bg);
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(79, 209, 197, 0.4);
    background-color: #262D3B;
    border-color: var(--color-secondary-accent);
}

/* Ajustes para los íconos de servicio (Wrapper) */
.service-icon-wrapper {
    background-color: var(--color-primary-accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5em;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
    z-index: 3; 
    -webkit-transform: translate3d(0, 0, 100px); 
    transform: translate3d(0, 0, 100px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.01); /* Un pequeño box-shadow transparente para forzar capa */
    -webkit-box-shadow: 0 0 0 1px rgba(0,0,0,0.01);
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(45deg, var(--color-primary-accent), var(--color-secondary-accent));
    box-shadow: 0 0 18px rgba(79, 209, 197, 0.7);
}

/* Ajustes para el ícono de servicio (Font Awesome) */
.service-icon {
    font-size: 2.2em;
    color: #FFFFFF !important; /* Fuerza el color blanco puro */
    position: relative; 
    z-index: 4; 
    -webkit-transform: translateZ(0.1px); 
    transform: translateZ(0.1px);
}

.service-card h3 {
    color: var(--color-light-text);
    font-size: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.service-card p {
    color: var(--color-secondary-text);
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.service-card .learn-more {
    display: inline-block;
    color: var(--color-secondary-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.service-card .learn-more:hover {
    color: var(--color-primary-accent);
    text-decoration: underline;
}

/* --- Quiénes Somos Section (Con Logo) --- */
.about-section {
    background-color: var(--color-light-bg);
    color: var(--color-dark-text);
    padding: 6em 0;
    text-align: center;
}

.about-section .section-title {
    color: var(--color-dark-text);
    margin-bottom: 1.5em;
    font-size: 2.8em;
}

.about-logo-container {
    max-width: 300px;
    margin: 1em auto 1.5em auto;
    display: block;
}

.about-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.about-section-block {
    max-width: 900px;
    margin: 0 auto 3em auto;
}

.about-section-block:last-child {
    margin-bottom: 0;
}

.about-section-block p {
    color: var(--color-dark-text);
    font-size: 1.1em;
    line-height: 1.8;
}

.about-subtitle {
    font-size: 2em;
    color: var(--color-primary-accent);
    margin-bottom: 1em;
    font-weight: 700;
    line-height: 1.2;
}

.about-values-content {
    margin-top: 4em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5em;
    margin-top: 2.5em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.value-card {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 2.2em;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary-accent);
}

.value-icon {
    font-size: 2.8em;
    color: var(--color-secondary-accent);
    margin-bottom: 0.8em;
    line-height: 1;
}

.value-title {
    font-size: 1.35em;
    color: var(--color-dark-text);
    font-weight: 700;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.value-description {
    font-size: 1em;
    color: var(--color-secondary-text);
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Consultoría Section --- */
.consulting-section {
    background-color: var(--color-dark-bg);
    color: var(--color-light-text);
}
.consulting-section .section-title {
    color: var(--color-light-text);
}
.consulting-section p {
    max-width: 900px;
    margin: 0 auto 2.5em auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--color-light-text);
}

/* ===================================== */
/* CONTACT SECTION                       */
/* ===================================== */
.contact-section {
    background-color: var(--color-medium-dark-bg);
    color: var(--color-light-text); /* Texto general de la sección (títulos, etc.) sigue siendo claro */
    padding: 6em 0; 
}

.contact-section .section-title {
    color: var(--color-light-text);
}

.contact-section .lead-text {
    color: var(--color-light-text); 
    margin-bottom: 2em; 
}

.contact-section .contact-info {
    font-size: 1.3em;
    margin-top: 2.5em; 
    color: var(--color-light-text); 
}

.contact-section .contact-info a {
    color: var(--color-secondary-accent); 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-section .contact-info a:hover {
    color: var(--color-primary-accent); 
    text-decoration: underline;
}

/* === ESTILOS PARA EL CONTENEDOR DEL FORMULARIO DE HUBSPOT (FONDO BLANCO) === */
.hubspot-form-wrapper {
    max-width: 600px; 
    margin: 2.5em auto 0 auto; 
    padding: 3em 2.5em; 
    background-color: #FFFFFF; /* === CAMBIO CLAVE: FONDO BLANCO === */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Sombra más sutil para fondo claro */
    border: 1px solid #E2E8F0; /* Borde sutil y claro */
    overflow: hidden; 
    text-align: left; 
    position: relative; 
}

/* === ESTILOS PARA ANULAR ESTILOS DE HUBSPOT (adaptados a fondo blanco) === */
/* Campos de texto y textarea */
.hubspot-form-wrapper .hs-input {
    width: 100% !important;
    padding: 1.1em 1.4em !important;
    border: 1px solid #CBD5E0 !important; /* Borde más claro para campos sobre blanco */
    border-radius: 8px !important;
    background-color: #F7FAFC !important; /* Fondo de campo muy claro, casi blanco */
    color: var(--color-dark-text) !important; /* Texto de entrada oscuro */
    font-family: var(--font-primary) !important;
    font-size: 1em !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

/* Placeholders (texto dentro de los campos antes de escribir) */
.hubspot-form-wrapper .hs-input::placeholder {
    color: #A0AEC0 !important; /* Color gris para el placeholder, más legible sobre blanco */
    opacity: 1 !important; 
}

/* Foco de los campos */
.hubspot-form-wrapper .hs-input:focus {
    border-color: var(--color-primary-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.2) !important; /* Sombra de foco más suave */
    background-color: #FFFFFF !important; /* Fondo del campo se mantiene blanco en foco */
}

/* Botón de envío */
.hubspot-form-wrapper input[type="submit"] {
    background-color: var(--color-primary-accent) !important; /* Tu azul principal para el botón */
    color: white !important; /* Texto blanco en el botón */
    padding: 1em 2em !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 1em !important;
    width: 100% !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
    border: none !important;
    margin-top: 1.5em !important; 
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4) !important; 
}

/* Hover para el botón de envío */
.hubspot-form-wrapper input[type="submit"]:hover {
    background-color: var(--color-button-primary-light-bg-hover) !important;
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5) !important;
}

/* Etiquetas de los campos (si HubSpot las usa en vez de solo placeholders) */
.hubspot-form-wrapper .hs-form label {
    color: var(--color-dark-text) !important; /* Las etiquetas deben ser oscuras sobre blanco */
    font-weight: 500 !important;
    margin-bottom: 0.5em !important;
    display: block !important;
}

/* Ajustes para los contenedores de grupos de campos */
.hubspot-form-wrapper .hs-form-field {
    margin-bottom: 1.5em !important; 
}

/* Mensajes de error */
.hubspot-form-wrapper .hs-error-msgs {
    color: #DC3545 !important; /* Un rojo más estándar para errores sobre blanco */
    font-size: 0.9em !important;
    margin-top: 0.5em !important;
    list-style: none !important;
    padding: 0 !important;
}

.hubspot-form-wrapper .hs-error-msgs li {
    margin-bottom: 0.3em !important;
}

/* === OCULTAR MARCA Y MENSAJES DE ERROR DE HUBSPOT (Último intento, con más selectores) === */

/* Este es el div principal que contiene la marca y el mensaje de "Create your own free forms..." */
.hubspot-form-wrapper .hs-form-required {
    display: none !important; /* Oculta la barra roja y el texto */
    visibility: hidden !important; 
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: none !important; /* Asegura que no tenga bordes */
    background: none !important; /* Asegura que no tenga fondo */
    box-shadow: none !important; /* Asegura que no tenga sombra */
}

/* Este es el texto "Powered by HubSpot" */
.hubspot-form-wrapper .hbspt-form-by-hubspot {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Otros selectores comunes para el branding que HubSpot podría usar */
.hubspot-form-wrapper .hs_cos_wrapper_type_form .no-label.hs-error-msgs,
.hubspot-form-wrapper .legal-consent-container,
.hubspot-form-wrapper .hs-richtext {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Asegurar que cualquier enlace de marca dentro del formulario también esté oculto */
.hubspot-form-wrapper a[href*="hubspot.com/pricing"] {
    display: none !important;
    visibility: hidden !important;
}


/* Eliminar el estilo del formulario anterior (Formspree) */
.contact-form {
    display: none; 
}

/* Estilos para el contenedor del iframe de Google Forms (si se usa esta opción) */
.google-form-wrapper {
    max-width: 600px;
    margin: 2.5em auto 1.5em auto;
    padding: 1.5em;
    background-color: var(--color-dark-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.google-form-wrapper iframe {
    width: 100%;
    height: 700px; 
    border: none;
    display: block;
}
/* ===================================== */
/* FOOTER PRINCIPAL          */
/* ===================================== */
.main-footer {
    background-color: var(--color-dark-bg);
    padding: 2.5em 0;
    color: var(--color-secondary-text);
    font-size: 0.95em;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.footer-links a {
    color: var(--color-secondary-text);
    text-decoration: none;
    margin: 0 1em;
    padding: 0.5em 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary-accent);
    text-decoration: none;
}

.footer-copyright {
    margin-top: 1em;
}

/* ===================================== */
/* MEDIA QUERIES (RESPONSIVIDAD) */
/* ===================================== */

/* Ocultar menú de navegación y mostrar botón de hamburguesa en móvil */
@media (max-width: 768px) {
    /* Header/Nav Mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-medium-dark-bg);
        box-shadow: -8px 0 20px rgba(0, 0, 0, 0.4);
        padding-top: 5em;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }
    .main-nav.active {
        right: 0;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em 1.5em;
        gap: 1em;
        width: 100%;
    }
    .main-nav ul li {
        width: 100%;
        margin: 0;
    }
    .main-nav ul li a {
        display: block;
        padding: 0.8em 1em;
        border-radius: 4px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    .main-nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--color-light-text);
    }
    .main-nav ul li .btn-primary {
        background-color: var(--color-secondary-accent);
        color: var(--color-dark-text);
        width: calc(100% - 2em);
        margin: 1em 1em 0 1em;
        text-align: center;
        padding: 1em 1.5em;
        box-shadow: 0 4px 15px rgba(79, 209, 197, 0.4);
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    }
    .main-nav ul li .btn-primary:hover {
        background-color: #38A169;
        color: var(--color-light-text);
        box-shadow: 0 6px 20px rgba(79, 209, 197, 0.5);
    }
    /* === AJUSTES CLAVE PARA LA VISIBILIDAD DEL MENU-TOGGLE EN IPHONE HOME === */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: var(--color-light-text);
        font-size: 1.8em;
        cursor: pointer;
        padding: 0.5em;
        position: relative; 
        z-index: 1003; 
        transition: color 0.3s ease, transform 0.3s ease;
        -webkit-transform: translate3d(0, 0, 1000px); 
        transform: translate3d(0, 0, 1000px);
        -webkit-backface-visibility: hidden; 
        backface-visibility: hidden;
        -webkit-perspective: 1000px; 
        perspective: 1000px;
        box-shadow: 0 0 0 100vmax rgba(0,0,0,0.01); 
        -webkit-box-shadow: 0 0 0 100vmax rgba(0,0,0,0.01);
    }
    .menu-toggle:hover {
        color: var(--color-primary-accent);
        transform: scale(1.1) translate3d(0, 0, 1000px); 
    }
    /* === FIN AJUSTES CLAVE === */
    
    /* General Mobile Adjustments */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative; 
        z-index: 1002;
        -webkit-transform: translateZ(0); 
        transform: translateZ(0);
    }
    .hero-section {
        padding: 5em 0;
        min-height: auto;
        position: relative; 
        z-index: 1; 
    }
    .hero-section::before, .hero-section::after {
        -webkit-transform: translateZ(0); 
        transform: translateZ(0);
    }
    .hero-container {
        -webkit-transform: translateZ(0); 
        transform: translateZ(0);
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .hero-actions .btn {
        margin: 0.5em 0.3em;
        display: block; /* Apilar botones en móvil */
    }
    .section-title {
        font-size: 1.9em;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    .service-card {
        padding: 2em;
    }
    .footer-links a {
        display: block;
        margin: 0.5em 0;
    }
    .lead-text {
        font-size: 1.1em;
    }

    /* Quienes Somos Mobile Adjustments */
    .about-section .section-title {
        margin-bottom: 1em;
    }
    .about-logo-container {
        max-width: 160px;
        margin: 1.5em auto 2em auto;
    }
    .about-subtitle {
        font-size: 1.6em;
    }
    .values-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 0 1em;
        margin-left: auto;
        margin-right: auto;
    }
    .value-card {
        padding: 1.5em;
    }
    .value-icon {
        font-size: 2.2em;
    }
    .value-title {
        font-size: 1.2em;
    }
    .value-description {
        font-size: 0.9em;
    }

    /* Contact Form Mobile Adjustments (Applies to both Formspree and Google Forms) */
    .contact-form,
    .google-form-wrapper {
        padding: 2em 1.5em;
        margin: 2em auto;
    }
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 0.9em 1.2em;
    }
    .google-form-wrapper iframe {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .service-card h3 {
        font-size: 1.4em;
    }
    .service-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    .service-icon {
        font-size: 1.8em;
    }
}

/* Ocultar el menú de hamburguesa en desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    .main-nav {
        display: block;
        position: static;
        height: auto;
        box-shadow: none;
        padding-top: 0;
        right: auto;
    }
    .main-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 1.8em;
        padding: 0;
    }
    .main-nav ul li a {
        padding: 0.5em 0;
    }
}

/* ===================================== */
/* ESTILOS DE PÁGINAS SECUNDARIAS   */
/* ===================================== */

/* Ajustes específicos para la página de Política de Privacidad (o términos, etc.) */
.privacy-content-section {
    background-color: var(--color-medium-dark-bg);
    color: var(--color-light-text);
    padding: 6em 0;
}

.privacy-content-section h1,
.privacy-content-section h2,
.privacy-content-section h3 {
    color: var(--color-light-text);
    margin-top: 2.5em;
    margin-bottom: 1em;
    font-weight: 600;
}

.privacy-content-section p {
    color: var(--color-light-text);
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.privacy-content-section ul {
    list-style: disc;
    padding-left: 1.8em;
    margin-bottom: 1.8em;
}

.privacy-content-section ul li {
    color: var(--color-light-text);
    margin-bottom: 0.8em;
    line-height: 1.6;
}

.privacy-content-section ul li::marker {
    color: var(--color-secondary-accent);
}

.privacy-content-section a {
    color: var(--color-secondary-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-content-section a:hover {
    color: var(--color-primary-accent);
    text-decoration: none;
}

.privacy-hero-section .lead-text {
    color: var(--color-light-text);
    margin-bottom: 2.5em;
}
