/* ===== SERNOVA - CSS OPTIMIZADO Y CONSOLIDADO ===== */

/* ===== 1. RESET Y CONFIGURACIÓN BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Permitir selección de texto en elementos específicos */
p, h1, h2, h3, h4, h5, h6, span, a, button, input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===== 2. VARIABLES CSS Y SISTEMA DE DISEÑO ===== */
:root {
    /* Tipografías */
    --font-heading: 'Neue Machina Bold', 'Arial Black', 'Helvetica Bold', 'Arial', sans-serif;
    --font-body: 'Avenir Next', 'Arial', 'Helvetica', sans-serif;
    
    /* Colores principales */
    --primary-color: #0A5AEF;
    --primary-dark: #0446C2;
    --secondary-color: #0A5AEF;
    --accent-color: #3ECCE0;
    
    /* Colores de texto */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    /* Variables de texto faltantes para consistencia */
    --text-color: #1f2937; /* alias de --text-dark */
    --black: #000000;
    
    /* Colores de fondo */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray: #DDDCE1;
    
    /* Bordes y sombras */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0A5AEF 0%, #0446C2 100%);
    --gradient-secondary: linear-gradient(135deg, #3ECCE0 0%, #0A5AEF 100%);
    --gradient-accent: linear-gradient(135deg, #0A5AEF 0%, #3ECCE0 100%);
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bordes redondeados */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== 3. CONFIGURACIÓN BASE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    padding-top: 70px; /* Compensar header fijo */
}

/* ===== BREADCRUMBS PARA SEO ===== */
/* Breadcrumbs removidos - no son necesarios con menú desplegable */

/* Estilos de breadcrumbs removidos */

/* Media queries de breadcrumbs removidas */

/* Responsive para sección SERNOVA - Espejo perfecto del desktop */
@media (max-width: 768px) {
    .sernova-section {
        padding: var(--spacing-xl) 0;
    }
    
    .sernova-content {
        max-width: 95%;
        padding: var(--spacing-lg);
        border-radius: 20px;
    }
    
    .sernova-description {
        font-size: 1.2rem;
        line-height: 1.4; /* Mismo que desktop */
        color: var(--text-dark);
        margin-bottom: calc(var(--spacing-sm) / 8); /* Mismo que desktop */
        text-align: center;
        position: relative;
        padding: var(--spacing-md);
        border-radius: 12px;
    }
    
    .sernova-section .section-title {
        font-size: 2.2rem; /* Ajustado para móvil */
        color: var(--text-dark);
        margin-bottom: var(--spacing-sm);
        position: relative;
    }
    
    .sernova-text-content {
        display: flex;
        flex-direction: column;
        gap: calc(var(--spacing-xs) / 4); /* Mismo que desktop */
    }
    
    .sernova-section::after {
        width: 200px;
        height: 200px;
        right: -15%;
    }
}

@media (max-width: 480px) {
    .sernova-section {
        padding: var(--spacing-lg) 0;
    }
    
    .sernova-content {
        padding: var(--spacing-md);
        border-radius: 16px;
    }
    
    .sernova-description {
        font-size: 1.1rem;
        line-height: 1.4; /* Mismo que desktop */
        color: var(--text-dark);
        margin-bottom: calc(var(--spacing-sm) / 8); /* Mismo que desktop */
        text-align: center;
        position: relative;
        padding: var(--spacing-sm);
        border-radius: 10px;
    }
    
    .sernova-section .section-title {
        font-size: 2rem; /* Ajustado para móvil pequeño */
        color: var(--text-dark);
        margin-bottom: var(--spacing-sm);
        position: relative;
    }
    
    .sernova-text-content {
        display: flex;
        flex-direction: column;
        gap: calc(var(--spacing-xs) / 4); /* Mismo que desktop */
    }
    
    .sernova-section::after {
        width: 150px;
        height: 150px;
        right: -10%;
    }
}

@media (max-width: 360px) {
    .sernova-section {
        padding: var(--spacing-md) 0;
    }
    
    .sernova-content {
        padding: var(--spacing-sm);
        border-radius: 12px;
    }
    
    .sernova-description {
        font-size: 1rem;
        line-height: 1.4; /* Mismo que desktop */
        color: var(--text-dark);
        margin-bottom: calc(var(--spacing-sm) / 8); /* Mismo que desktop */
        text-align: center;
        position: relative;
        padding: var(--spacing-sm);
        border-radius: 8px;
    }
    
    .sernova-section .section-title {
        font-size: 1.8rem; /* Ajustado para móvil muy pequeño */
        color: var(--text-dark);
        margin-bottom: var(--spacing-sm);
        position: relative;
    }
    
    .sernova-text-content {
        display: flex;
        flex-direction: column;
        gap: calc(var(--spacing-xs) / 4); /* Mismo que desktop */
    }
    
    .sernova-section::after {
        width: 120px;
        height: 120px;
        right: -8%;
    }
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, rgba(10, 90, 239, 0.08) 0%, rgba(62, 204, 224, 0.08) 100%);
    background-attachment: scroll; /* Evita artefactos en bordes al hacer scroll */
    background-size: cover;
    background-repeat: no-repeat;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    /* Sin compensación necesaria */
}

/* Tipografías */
h1, h2, h3, h4, h5, h6, .btn, .section-header h2, .hero-title, .valor-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.01em;
}

