/* ============================================
   1. VARIABLES Y RESET
   ============================================ */
   :root{
    --bg: #ffffff;
    --panel: #ffffff;
    --panel2: #f9fafb;

    --text: #001D39;       
    --muted: #0A4174;      

    /* --- NUEVA PALETA DARK MODE (Paleta de la imagen) --- */
    --bg-dark-1: #001D39;   /* Azul muy oscuro */
    --bg-dark-2: #0A4174;   /* Azul profundo */
    --bg-dark-3: #49769F;   /* Azul medio-oscuro */
    --text-on-dark: #BDD8E9; /* Azul muy pálido para texto */
    --muted-on-dark: #7BBDE8; /* Azul cielo claro para texto secundario */
    --border-on-dark: rgba(189, 216, 233, 0.2); /* Bordes sutiles con azul pálido */

    --line: rgba(1,29,57,.12);

    --accent: #0A4174;     /* Azul medio como color principal */
    --accent2: #0A4174;    /* Azul claro desaturado */
    --accent-light: #7BBDE8; /* Azul cielo claro */
    --accent-lighter: #BDD8E9; /* Azul muy pálido */

    --shadow: 0 10px 30px rgba(37,99,235,.08);

    --radius: 18px;
    --radius2: 26px;
    --max: 1300px;

    --glow: rgba(37,99,235,.18);
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.page-content {
    opacity: 1;
}

a { color: inherit; text-decoration: none; }
.container{ width: min(var(--max), 98vw); margin: 0 auto; }

/* ============================================
   2. LAYOUT BASE
   ============================================ */

main{
    position: relative;
    z-index: 1;
}

section{ 
    padding: 90px 0; 
    position: relative;
    transition: background-color 0.3s ease;
}

/* --- ESTILOS PARA SECCIONES OSCURAS --- */
section.section-dark {
    background-color: var(--bg-dark-1);
    background-image: 
        radial-gradient(ellipse at top left, rgba(37,99,235,.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(59,130,246,.04) 0%, transparent 50%),
        linear-gradient(to bottom right, var(--bg-dark-1), var(--bg-dark-2));
    color: var(--text-on-dark);
    position: relative;
    transition: background-color 0.8s ease, background-image 0.8s ease;
}

/* Sección de servicios con fondo oscuro fijo */
#servicios,
.services {
    background-color: var(--bg-dark-1);
    background-image: 
        radial-gradient(ellipse at top left, rgba(78,142,162,.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(110,162,179,.04) 0%, transparent 50%),
        linear-gradient(to bottom right, var(--bg-dark-1), var(--bg-dark-2));
}

section.section-dark .section-title h2 {
    color: #ffffff;
}

section.section-dark .section-title p {
    color: var(--muted-on-dark);
    margin-top: 8px;
}

/* Cards en sección oscura (Efecto Glass mejorado con nueva paleta) */
section.section-dark .card {
    background: rgba(10, 65, 116, 0.4); /* --bg-dark-2 con transparencia */
    border-color: rgba(189, 216, 233, 0.15); /* Borde más visible con azul pálido */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(1, 29, 57, 0.3), 0 0 0 1px rgba(189, 216, 233, 0.08);
    position: relative;
    overflow: hidden;
}

section.section-dark .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(78, 142, 162, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

section.section-dark .card:hover {
    background: rgba(73, 118, 159, 0.5); /* --bg-dark-3 más claro al hover */
    border-color: rgba(123, 189, 232, 0.4); /* Azul cielo más visible */
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(1, 29, 57, 0.5), 0 0 0 1px rgba(123, 189, 232, 0.2);
}

section.section-dark .card:hover::before {
    opacity: 1;
}

section.section-dark .card h3 {
    color: #ffffff;
}

section.section-dark .card p {
    color: var(--muted-on-dark);
}

/* Pills en oscuro */
section.section-dark .pill {
    background: rgba(78, 142, 162, 0.2); /* --accent con transparencia */
    border-color: rgba(123, 189, 232, 0.4); /* Azul cielo para borde */
    color: var(--accent-light); /* #7BBDE8 */
}

/* Sección de contacto con gradiente de fondo */
#contacto,
.contact-section {
    background-color: var(--bg-dark-1);
    background-image: none;
}

/* Formulario con fondo sólido (sin gradiente) */
section.section-dark .form,
section.section-dark .contact-card {
    background: #003260; 
    background-image: none;
    border-color: #003260;
}

section.section-dark .benefits-section {
    background: #003260;
    border-color: #003260;
}

section.section-dark .form input, 
section.section-dark .form textarea {
    background: #bdd8e9; /* Color más claro de la paleta */
    border-color: rgba(189, 216, 233, 0.3);
    color: #ffffff;
}

section.section-dark .form input:focus, 
section.section-dark .form textarea:focus {
    border-color: rgba(189, 216, 233, 0.5);
    background: #7BBDE8; /* Un poco más claro al focus */
    box-shadow: 0 0 0 4px rgba(189, 216, 233, 0.2);
    color: #ffffff;
}

section.section-dark .form label {
    color: #ffffff;
}

/* Placeholder en blanco con opacidad */
section.section-dark .form input::placeholder,
section.section-dark .form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

section.section-dark .benefit-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-on-dark);
}
section.section-dark .benefit-item h4 { color: white; }
section.section-dark .benefit-item p { color: var(--muted-on-dark); }

section.section-dark .contact-card::before {
    display: none; /* Quitamos el gradiente viejo */
}

/* Fondos específicos por ID (para la alternancia) */
.hero {
    background: transparent;
    padding: 32px 0 20px;
}

/* Servicios y Contacto ahora usan .section-dark */

#metodo,
.method {
    background: #ffffff;
}

#clientes,
.clients {
    background: #ffffff;
}

#clientes .marquee,
.clients .clients-marquee { 
    background: #ffffff; 
    border-color: var(--line); 
}

/* #sobre-rodil usa section-dark, no necesita override */

.bg-motion {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 800px 600px at 25% 35%, rgba(10, 65, 116, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 700px 500px at 75% 25%, rgba(123, 189, 232, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 600px 600px at 50% 85%, rgba(73, 118, 159, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #fcfdff 0%, #f5f8fa 100%);
    animation: subtleShift 18s ease-in-out infinite;
}

@keyframes subtleShift {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.9;
    }
}


/* El bg-motion queda oculto por el color sólido de las secciones oscuras */


/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */
header,
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav,
.header-nav {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
    padding: 10px 0;
}

.brand,
.header-brand {
    flex: 1;
}

.brand img,
.header-brand img {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 6px;
}

.brand .name,
.header-brand .name,
.header-name {
    display:flex;
    flex-direction:column;
    line-height: 1.1;
}

.brand .name strong,
.header-brand .name strong,
.header-name strong { 
    font-weight: 700; 
    letter-spacing: .2px;
    font-size: 18px; 
}

.brand .name span,
.header-brand .name span,
.header-name span { 
    color: var(--muted); 
    font-size: 14px;
}

nav,
.header-menu {
    margin-right: 12px;
}

nav ul,
.header-menu ul {
    list-style:none; 
    margin:0; 
    padding:0;
    display:flex; 
    align-items:center; 
    gap: 18px;
}

nav a,
.header-menu a {
    color: var(--muted);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 12px;
    transition: .18s ease;
}

nav a:hover,
.header-menu a:hover {
    color: var(--text);
    background: #f1f5f9;
}

.nav-actions,
.header-actions {
    flex-shrink: 0;
}


.btn{
    display:inline-flex; 
    align-items:center; 
    justify-content:center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: .18s ease;
    cursor:pointer;
    user-select:none;
}

.btn:hover{ 
    transform: translateY(-1px); 
    box-shadow: 0 10px 30px rgba(0,0,0,.15); 
}

.btn:active{ 
    transform: translateY(0px); 
}

.btn.primary{
    color: rgba(255,255,255,.98);
    border-color: transparent; 
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    box-shadow: 0 4px 16px rgba(37,99,235,.2);
    font-weight: 600;
    padding: 14px 28px;
    font-size: 15px;
    letter-spacing: 0.1px;
}

.btn.primary:hover{
    box-shadow: 0 8px 24px rgba(37,99,235,.3);
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ============================================
   4. HERO
   ============================================ */
.hero{
    position: relative;
    padding: 80px 0 100px;
}

.hero-grid{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

/* .hero-content - Contenedor del contenido del hero (sin estilos específicos) */

.badge,
.hero-badge {
    display:inline-flex; 
    align-items:center; 
    gap:10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(37,99,235,.12);
    background: rgba(37,99,235,.07);
    color: var(--accent);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    margin-bottom: 32px;
}

.dot{
    width: 6px; 
    height: 6px; 
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

h1,
.hero-title {
    margin: 0 0 24px;
    font-size: clamp(42px, 5.5vw, 64px);
    letter-spacing: -1.2px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--text);
}

.lead,
.hero-lead {
    margin: 0 0 40px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    max-width: 58ch;
    font-weight: 400;
}

.cta,
.hero-cta {
    display:flex; 
    gap: 16px; 
    flex-wrap: wrap;
    margin: 0;
}

/* Hero Visual - Abstracto y Premium */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.hero-visual-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
}

.metric-card,
.hero-metric {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37,99,235,.08);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.metric-card:nth-child(1),
.hero-metric:nth-child(1) {
    top: 20%;
    left: 0;
    animation: float 6s ease-in-out infinite;
}

.metric-card:nth-child(2),
.hero-metric:nth-child(2) {
    bottom: 20%;
    right: 0;
    animation: float 6s ease-in-out infinite 1.5s;
}

.metric-card:hover,
.hero-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(37,99,235,.12);
}

.metric-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.metric-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-flow,
.hero-data-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(73, 118, 159, 0.25);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73, 118, 159, 0.15) 0%, transparent 70%);
}

.data-flow::before,
.data-flow::after,
.hero-data-flow::before,
.hero-data-flow::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1.5px solid rgba(73, 118, 159, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.data-flow::before,
.hero-data-flow::before {
    width: 80px;
    height: 80px;
    border-color: rgba(73, 118, 159, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   5. COMPARISON (Problema vs Solución)
   ============================================ */
.comparison-section,
.comparison {
    background-color: #ffffff;
    padding: 80px 0;
}

.section-header,
.comparison-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2,
.comparison-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}

.section-header p,
.comparison-header p {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    gap: 0;
    position: relative;
}

/* Línea central vertical */
.comparison-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
    z-index: 0;
}

.comp-row,
.comparison-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-row.active,
.comparison-row.active {
    opacity: 1;
    transform: translateY(0);
}

/* Columnas */
.comp-col {
    width: 45%;
    padding: 24px;
}

/* Estilo PROBLEMA (Izquierda) - Tensión visual */
.comp-col.problem,
.comparison-problem {
    text-align: right;
    padding-right: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.comp-col.problem h4,
.comparison-problem h4 {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.comp-col.problem p,
.comparison-problem p {
    font-size: 18px;
    margin: 0;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 400;
    position: relative;
}

.comp-col.problem::after,
.comparison-problem::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(220,38,38,.2), transparent);
}

/* Estilo SOLUCIÓN (Derecha) - Calma visual */
.comp-col.solution,
.comparison-solution {
    text-align: left;
    padding-left: 40px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.comp-col.solution h4,
.comparison-solution h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.comp-col.solution p,
.comparison-solution p {
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
    margin: 0;
    line-height: 1.65;
}

/* Divisor central (El ícono) */
.comp-divider,
.comparison-divider {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 8px;
    z-index: 2;
}

.comp-icon,
.comparison-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1500;
    font-size: 26px;
    line-height: 1;
    padding-left: 2px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.8);
}

/* Cuando JS agrega la clase .active - Aparecen juntos */
.comp-row.active .comp-col.problem,
.comp-row.active .comp-col.solution,
.comparison-row.active .comparison-problem,
.comparison-row.active .comparison-solution {
    opacity: 1;
    transform: translateX(0);
}

.comp-row.active .comp-icon,
.comparison-row.active .comparison-icon {
    opacity: 1;
    transform: scale(1);
    background: var(--accent);
    color: #ffffff;
    transition: all 0.5s ease 0.3s;
}

/* Responsive */
@media (max-width: 860px) {
    .comparison-grid::before {
        display: none;
    }
    
    .comp-row,
    .comparison-row {
        flex-direction: row;
        gap: 8px;
        padding: 20px 0;
        align-items: flex-start;
    }
    
    .comp-col {
        width: 45%;
        padding: 12px;
        font-size: 14px;
    }
    
    .comp-col.problem,
    .comparison-problem {
        text-align: right;
        padding-right: 12px;
    }
    
    .comp-col.solution,
    .comparison-solution {
        text-align: left;
        padding-left: 12px;
    }
    
    .comp-col.problem p,
    .comparison-problem p,
    .comp-col.solution p,
    .comparison-solution p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .comp-col.problem h4,
    .comparison-problem h4,
    .comp-col.solution h4,
    .comparison-solution h4 {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .comp-divider,
    .comparison-divider {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 4px;
    }
    
    .comp-icon,
    .comparison-icon {
        width: 28px;
        height: 28px;
        font-size: 20px;
        transform: none;
    }
    
    .reveal-on-scroll {
        transform: translateY(30px);
    }
    
    .comp-row.active .reveal-on-scroll,
    .comparison-row.active .reveal-on-scroll {
        transform: translateY(0);
    }
}

/* ============================================
   6. SERVICES
   ============================================ */
.section-title,
.services-title {
    display:flex; 
    align-items:baseline; 
    justify-content:space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.section-title h2,
.services-title h2 {
    margin:0;
    font-size: 36px;
    letter-spacing: -0.8px;
    font-weight: 800;
    line-height: 1.1;
}

.section-title p,
.services-title p { 
    margin:0; 
    color: var(--muted); 
    font-size: 17px; 
    font-weight: 400;
    line-height: 1.5;
}

.grid-4,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card,
.services-card {
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before,
.services-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover,
.services-card:hover { 
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37,99,235,.08);
    border-color: rgba(37,99,235,.2);
}

.card:hover::before,
.services-card:hover::before {
    opacity: 1;
}

.card h3,
.services-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.3;
    color: var(--text);
}

.card p,
.services-card p { 
    margin:0; 
    color: var(--muted); 
    font-size: 15px; 
    line-height: 1.65; 
    font-weight: 400;
}

/* Services específicos en dark mode */
.services.section-dark .services-card {
    background: rgba(10, 65, 116, 0.4);
    border-color: rgba(189, 216, 233, 0.15);
}

.services.section-dark .services-card:hover {
    background: rgba(73, 118, 159, 0.5);
    border-color: rgba(123, 189, 232, 0.4);
}

.pill{
    align-self: flex-start;
    display:inline-flex;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--accent);
    background: rgba(37,99,235,.06);
    border: 1px solid rgba(37,99,235,.1);
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ============================================
   7. METHOD
   ============================================ */
.method-title {
    display:flex; 
    align-items:baseline; 
    justify-content:space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.method-title h2 {
    margin:0;
    font-size: 36px;
    letter-spacing: -0.8px;
    font-weight: 800;
    line-height: 1.1;
}

.method-title p { 
    margin:0; 
    color: var(--muted); 
    font-size: 17px; 
    font-weight: 400;
    line-height: 1.5;
}

.steps,
.method-steps {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    position: relative;
}

/* Sin líneas de conexión */

.step,
.method-step {
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.08);
    background: #ffffff;
    padding: 28px;
    display:flex;
    gap: 20px;
    align-items:flex-start;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.step::before,
.method-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover,
.method-step:hover {
    border-color: rgba(37,99,235,.2);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(37,99,235,.06);
}

.step:hover::before,
.method-step:hover::before {
    opacity: 1;
}

.num{
    width: 44px; 
    height: 44px;
    border-radius: 12px;
    display:flex; 
    align-items:center; 
    justify-content:center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    flex: 0 0 44px;
    box-shadow: 0 4px 12px rgba(37,99,235,.2);
    position: relative;
}

.num::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    opacity: 0.2;
    z-index: -1;
    filter: blur(8px);
}

.step h4,
.method-step h4 { 
    margin: 0 0 10px; 
    font-size: 18px; 
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text);
}

.step p,
.method-step p { 
    margin:0; 
    color: var(--muted); 
    font-size: 15px; 
    line-height: 1.65; 
    font-weight: 400;
}

/* ============================================
   8. ABOUT
   ============================================ */
.about-title {
    display:flex; 
    align-items:baseline; 
    justify-content:space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.about-title h2 {
    margin:0;
    font-size: 36px;
    letter-spacing: -0.8px;
    font-weight: 800;
    line-height: 1.1;
}

.about-title p { 
    margin:0; 
    color: var(--muted); 
    font-size: 17px; 
    font-weight: 400;
    line-height: 1.5;
}

.about-content {
    max-width: 900px;
    margin: 56px auto 0;
    font-size: 17px;
    line-height: 1.75;
}

.about-content p {
    color: var(--muted-on-dark);
    line-height: 1.8;
    margin: 0 0 28px;
    font-size: 17px;
    font-weight: 400;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Ajuste para secciones claras */
section:not(.section-dark) .about-content p {
    color: var(--muted);
}

/* ============================================
   9. CLIENTS
   ============================================ */
.clients-title {
    display:flex; 
    align-items:baseline; 
    justify-content:space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.clients-title h2 {
    margin:0;
    font-size: 36px;
    letter-spacing: -0.8px;
    font-weight: 800;
    line-height: 1.1;
}

.marquee,
.clients-marquee {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.3);
    border-bottom: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
    padding: 50px 0;
    display: block;
    width: 100%;
}

section.section-dark .marquee,
section.section-dark .clients-marquee {
    background: #ffffff;
    border-top: 1px solid rgba(255,255,255,.3);
    border-bottom: 1px solid rgba(255,255,255,.3);
}

.marquee::before,
.marquee::after,
.clients-marquee::before,
.clients-marquee::after {
    content:"";
    position:absolute;
    top:0; 
    bottom:0;
    width: 150px;
    pointer-events:none;
    z-index: 2;
}

.marquee::before,
.clients-marquee::before {
    left:0;
    background: linear-gradient(90deg, #ffffff 0%, transparent 100%);
}

.marquee::after,
.clients-marquee::after {
    right:0;
    background: linear-gradient(270deg, #ffffff 0%, transparent 100%);
}

section.section-dark .marquee::before,
section.section-dark .clients-marquee::before {
    background: linear-gradient(90deg, var(--bg-dark-1) 0%, transparent 100%);
}

section.section-dark .marquee::after,
section.section-dark .clients-marquee::after {
    background: linear-gradient(270deg, var(--bg-dark-1) 0%, transparent 100%);
}

.marquee__track {
    display:flex;
    width:max-content;
    animation: marqueeScroll 25s linear infinite;
    will-change: transform;
}

.marquee:hover .marquee__track { 
    animation-play-state: paused; 
}

.marquee__group {
    display:flex;
    gap: 120px;
    padding: 0 60px;
    flex: 0 0 auto;
    align-items: center;
    height: 100px;
    white-space: nowrap;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 2)); }
}

.logo-chip {
    display:flex;
    align-items:center;
    justify-content:center;
    opacity: 0.8;
    transition: opacity .3s ease;
    flex-shrink: 0;
    padding: 0 20px;
}

.logo-chip:hover {
    opacity: 1;
}

section.section-dark .logo-chip {
    filter: none;
    opacity: 0.9;
}

section.section-dark .logo-chip:hover {
    opacity: 1;
}

.logo-chip img {
    display:block;
    max-height: 70px;
    width: auto;
    height: auto;
}

/* ============================================
   10. CONTACT
   ============================================ */
.contact-title {
    display:flex; 
    align-items:baseline; 
    justify-content:space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-title h2 {
    margin:0;
    font-size: 36px;
    letter-spacing: -0.8px;
    font-weight: 800;
    line-height: 1.1;
}

.contact-title p { 
    margin:0; 
    color: var(--muted); 
    font-size: 17px; 
    font-weight: 400;
    line-height: 1.5;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact,
.contact-layout {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 32px;
    align-items: start;
}

.benefits-section,
.contact-benefits {
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
}

.benefits-section h3,
.contact-benefits h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 32px;
    color: var(--text);
    letter-spacing: -0.3px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.benefit-item {
    padding: 20px 24px;
    background: linear-gradient(to right, rgba(37,99,235,.02), transparent);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: linear-gradient(to right, rgba(37,99,235,.04), transparent);
    transform: translateX(4px);
}

.benefit-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
    letter-spacing: -0.1px;
}

.benefit-item p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.contact-card {
    /* Ahora solo un contenedor para el form en la derecha */
    border: none; background: transparent; padding: 0; box-shadow: none;
}
.contact-card::before { display: none; }

.form,
.contact-form {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 24px;
    background: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
}

.form form,
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.field { 
    display:flex; 
    flex-direction:column; 
    gap: 10px; 
}

label { 
    font-size: 13px; 
    color: var(--text); 
    font-weight: 600; 
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

input, textarea {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid rgba(15,23,42,.1);
    background: #fafbfc;
    padding: 16px;
    color: var(--text);
    outline: none;
    font-size: 15px;
    transition: all .3s ease;
    font-family: inherit;
    font-weight: 400;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.08);
    transform: translateY(-1px);
}

textarea { 
    min-height: 140px; 
    resize: vertical; 
    line-height: 1.6;
}

/* Contact específicos en dark mode - Misma estética que servicios */
.contact-section.section-dark .contact-form {
    background: rgba(10, 65, 116, 0.4); /* --bg-dark-2 con transparencia */
    border-color: rgba(189, 216, 233, 0.15); /* Borde más visible con azul pálido */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(1, 29, 57, 0.3), 0 0 0 1px rgba(189, 216, 233, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-section.section-dark .contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(78, 142, 162, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Sin efectos hover en formulario de contacto */

.contact-section.section-dark .contact-benefits {
    background: rgba(10, 65, 116, 0.4); /* --bg-dark-2 con transparencia */
    border-color: rgba(189, 216, 233, 0.15); /* Borde más visible con azul pálido */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(1, 29, 57, 0.3), 0 0 0 1px rgba(189, 216, 233, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-section.section-dark .contact-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(78, 142, 162, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Sin efectos hover en beneficios de contacto */

.contact-section.section-dark .contact-form input,
.contact-section.section-dark .contact-form textarea {
    background: #0A4174;
    border-color: rgba(189, 216, 233, 0.3);
    color: #ffffff;
}

.contact-section.section-dark .contact-form input:focus,
.contact-section.section-dark .contact-form textarea:focus {
    border-color: rgba(189, 216, 233, 0.5);
    background: #0A4174;
    box-shadow: 0 0 0 4px rgba(189, 216, 233, 0.2);
    color: #ffffff;
}

.contact-section.section-dark .contact-form label {
    color: #ffffff;
}

.contact-section.section-dark .contact-form input::placeholder,
.contact-section.section-dark .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.9);
}

.contact-section.section-dark .contact-benefits h3 {
    color: #ffffff;
}

.contact-section.section-dark .contact-benefits .benefit-item h4 {
    color: #ffffff;
}

.contact-section.section-dark .contact-benefits .benefit-item p {
    color: var(--muted-on-dark);
}

/* ============================================
   11. FOOTER
   ============================================ */
footer {
    padding: 40px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    margin-top: 0;
    background: #ffffff;
    font-size: 14px;
}

.footer-row { 
    display:flex; 
    justify-content:space-between; 
    align-items: center;
    gap: 16px; 
    flex-wrap: wrap; 
}

/* ============================================
   12. ANIMACIONES
   ============================================ */
@media (prefers-reduced-motion: no-preference){
    .fade-up { 
        opacity:0; 
        transform: translateY(20px); 
        animation: fadeUp .8s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
    }
    .delay-1 { animation-delay: .1s; }
    .delay-2 { animation-delay: .2s; }
    .delay-3 { animation-delay: .3s; }
    @keyframes fadeUp {
        to { opacity:1; transform: translateY(0); }
    }
}

/* ============================================
   13. MEDIA QUERIES
   ============================================ */

/* Tablet */
@media (max-width: 1100px) and (min-width: 861px){
    .grid-4,
    .services-grid { 
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 860px){
    html {
        scroll-padding-top: 60px; /* Reducido de 80px para móvil */
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding-top: 20px !important;
        padding-bottom: 60px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
    }

    
    .hero-grid { 
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        align-items: center;
        gap: 32px;
    }
    
    .hero-content {
        width: 100% !important;
        order: 1;
        flex: 1 1 auto;
    }
    
    .hero-visual {
        min-height: auto !important;
        height: auto !important;
        width: 100% !important;
        max-width: 280px !important;
        order: 2;
        margin-top: 8px;
        flex: 0 0 auto;
    }
    
    .hero-visual-content {
        max-width: 280px !important;
        height: 200px;
        position: relative;
        margin: 0 auto;
    }
    
    .metric-card,
    .hero-metric {
        padding: 16px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,.06);
        animation: float 6s ease-in-out infinite;
    }
    
    .metric-card:nth-child(1),
    .hero-metric:nth-child(1) {
        top: 10%;
        left: 0;
        width: auto;
    }
    
    .metric-card:nth-child(2),
    .hero-metric:nth-child(2) {
        bottom: 10%;
        right: 0;
        width: auto;
        animation: float 6s ease-in-out infinite 1.5s;
    }
    
    .metric-value {
        font-size: 28px;
        margin-bottom: 4px;
    }
    
    .metric-label {
        font-size: 11px;
    }
    
    .data-flow,
    .hero-data-flow {
        width: 120px;
        height: 120px;
        border-width: 2px;
    }
    
    .data-flow::before,
    .data-flow::after,
    .hero-data-flow::before,
    .hero-data-flow::after {
        width: 70px;
        height: 70px;
        border-width: 1.5px;
    }
    
    .data-flow::before,
    .hero-data-flow::before {
        width: 45px;
        height: 45px;
    }

    .problem-solution-pair {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    .grid-4,
    .services-grid { 
        grid-template-columns: 1fr; 
    }
    .steps,
    .method-steps { 
        grid-template-columns: 1fr; 
    }
    .contact,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-aside { 
        position: static; 
    }
    .contact-wrapper {
        gap: 24px;
    }
    .contact-title h2 {
        font-size: 28px;
    }
    .contact-title p {
        font-size: 15px;
    }
    .contact-form,
    .contact-benefits {
        padding: 24px;
        border-radius: 20px;
    }
    .contact-benefits h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    .benefit-item {
        padding: 16px 20px;
    }
    .benefit-item h4 {
        font-size: 15px;
    }
    .benefit-item p {
        font-size: 14px;
    }
    .contact-form form {
        gap: 20px;
    }
    .field {
        gap: 8px;
    }
    label {
        font-size: 12px;
    }
    input, textarea {
        padding: 14px;
        font-size: 14px;
    }
    textarea {
        min-height: 120px;
    }
    .nav,
    .header-nav {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 10px 0;
    }
    .brand img,
    .header-brand img {
        width: 64px;
        height: 64px;
    }
    .brand img,
    .header-brand img {
        width: 48px;
        height: 48px;
    }
    
    .btn.primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    nav ul,
    .header-menu ul { 
        display: none; 
    }    
    nav ul,
    .header-menu ul { 
        display: none; 
    }
    nav ul,
    .header-menu ul { 
        display: none; 
    }
    h1,
    .hero-title { 
        font-size: 36px; 
    }
    .lead,
    .hero-lead { 
        font-size: 16px; 
    }
    .cta,
    .hero-cta { 
        justify-content: center; 
    }
    .card,
    .services-card,
    .form,
    .contact-form,
    .problem-box,
    .solution-box,
    .benefits-section,
    .contact-benefits { 
        padding: 20px; 
    }
    .footer-row { 
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    section { 
        padding: 40px 0; 
    }
}