p, .hero-subtitle, .valor-desc, .service-card p {
    font-family: var(--font-body);
    font-weight: 400;
}

/* ===== 4. LAYOUT Y CONTENEDORES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    contain: layout style paint;
}

/* ===== 5. NAVEGACIÓN ===== */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    z-index: 1001;
    padding: var(--spacing-sm) 0;
    min-height: 70px;
    box-shadow: none;
    border-bottom: 0;
    display: flex;
    align-items: center;
    /* Reset completo */
    border: none;
    outline: none;
    /* Solución definitiva para líneas extrañas */
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Pseudo-elemento removido para eliminar líneas extrañas */

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg) 0 var(--spacing-lg); /* Padding uniforme izquierda y derecha */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    /* Reset para evitar líneas extrañas */
    border: none;
    outline: none;
}

/* Distribución uniforme de elementos del header */
.nav-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-xl); /* Aumentado para 5 elementos del menú */
    align-items: center;
    justify-content: center; /* Centrar los elementos del menú */
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem; /* Aumentado para mejor legibilidad y elegancia */
    font-weight: 500;
    transition: var(--transition-normal);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.nav-menu a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-white);
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-sernova-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    min-width: 55px;
    min-height: 55px;
    max-width: 250px;
    display: block;
}

/* Estilos del menú ya definidos arriba - eliminando duplicación */

.nav-cta {
    display: flex;
    align-items: center;
    margin: 0 var(--spacing-xl);
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--spacing-sm);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 3px 0;
    transition: var(--transition-normal);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== 6. HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 0 40px; /* Reducido de 80px a 40px para menos espacio */
    top: -2px; /* Solapa bajo el header para eliminar línea */
    background: linear-gradient(135deg, rgba(10, 90, 239, 0.05) 0%, rgba(62, 204, 224, 0.05) 100%);
    overflow: hidden;
    z-index: 1;
}

/* Sellado superior para evitar cualquier micro-separación */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-dark);
    pointer-events: none;
    z-index: 2;
}



.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg); /* Padding uniforme izquierda y derecha */
}

.hero-content {
    z-index: 2;
    text-align: left;
    padding-top: 0; /* Sin padding superior para subir todos los elementos */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: var(--spacing-2xl); /* Más aire entre título y subtítulo */
    font-weight: 700;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg); /* Reducido para alinear con el botón */
    font-weight: 700;
    max-width: 90%; /* Reducir ancho para mejor legibilidad */
}

.hero-subtitle .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Estilos de hero-coverage removidos - integrados al subtítulo */

/* Estilos del icono removidos - no se usan */

/* Efectos hover y animaciones removidos para mantener solo texto elegante */

.hero-right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    width: 100%;
}

.hero-avatar {
    width: 540px;
    height: 540px;
    object-fit: cover;
    margin-bottom: var(--spacing-xs); /* Reducido para acercar nombre y cargo */
    margin-top: -1rem; /* Reducido de -2rem a -1rem */
}

.hero-name-gradient {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(90deg, #0A5AEF 0%, #3ECCE0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    margin-top: -0.5rem; /* Subir el nombre para acercarlo al avatar */
}

/* Pseudo-elemento removido para eliminar marca de agua */

/* Animación shine removida */

.hero-profession {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-top: -0.5rem;
    text-align: center;
    width: 100%;
    margin-bottom: 0; /* Eliminar margen inferior */
}

/* ===== 7. BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
    border: none;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 90, 239, 0.3);
}

.btn-primary i {
    transition: all 0.3s ease;
}

.btn-primary:hover i {
    transform: scale(1.05);
}

/* Efectos ::before y ::after removidos para un diseño minimalista */

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== 8. SECCIONES ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

/* ===== 9. VALORES ===== */
.valores-section {
    padding: var(--spacing-xl) 0; /* Reducido de 2xl a xl para menos espacio */
    position: relative;
}



.valores-title {
    font-size: 2.5rem; /* Tamaño estándar para todos los títulos */
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-lg); /* Reducido de 2xl a lg para menos espacio */
    position: relative;
    z-index: 1;
    line-height: 1.2; /* Interlineado consistente */
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.valor-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.valor-card:hover::before {
    transform: scaleX(1);
}

.valor-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
}

.valor-icon i {
    font-size: 2rem;
    color: var(--text-white);
    transition: var(--transition-normal);
}

.valor-card:hover .valor-icon {
    /* transform removido para un hover más elegante */
    box-shadow: var(--shadow-lg);
}

.valor-card:hover .valor-icon i {
    transform: rotate(360deg);
}

.valor-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.valor-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.valor-card:hover .valor-title {
    color: var(--primary-color);
}

.valor-card:hover .valor-desc {
    color: var(--text-dark);
}

/* ===== SECCIÓN SERNOVA REDISEÑADA ===== */
.sernova-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 90, 239, 0.05) 0%, rgba(62, 204, 224, 0.05) 100%);
    overflow: hidden;
}

/* Fondo unificado para secciones */
.services, .testimonials, .valores-section {
    background: linear-gradient(135deg, rgba(10, 90, 239, 0.05) 0%, rgba(62, 204, 224, 0.05) 100%);
}

/* Elementos decorativos removidos - fondo transparente */

.sernova-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: var(--spacing-2xl);
}

.sernova-description {
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-sm) / 8);
    text-align: center;
    position: relative;
    padding: var(--spacing-lg);
}

.sernova-description:last-child {
    margin-bottom: 0;
}

/* Estilos adicionales para la sección SERNOVA */
.sernova-section .section-header {
    margin-bottom: var(--spacing-lg); /* Reducido de xl a lg para menos espacio */
}

.sernova-section .section-title {
    font-size: 2.5rem;
    color: var(--text-dark); /* Cambiado a negro para coherencia con otros títulos */
    margin-bottom: var(--spacing-sm); /* Reducido para espaciado más elegante */
    position: relative;
}

/* Línea intermedia removida por solicitud del usuario */

.sernova-text-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-xs) / 4);
}

.sernova-description strong {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.sernova-description em {
    font-style: normal;
    background: linear-gradient(135deg, #3ECCE0, #0A5AEF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Animaciones removidas - diseño simplificado */

/* ===== 10. SERVICIOS ===== */
.services {
    padding: var(--spacing-xl) 0 var(--spacing-xl); /* Agregado respiro inferior (de lg a xl) */
    position: relative;
}

/* Reducir espacio entre título y tarjetas de servicios */
.services .section-header {
    margin-bottom: var(--spacing-lg); /* Reducido de 2xl a lg (de 48px a 24px) */
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.service-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(10, 90, 239, 0.3);
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--text-white);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(10, 90, 239, 0.4);
}

.service-card:hover .service-icon i {
    transform: scale(1.05);
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card:hover p {
    color: var(--text-dark);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.service-benefits {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.service-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.service-benefits li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: var(--spacing-sm);
    font-size: 1.1rem;
}

/* ===== 11. FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: 0;
    position: relative;
    z-index: 10;
    width: 100%;
}



.footer > * {
    position: relative;
    z-index: 1;
}

.footer-social-section {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md); /* Reducido de var(--spacing-lg) para menos separación */
    margin-bottom: var(--spacing-xs); /* Reducido para menos separación */
    margin-top: var(--spacing-md);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.social-icon i {
    font-size: 1.5rem;
    z-index: 2;
}

/* ===== FOOTER CONTACT ROW ===== */
.footer-contact-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg); /* Aumentado para separar más del formulario */
}

.footer-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-md); /* Reducido padding para altura menor */
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem; /* Tipografía más ligera */
    min-width: 180px; /* Reducido de 200px */
    width: 180px;
    flex: 0 0 180px;
    height: 40px; /* Altura fija más compacta */
}

.footer-contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.footer-contact-btn i {
    font-size: 0.9rem; /* Icono más pequeño */
    color: var(--accent-color);
    width: auto; /* Quitado ancho fijo */
    height: auto; /* Quitado alto fijo */
    display: inline-block; /* Cambiado de flex a inline-block */
    background: transparent; /* Quitado el fondo circular */
    border-radius: 0; /* Quitado el border-radius */
}

.footer-contact-text {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

.footer-phrase {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.footer-phrase p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

/* ===== 21. FORMULARIO DE CONTACTO ===== */
.footer-contact-form {
    margin: var(--spacing-md) 0; /* Un poco más de espacio para respiración */
    text-align: center;
}

.footer-contact-form h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm); /* Un poco más de espacio después del título */
    font-weight: 600;
    line-height: 1.2; /* Interlineado más cómodo */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs); /* Espacio mínimo entre elementos para unidad compacta */
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 0; /* Sin margen extra */
}

.form-group input {
    width: 100%;
    padding: var(--spacing-md); /* Padding más cómodo */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

/* ===== PRIVACY NOTICE ===== */
.privacy-notice {
    margin: var(--spacing-xs) 0 0 0; /* Sin margen inferior para unidad compacta */
    text-align: center;
    padding: 0;
}

.privacy-notice .privacy-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    font-size: 0.8rem;
    font-weight: 400;
    transition: var(--transition-normal);
    display: block;
}

.privacy-notice .privacy-link:hover {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

/* ===== CONTACT SUBMIT BUTTON ===== */
.contact-submit-btn {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%); /* Estado inicial: gradiente azul */
    color: var(--text-white); /* Estado inicial: texto blanco */
    border: 2px solid transparent; /* Estado inicial: sin borde */
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    margin: 0; /* Sin margen para unidad ultra compacta */
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Sombra elegante */
}

.contact-submit-btn:hover {
    background: rgba(255, 255, 255, 0.2); /* Hover: fondo blanco transparente */
    color: var(--accent-color); /* Hover: texto azul aqua */
    border: 2px solid var(--accent-color); /* Hover: borde azul aqua */
    box-shadow: none; /* Hover: sin sombra */
}

.contact-submit-btn:active {
    transform: translateY(-1px);
}

.contact-submit-btn i {
    font-size: 1.2rem;
}

/* ===== MEDIA QUERIES PARA FORMULARIO EN MÓVIL ===== */
@media (max-width: 768px) {
    .footer-contact-form {
        margin: var(--spacing-xs) 0; /* Espacio mínimo */
        padding: 0 var(--spacing-md);
    }
    
    .footer-contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-xs); /* Mínimo espacio */
        line-height: 1; /* Interlineado mínimo */
    }
    
    .contact-form {
        max-width: 100%;
        gap: var(--spacing-xs); /* Espacio mínimo */
    }
    
    .form-group input {
        padding: var(--spacing-sm); /* Padding compacto */
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .contact-submit-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
        min-height: 44px;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .privacy-notice {
        margin: 0; /* Sin separación */
        padding: 0; /* Sin padding */
    }

    /* Ocultar botón flotante cuando el teclado está abierto en móvil */
    .keyboard-open .whatsapp-float { display: none; pointer-events: none; }
}

@media (max-width: 480px) {
    .footer-contact-form {
        margin: var(--spacing-xs) 0; /* Espacio mínimo */
        padding: 0 var(--spacing-sm);
    }
    
    .footer-contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs); /* Mínimo espacio */
        line-height: 1; /* Interlineado mínimo */
    }
    
    .contact-form {
        gap: var(--spacing-xs); /* Espacio mínimo */
    }
    
    .form-group input {
        padding: var(--spacing-sm); /* Padding compacto */
        font-size: 16px;
    }
    
    .contact-submit-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.95rem;
        min-height: 44px;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .privacy-notice {
        margin: 0; /* Sin separación */
        padding: 0; /* Sin padding */
    }
}

@media (max-width: 360px) {
    .footer-contact-form h3 {
        font-size: 1.1rem;
    }
    
    .contact-form input,
    .contact-form select {
        padding: var(--spacing-sm);
        font-size: 16px;
    }
    
    .contact-submit-btn {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
        min-height: 40px;
        margin: 0 auto;
        display: block;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Hacer que el texto en negritas del footer sea más visible */
.footer-bottom strong {
    color: rgba(255, 255, 255, 1) !important; /* Blanco sólido para negritas */
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Sombra sutil para más contraste */
}

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

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* Modal Sobre Mí específico */
#sobreMiModal .modal-content {
    max-height: 85vh;
    overflow-y: auto;
    margin: 2.5% auto;
    padding-top: 4rem; /* Espacio para el botón de cerrar */
}

#sobreMiModal .modal-content::-webkit-scrollbar {
    width: 8px;
}

#sobreMiModal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#sobreMiModal .modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

#sobreMiModal .modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.close {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: 2px solid rgba(10, 90, 239, 0.2);
    transition: var(--transition-normal);
    z-index: 2001; /* Asegurar que esté por encima del contenido */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(10, 90, 239, 0.3);
    transform: scale(1.05);
}

.close:active {
    transform: scale(0.95);
}

/* ===== 13. WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: #25D366;
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.whatsapp-float a:hover {
    /* transform removido para un hover más elegante */
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.whatsapp-float i {
    font-size: 3.1rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { /* transform removido para un hover más elegante */ }
    100% { transform: scale(1); }
}

/* ===== 14. MEDIA QUERIES ===== */

/* Tablets */
@media (max-width: 1024px) {
    .navbar {
        padding: var(--spacing-xs) 0;
        min-height: 65px;
    }
    
    .nav-container {
        padding: 0 var(--spacing-lg);
        gap: var(--spacing-lg);
    }
    
    .nav-sernova-logo {
        height: 50px;
        width: auto;
        min-width: 50px;
        min-height: 50px;
        max-width: 220px;
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        padding: var(--spacing-xl) 0;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: var(--spacing-md) var(--spacing-lg);
        width: 100%;
        border-radius: 0;
        font-size: 1.1rem;
    }
    
    .nav-cta {
        margin: 0;
        order: 2;
    }
    
    .nav-cta .btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        overflow: hidden;
    }
    
    .nav-cta .btn:hover {
        box-shadow: var(--shadow-lg);
        color: var(--text-white);
        background: linear-gradient(90deg, #0A5AEF 0%, #3ECCE0 100%);
        filter: brightness(1.05);
        /* transform removido para un hover más elegante */
    }
    
    .nav-cta .btn:hover i {
        /* transform removido para un hover más elegante */
        filter: brightness(1.1);
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        text-align: left;
    }
    
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .navbar {
        padding: var(--spacing-xs) 0;
        min-height: 60px;
    }
    
    .nav-container {
        padding: 0 0 0 var(--spacing-sm);
        gap: var(--spacing-md);
    }
    
    .nav-sernova-logo {
        height: 45px;
        width: auto;
        min-width: 45px;
        min-height: 45px;
        max-width: 200px;
    }
    
    .hamburger {
        display: flex;
        order: 3;
        background: var(--primary-color);
        border: none;
        border-radius: var(--radius-sm);
        padding: var(--spacing-xs);
        cursor: pointer;
        z-index: 1000;
    }
    
    .hamburger span {
        background: var(--text-white);
        height: 3px;
        width: 25px;
        margin: 3px 0;
        border-radius: 2px;
        transition: var(--transition-normal);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        padding: var(--spacing-xl) 0;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        bottom: 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: var(--spacing-lg) var(--spacing-lg);
        width: 100%;
        border-radius: 0;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin: 0;
        order: 2;
    }
    
    .nav-cta .btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        overflow: hidden;
    }
    
    .nav-cta .btn:hover {
        box-shadow: var(--shadow-lg);
        color: var(--text-white);
        background: linear-gradient(90deg, #0A5AEF 0%, #3ECCE0 100%);
        filter: brightness(1.05);
        /* transform removido para un hover más elegante */
    }
    
    .nav-cta .btn:hover i {
        /* transform removido para un hover más elegante */
        filter: brightness(1.1);
    }
    
    .hero-container {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: var(--spacing-md);
        text-align: left;
        padding: 0 var(--spacing-md);
        justify-items: center; /* centrar contenido horizontalmente */
    }
    
    .hero-content {
        order: 1;
        min-width: 0;
        flex: 1;
        width: 100%;
        max-width: none;
        text-align: center; /* centrar textos en móvil */
    }
    
    .hero-right-section {
        order: 2;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-md);
    }
    
    /* Estilos de hero-coverage removidos - integrados al subtítulo */
    
    .hero-avatar {
        width: 240px;
        height: 240px;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-contact-row {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-contact-btn {
        min-width: 200px;
        width: 200px !important;
        flex: 0 0 200px;
        height: 36px; /* más estilizado */
        padding: var(--spacing-xs) var(--spacing-md);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.08);
    }
    
    /* Modal optimizado para tablets */
    .modal-content {
        margin: 5% auto;
        padding: var(--spacing-lg);
        width: 90%;
        max-width: 500px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    #modalSobreMiContent h2 {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    #modalSobreMiContent h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    #modalSobreMiContent p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.6 !important;
    }
}

/* Móviles */
@media (max-width: 480px) {
    body {
        background-attachment: scroll;
        background-size: 100% 100%;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .navbar {
        padding: var(--spacing-sm) 0;
        min-height: 60px;
        display: flex;
        align-items: center;
        box-shadow: var(--shadow-sm);
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-md);
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-sernova-logo {
        height: 45px;
        width: auto;
        min-width: 45px;
        min-height: 45px;
        max-width: 180px;
        object-fit: contain;
    }
    
    .hamburger {
        display: flex;
        order: 3;
        padding: var(--spacing-xs);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        padding: var(--spacing-xl) 0;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        bottom: 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: var(--spacing-lg) var(--spacing-xl);
        width: 100%;
        border-radius: 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-white);
    }
    
    .nav-cta {
        margin: 0;
        order: 2;
    }
    
    .nav-cta .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        overflow: hidden;
        border-radius: var(--radius-md);
        font-weight: 600;
    }
    
    .nav-cta .btn:hover {
        box-shadow: var(--shadow-lg);
        color: var(--text-white);
        background: linear-gradient(90deg, #0A5AEF 0%, #3ECCE0 100%);
        filter: brightness(1.05);
        /* transform removido para un hover más elegante */
    }
    
    .nav-cta .btn:hover i {
        /* transform removido para un hover más elegante */
        filter: brightness(1.1);
    }
    
    .hero {
        min-height: 86vh;
        padding: 64px 0 50px; /* más arriba para despejar el nombre del botón WA */
        background: linear-gradient(135deg, rgba(10, 90, 239, 0.05) 0%, rgba(62, 204, 224, 0.05) 100%);
    }
    
    .hero-container {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: var(--spacing-xl);
        text-align: left;
        padding: 0 var(--spacing-md);
        align-items: center;
        justify-items: center; /* centrar contenido horizontalmente */
    }
    
    .hero-content {
        order: 1;
        padding-right: 0;
        text-align: center; /* centrar textos en móvil */
    }
    
    .hero-right-section {
        order: 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-lg); /* más respiro con CTA */
        color: var(--text-dark);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-md);
        line-height: 1.5;
        color: var(--text-light);
    }
    
    /* Estilos de hero-coverage removidos - integrados al subtítulo */
    
    .hero-divider {
        margin: var(--spacing-lg) 0;
        opacity: 0.8;
    }
    
    .hero-divider span {
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    
    .hero-purpose-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-avatar {
        width: 220px;
        height: 220px;
        object-fit: cover;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-name-gradient {
        font-size: 2.6rem;
        margin-bottom: calc(var(--spacing-xs) / 2); /* más cerca de la profesión */
        line-height: 1.2;
    }
    
    .hero-profession {
        font-size: 1.5rem; /* como desktop */
        font-weight: 700;
        margin-top: -0.35rem; /* pegado pero respira */
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .valor-card {
        padding: var(--spacing-lg);
        min-height: 180px;
    }
    
    .valor-card .valor-title {
        font-size: 1.4rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .valor-card .valor-desc {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
        min-height: 200px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.3;
    }
    
    .service-card p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .footer-contact-row {
        flex-direction: row;
        gap: var(--spacing-md);
        align-items: center;
        justify-content: center;
    }
    
    .footer-contact-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.85rem;
        min-width: 200px;
        width: 200px;
        max-width: 200px;
        flex: 0 0 200px;
        justify-content: center;
        text-align: center;
        height: 36px;
    }
    
    .footer-contact-btn:hover {
        /* transform removido para un hover más elegante */
        box-shadow: var(--shadow-lg);
    }
    
    .footer-contact-btn:active {
        transform: translateY(0);
    }
    
    .whatsapp-float {
        bottom: calc(90px + env(safe-area-inset-bottom));
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 62px;
        height: 62px;
    }
    
    /* Hover sin transformación adicional (intencional) */
    .whatsapp-float a:hover { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
    
    .whatsapp-float i {
        font-size: 2.8rem;
    }
    
    .social-icon {
        width: 55px;
        height: 55px;
        border-radius: 50%;
    }
    
    .social-icon i {
        font-size: 1.4rem;
    }
    
    /* Modal optimizado para móvil */
    .modal-content {
        margin: 10% auto;
        padding: var(--spacing-md);
        width: 95%;
        max-width: none;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    #modalSobreMiContent h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    #modalSobreMiContent h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    #modalSobreMiContent p {
        font-size: 0.95rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.5 !important;
    }
}

/* Móviles pequeños */
@media (max-width: 430px) {
    body {
        background-attachment: scroll;
        background-size: 100% 100%;
    }
    
    .nav-sernova-logo {
        height: 32px;
        width: auto;
        min-width: 32px;
        min-height: 32px;
        max-width: 120px;
    }
    
    .navbar {
        padding: var(--spacing-sm) 0;
        min-height: 75px;
    }
    
    .nav-container {
        padding: 0 0 0 var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .nav-cta .btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        overflow: hidden;
    }
    
    .nav-cta .btn:hover {
        box-shadow: var(--shadow-lg);
        color: var(--text-white);
        background: linear-gradient(90deg, #0A5AEF 0%, #3ECCE0 100%);
        filter: brightness(1.05);
        /* transform removido para un hover más elegante */
    }
    
    .nav-cta .btn:hover i {
        /* transform removido para un hover más elegante */
        filter: brightness(1.1);
    }
    
    .hero {
        min-height: 80vh;
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.1;
        margin-bottom: var(--spacing-xs); /* compactado */
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-cta { margin-top: var(--spacing-xs); }
    
    .hero-avatar {
        width: 180px;
        height: 180px;
    }
    
    .hero-name-gradient {
        font-size: 1.1rem;
    }
    
    .hero-profession {
        font-size: 0.8rem;
    }
}

/* Móviles extra pequeños */
@media (max-width: 360px) {
    body {
        background-attachment: scroll;
        background-size: 100% 100%;
    }
    
    .nav-sernova-logo {
        height: 30px;
        width: auto;
        min-width: 30px;
        min-height: 30px;
        max-width: 110px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        font-weight: 700;
    }
    
    /* Estilos de hero-coverage removidos - integrados al subtítulo */
    
    .hero-avatar {
        width: 160px;
        height: 160px;
    }
    
    .hero-name-gradient {
        font-size: 1rem;
    }
    
    .hero-profession {
        font-size: 0.75rem;
        font-weight: 700;
        margin-top: -0.2rem;
    }
    
    .valor-card {
        padding: var(--spacing-lg);
        min-height: 200px;
        margin: 0;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .valor-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
        margin: 0;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
    
    .footer-contact-btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        min-width: 220px;
        width: 100% !important;
        max-width: 280px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }
    
    .footer-contact-btn:hover {
        /* transform removido para un hover más elegante */
        box-shadow: var(--shadow-lg);
    }
    
    .footer-phrase p {
        font-size: 1.1rem;
        line-height: 1.6;
        color: var(--text-light);
    }
    
    .whatsapp-float a {
        width: 56px;
        height: 56px;
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease;
    }
    
    .whatsapp-float a:hover {
        /* transform removido para un hover más elegante */
        box-shadow: var(--shadow-lg);
    }
    
    .whatsapp-float i {
        font-size: 2.5rem;
    }
    
    .social-icon {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    
    .social-icon:hover {
        /* transform removido para un hover más elegante */
        box-shadow: var(--shadow-lg);
    }
    
    .social-icon i {
        font-size: 1.6rem;
    }
}

/* ===== 15. ACCESIBILIDAD Y REDUCCIÓN DE MOVIMIENTO ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    .hero-title,
    .hero-subtitle,
    .valor-title,
    .service-card h3 {
        color: #000000;
    }
    
    .btn-primary {
        background: #000000;
        color: #ffffff;
    }
}

/* ===== 16. FOCUS VISIBLE ===== */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== 17. SCREEN READER ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 18. ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 19. SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 80%;
    margin-bottom: 1em;
}

.skeleton-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== 20. MICRO-INTERACTIONS ===== */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.footer-contact-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ===== 22. TESTIMONIOS ===== */
/* ===== 22. TESTIMONIOS INNOVADOR ===== */
.testimonials {
    padding: var(--spacing-3xl) 0 0 0;
    position: relative;
    overflow: hidden;
    /* Fondo idéntico a las demás secciones */
}

/* Elemento ::before removido para eliminar marca de agua */

.testimonials .section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 2;
}

.testimonials .section-header h2 {
    color: var(--text-color);
    font-size: 2.5rem; /* Tamaño estándar para todos los títulos */
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.2; /* Interlineado consistente */
}

.testimonials-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    z-index: 2;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--spacing-xl);
    width: calc(200% + var(--spacing-xl)); /* Ajustado para 3 y luego 2 */
    margin-left: 0; /* Asegurar que no haya margen izquierdo */
}

.testimonial-card {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-stars {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    justify-content: center;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 1rem;
    /* Removido filter y animaciones para mejor performance */
}

.testimonial-content blockquote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    position: relative;
    quotes: none;
    text-align: center;
    font-weight: 500;
}

.testimonial-content blockquote::before,
.testimonial-content blockquote::after {
    content: none;
}

.testimonial-author {
    text-align: center;
    position: relative;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--text-color);
}

.author-info h4 {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-info p {
    color: var(--text-color);
    font-size: 0.85rem;
    margin: 0 0 var(--spacing-xs) 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 16px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.author-info p:last-child {
    margin-bottom: 0;
    font-size: 0.75rem;
    text-transform: none;
    background: transparent;
    padding: 0;
    color: var(--text-color);
    opacity: 0.8;
    display: block;
}

/* Carrusel Controls */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    z-index: 100;
    position: relative;
    padding: 0 var(--spacing-xl);
}

/* Flechas del carrusel */
.carousel-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(10, 90, 239, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 101;
    position: relative;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(10, 90, 239, 0.3);
    transform: scale(1.05);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow i {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(10, 90, 239, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(10, 90, 239, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    border-color: var(--accent-color);
}

.carousel-dot:hover {
    background: var(--accent-color);
    /* transform removido para un hover más elegante */
}

/* Carrusel optimizado - sin animaciones pesadas */
.testimonials-carousel { overflow: hidden; }

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-card {
        min-width: 350px;
        padding: var(--spacing-xl);
    }
    
    .testimonials-carousel {
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    .testimonials .section-header h2 {
        font-size: 2rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .testimonial-card {
        min-width: 300px;
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
        box-shadow: var(--shadow-md);
    }
    
    .testimonials-carousel {
        padding: 0 var(--spacing-md);
        max-width: 100%;
    }
    
    .testimonials-track {
        gap: var(--spacing-lg);
        width: calc(200% + var(--spacing-lg));
    }
    
    .carousel-controls {
        margin-top: var(--spacing-xl);
        padding: 0 var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .carousel-arrow {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--primary-color);
        color: #ffffff;
        border: 2px solid rgba(10, 90, 239, 0.2);
        box-shadow: var(--shadow-md);
        transition: all var(--transition-normal);
    }
    
    .carousel-arrow:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }
    
    .carousel-arrow i { font-size: 1.3rem; }
    
    /* Mejorar touch targets para móvil */
    .carousel-arrow:active {
        transform: scale(0.95);
        background: var(--primary-dark);
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .testimonial-card {
        min-width: 260px;
        padding: var(--spacing-md);
        margin: 0 var(--spacing-xs);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
    
    .testimonials .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: var(--spacing-md);
    }
    
    .testimonial-content blockquote {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }
    
    .author-info h4 {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .author-info p {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .carousel-controls {
        margin-top: var(--spacing-lg);
        padding: 0 var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .carousel-arrow {
        width: 44px;
        height: 44px;
        background: var(--primary-color);
        color: #ffffff;
        border: 2px solid rgba(10, 90, 239, 0.2);
        box-shadow: var(--shadow-sm);
    }
    
    .carousel-arrow i { font-size: 1.1rem; }
    
    .carousel-dots {
        gap: var(--spacing-sm);
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 360px) {
    .testimonial-card {
        min-width: 240px;
        padding: var(--spacing-sm);
        margin: 0 var(--spacing-xs);
        border-radius: var(--radius-md);
    }
    
    .testimonial-content blockquote {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-sm);
    }
    
    .author-info h4 {
        font-size: 0.8rem;
    }
    
    .author-info p {
        font-size: 0.7rem;
        padding: var(--spacing-xs);
    }
    
    .testimonial-stars i {
        font-size: 0.9rem;
    }
    
    .carousel-controls {
        gap: var(--spacing-xs);
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow i {
        font-size: 0.9rem;
    }
}

/* Breakpoint adicional para pantallas muy pequeñas */
@media (max-width: 320px) {
    .testimonial-card {
        min-width: 220px;
        padding: calc(var(--spacing-sm) / 2);
    }
    
    .testimonial-content blockquote {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .author-info h4 {
        font-size: 0.75rem;
    }
    
    .author-info p {
        font-size: 0.65rem;
        padding: calc(var(--spacing-xs) / 2);
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow i {
        font-size: 0.8rem;
    }
}

/* Mejorar experiencia táctil en dispositivos móviles */
@media (hover: none) and (pointer: coarse) {
    .carousel-arrow {
        transition: none;
    }
    
    .carousel-arrow:active {
        transform: scale(0.9);
        background: var(--primary-dark);
    }
    
    .testimonial-card {
        -webkit-tap-highlight-color: transparent;
    }
}



/* ===== 24. ACCESIBILIDAD AVANZADA ===== */
/* Focus visible para todos los elementos interactivos */
*:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--text-dark);
    }
    
    .footer-contact-btn {
        border: 2px solid var(--text-white);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 19. LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== 20. TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .valor-card:hover,
    .service-card:hover,
    .social-icon:hover,
    .footer-contact-btn:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .btn:active,
    .valor-card:active,
    .service-card:active,
    .social-icon:active,
    .footer-contact-btn:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-sm);
    }
    
    .footer-contact-btn:active {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(0.95);
    }
    
    .footer-contact-btn:active i {
        transform: scale(0.9);
    }
    
    .footer-contact-btn:active span {
        transform: translateX(1px);
    }
}

/* ===== FOOTER LEGAL ===== */
.footer-legal {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.footer-legal-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-normal);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    line-height: 1.2;
}

.footer-legal-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.footer-legal-link i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Footer bottom ajustado */
.footer-bottom {
    text-align: center;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive para footer legal */
@media (max-width: 768px) {
    .footer-legal-link {
        font-size: 0.95rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .footer-bottom p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .footer-legal-link {
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* ===== PRIVACY CHECKBOX ===== */
.privacy-checkbox {
    margin: var(--spacing-xs) 0; /* Reducido al mínimo */
    text-align: center;
    line-height: 0.8; /* Reducido 50% del interlineado */
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: 1rem; /* Aumentado de 0.9rem */
    color: var(--text-white);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px; /* Aumentado de 18px */
    height: 20px; /* Aumentado de 18px */
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkmark {
    display: none;
}

.privacy-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    font-size: 1rem;
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
}

.privacy-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
    background: transparent;
}

/* Responsive para privacy checkbox */
@media (max-width: 768px) {
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .checkmark {
        height: 18px;
        width: 18px;
    }
    
    .checkmark:after {
        left: 5px;
        top: 1px;
        width: 4px;
        height: 8px;
    }
}

/* Estilos del mini menú removidos - botón de inicio eliminado */

/* Responsive para nav menu */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 75px;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-xl) 0;
        box-shadow: var(--shadow-lg);
        z-index: 9999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--spacing-lg) var(--spacing-xl);
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a::after {
        display: none;
    }
}

/* Responsive para botones de contacto */
@media (max-width: 768px) {
    .footer-contact-row {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .footer-contact-btn {
        min-width: 250px;
        width: 250px;
        flex: 0 0 250px;
    }
}

@media (max-width: 480px) {
    .footer-contact-btn {
        min-width: 280px;
        width: 280px;
        flex: 0 0 280px;
    }
}

/* ===== HERO CTA ===== */
.hero-cta {
    margin-top: 12px; /* Margen superior específico para separar del subtítulo */
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(10, 90, 239, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(10, 90, 239, 0.2);
    transform: translateY(-3px);
}

.hero-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(10, 90, 239, 0.3);
}

.hero-btn i {
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(3px) scale(1.1);
}

.hero-btn span {
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.hero-btn:hover span {
    transform: translateX(2px);
}

/* Responsive para hero CTA */
@media (max-width: 768px) {
    .hero-cta {
        margin-top: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1.1rem;
        width: 100%;
        max-width: none;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
        width: 100%;
        max-width: none;
    }
}

/* ===== FOOTER BOTTOM SECTION ===== */
.footer-bottom-section {
    margin-top: calc(var(--spacing-xs) + 45px); /* despeje reducido a la mitad */
    text-align: center;
    line-height: 0.8; /* Reducido 50% del interlineado */
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-sm) 0; /* Reducido de var(--spacing-md) */
    margin-top: var(--spacing-sm); /* Reducido de var(--spacing-md) */
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.0;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Estilos del privacy notice ya definidos arriba - duplicación removida */

/* Estilos del mini menú removidos - botón de inicio eliminado */

/* Estilos del footer bottom ya definidos arriba - duplicación removida */ 
.btn-calculadora:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(10, 90, 239, 0.3);
}

/* ===== Carrusel: dots elegantes en móvil ===== */
@media (max-width: 768px) {
    .carousel-dots {
        justify-content: center;
        gap: var(--spacing-sm);
    }
    .carousel-dot {
        width: 12px;
        height: 12px;
        border-radius: 999px;
        background: rgba(10, 90, 239, 0.15);
        border: 2px solid rgba(10, 90, 239, 0.35);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: all 0.25s ease;
    }
    .carousel-dot.active {
        background: var(--primary-color);
        border-color: var(--accent-color);
        transform: scale(1.2);
    }
    .carousel-dot:hover {
        background: var(--accent-color);
    }
    .carousel-dot:focus-visible {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* ===== Micro-optimizaciones para reducir LAG ===== */
@media (max-width: 768px) {
    body { background-attachment: scroll; }
}

.service-card,
.footer-contact-btn,
.carousel-arrow { will-change: transform; }
/* ===== AJUSTES MÓVIL: Hero y Overlay ===== */
@media (max-width: 768px) {
    /* Ocultar subtítulo del hero en móvil */
    .hero-subtitle { display: none; }

    /* Igualar nombre y cargo a desktop */
    .hero-name-gradient {
        font-size: 2.6rem;
        margin-top: -0.5rem;
    }
    .hero-profession {
        font-size: 1.5rem;
        font-weight: 700;
        margin-top: -0.5rem;
    }

    /* Compactar CTA del hero */
    .hero-cta { margin-top: var(--spacing-sm); }
}

/* Overlay para menú móvil */
@media (max-width: 768px) {
    body.menu-open { overflow: hidden; }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .menu-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}
/* ===== ANIMACIONES WHATSAPP ===== */
@keyframes whatsapp-attention {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes whatsapp-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(37, 211, 102, 0.8);
    }
}

.whatsapp-float a {
    animation: whatsapp-attention 3s ease-in-out infinite;
}

.whatsapp-float a:hover {
    animation: none;
    transform: scale(1.1);
}

.whatsapp-float a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.2);
    animation: whatsapp-glow 2s ease-in-out infinite;
    z-index: -1;
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float a,
    .whatsapp-float a::before {
        animation: none !important;
    }
}
