/* --- 1. VARIABLES --- */
:root {
    --primary: #00D4FF;
    --secondary: #7B2CBF;
    --bg-dark: #050505;
    --bg-grey: #111111;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --blue-accent: #1b30af; 
    --blue-form: #101f75;
    --title-blue: #1f32ce;
    --text-dark-hero: #191919; 
    
    /* Variables Light */
    --bg-light: #ffffff;
    --bg-light-alt: #f8f9fa; /* Gris Claro */
    --bg-soft-gray: #f8fafc;
    --bg-soft-blue: #F7FDFF;
    --bg-soft-purple: #FAF7FC;

    --text-dark: #1a1a1a;
    --text-desc-light: #555555;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
    
    /* Sombra imagen sutilmente azul */
    --shadow-image: 20px 20px 60px rgba(0, 212, 255, 0.15);
    
    --padding-section: 120px 5%;
    --radius-card: 24px;
    --nav-height: 80px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

/* CORRECCIÓN ANCHO PAGINA */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-white);
    font-size: 16px;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; margin-bottom: 1rem; }
p { line-height: 1.6; margin-bottom: 1.5rem; font-size: 1rem; color: var(--text-gray); font-weight: 400; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* --- 2. UTILIDADES --- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* MODIFICACIÓN ANCHO ESCRITORIO */
@media (min-width: 1200px) {
    .container {
        padding: 0 160px; 
        max-width: 1400px; 
    }
}

.title-std {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}
.title-std span { color: var(--title-blue); }

.title-light { color: #ffffff; } 
.title-dark { color: var(--text-dark); } 

.title-std::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background-color: var(--title-blue); 
    margin-top: 10px;
    border-radius: 2px;
}

.title-centered { text-align: center; }
.title-centered::after { margin-left: auto; margin-right: auto; }

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 30px; border-radius: 999px;
    font-weight: 600; cursor: pointer; border: none; gap: 8px; font-size: 0.9rem;
    transition: var(--transition);
}
.btn-primary {
    background: var(--title-blue); 
    color: #fff;
    box-shadow: 0 4px 15px rgba(31, 50, 206, 0.3);
}
.btn-primary:hover { 
    background: var(--blue-accent);
    box-shadow: 0 6px 20px rgba(31, 50, 206, 0.5); transform: translateY(-2px); 
}
.btn-outline {
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff;
}
.btn-outline:hover { 
    border-color: var(--primary); background: var(--primary); color: #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.btn-secondary-dark {
    background: transparent; border: 1px solid #333; color: #333;
}
.btn-secondary-dark:hover { 
    background: var(--primary); color: #000; border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Botón Blanco Relleno */
.btn-white-filled {
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.btn-white-filled:hover {
    background: #f0f0f0;
    color: var(--title-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* BOTÓN HERO SECUNDARIO */
.btn-hero-secondary {
    background: #ffffff; 
    color: var(--text-dark-hero); 
    border: 1px solid #000000; 
}
.btn-hero-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* --- 3. HEADER & NAV --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    background: #ffffff; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
header.scrolled { padding: 10px 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo-img { 
    height: 72px; 
    width: auto; object-fit: contain; transition: 0.3s;
    filter: none; 
}

.desktop-menu { display: none; align-items: center; flex-grow: 1; margin-left: 40px; justify-content: space-between; }
.nav-links-group { display: flex; gap: 0; flex-grow: 1; justify-content: space-evenly; padding: 0 40px; }

.nav-link { 
    color: var(--text-dark); 
    font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; 
    transition: color 0.3s ease; 
}
.nav-link:hover { color: var(--blue-accent); }

.mobile-toggle { font-size: 1.5rem; color: #333; cursor: pointer; transition: 0.3s; }

.mobile-menu-overlay {
    position: fixed; top: 0; right: -100%; width: 85%; max-width: 350px; height: 100vh;
    background: #111; z-index: 2000; padding: 80px 30px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 25px;
}
.mobile-menu-overlay.active { right: 0; }
.overlay-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s;
}
.overlay-backdrop.active { opacity: 1; visibility: visible; }
.mobile-link { color: #fff; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.mobile-close { position: absolute; top: 25px; right: 25px; font-size: 1.5rem; color: #fff; cursor: pointer; }

@media(min-width: 992px) { 
    .desktop-menu { display: flex; } 
    .mobile-toggle { display: none; } 
    .mobile-menu-overlay, .overlay-backdrop { display: none; }
}

/* --- 4. HERO --- */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: #ffffff; 
    position: relative;
    padding-top: 135px;
    padding-bottom: 50px;
    overflow: hidden;
}

.hero-orb-1 {
    position: absolute; top: 0; right: 0; width: 500px; height: 500px;
    background-color: rgba(0, 212, 255, 0.1); border-radius: 50%; filter: blur(120px);
    z-index: 0; pointer-events: none;
}
.hero-orb-2 {
    position: absolute; bottom: 0; left: 0; width: 400px; height: 400px;
    background-color: rgba(123, 44, 191, 0.1); border-radius: 50%; filter: blur(100px);
    z-index: 0; pointer-events: none;
}

.hero-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; 
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-col {
    text-align: left;
}

.hero-pill {
    display: inline-flex;
    align-items: center; background: #f0f9ff;
    color: var(--title-blue); padding: 8px 16px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 25px; letter-spacing: 0.5px;
}
.hero-pill::before {
    content: ''; display: block; width: 6px; height: 6px;
    background-color: var(--title-blue); border-radius: 50%; margin-right: 8px;
}

/* AJUSTE TAMAÑO TÍTULO HERO (-1pt adicional) */
#home h1 { 
    color: var(--text-dark-hero) !important; 
    font-size: clamp(1.8rem, 4vw, 2.9rem); 
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: none; 
    text-shadow: none !important;
}
.highlight-blue { color: var(--title-blue) !important; }

#home h2 { 
    color: var(--text-dark-hero) !important; font-size: 1.1rem; 
    font-weight: 400; margin-bottom: 20px; text-shadow: none !important;
}
/* AJUSTE TAMAÑO SUBTÍTULO HERO */
#home p { 
    color: var(--text-desc-light) !important; text-shadow: none !important;
    font-size: 0.9rem;
    margin-bottom: 35px; max-width: 90%;
    text-align: justify;
}

.hero-img-col {
    position: relative; display: flex; justify-content: center; background: transparent; box-shadow: none;
}

.hero-img-col img {
    width: 100%; height: auto; border-radius: 30px; box-shadow: none; object-fit: cover; background: transparent;
}

@media (max-width: 768px) {
    #home { padding-top: 120px; text-align: center; background: #ffffff; }
    .hero-split-layout { grid-template-columns: 1fr; gap: 40px; }
    .hero-img-col { order: -1; }
    .hero-img-col img {
        width: 85%; height: auto; max-width: 450px; object-fit: contain; margin: 0 auto; 
        border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    }
    .hero-text-col { text-align: center; }
    #home p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
}

/* --- SECCIÓN 0 - CIFRAS --- */
.sec-stats { 
    background: var(--title-blue); 
    padding: 60px 5%; border-bottom: 1px solid rgba(255,255,255,0.1); 
    color: #ffffff;
}
.stats-wrapper { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: nowrap; }
.stat-block { text-align: center; flex-shrink: 0; }

.stat-item h3 { 
    font-size: 2.5rem; 
    color: #ffffff; /* Número Blanco */
    margin-bottom: 10px; font-weight: 800; line-height: 1; 
}
.stat-item p { 
    color: rgba(255,255,255,0.8); /* Texto Blanco Suave */
    font-size: 0.9rem; margin: 0; line-height: 1.3; font-weight: 500; 
}

.respaldo-block { 
    text-align: left; border-left: 2px solid rgba(255,255,255,0.3); 
    padding-left: 30px; flex-shrink: 1; 
}
.respaldo-block p { color: #ffffff !important; } /* Título Respaldo Blanco */

.tech-check { 
    color: rgba(255,255,255,0.9); /* Texto Check Blanco */
    font-size: 0.95rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; 
}
.tech-check i { color: #ffffff; font-size: 1.1rem; } /* Icono Blanco */
.mobile-br { display: none; }

@media(max-width: 992px) { 
    .stats-wrapper { flex-wrap: wrap; justify-content: center; gap: 40px; }
    .stat-block { flex: 0 0 45%; }
    .respaldo-block { border-left: none; padding-left: 0; text-align: center; margin-top: 30px; width: 100%; } 
    .tech-check { justify-content: center; align-items: flex-start; text-align: left; }
    .tech-check i { margin-top: 4px; }
    .mobile-br { display: block; }
}

/* --- SECCIÓN 1 - SOMOS XFERA --- */
.sec-about { padding: var(--padding-section); background: #ffffff; color: #333; }
.about-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px; 
    align-items: center;
}
.about-content-col { text-align: left; }
.about-content-col .title-std { text-align: left; margin-bottom: 25px; }
.about-content-col .title-std::after { margin-left: 0; }
.about-content-col p {
    color: var(--text-desc-light);
    font-size: 0.9rem; 
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.about-list-grid { display: none; }

.about-image-col { position: relative; }
.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-image); 
    line-height: 0; 
}
.about-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}
.floating-badge {
    position: absolute; bottom: 30px; left: -30px; background: #ffffff;
    padding: 15px 25px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); color: var(--text-desc-light);
    z-index: 2; display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; line-height: 1.2;
}
.floating-badge strong { display: block; font-size: 1.8rem; color: var(--title-blue); font-weight: 800; margin-bottom: 2px; line-height: 1; }
.floating-badge span { font-size: 0.9rem; display: block; }

@media(min-width: 992px) { .about-split-layout { grid-template-columns: 1fr 1fr; } }
@media(max-width: 992px) {
    .about-split-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { margin-left: 20px; margin-bottom: 20px; } 
    .floating-badge { left: -10px; bottom: 20px; padding: 10px 20px; }
    .floating-badge strong { font-size: 1.5rem; }
}
@media(max-width: 768px) {
    .sec-about { text-align: left; }
}

/* --- SERVICIOS --- */
#services { padding: var(--padding-section); background: #f8f9fa; }

@media(min-width: 992px) {
    #services .title-std { text-align: center; color: var(--text-dark) !important; }
    #services .title-std::after { margin-left: auto; margin-right: auto; }
    #services > .container > p { 
        text-align: left; margin-left: 0; margin-right: 0; 
        max-width: 100%; color: var(--text-desc-light) !important; 
    }
}

#services .title-std { color: var(--text-dark); }
#services > .container > p { font-size: 0.9rem; line-height: 1.6; color: var(--text-desc-light); }

.service-split-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: stretch; margin-bottom: 80px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 60px; }
@media(min-width: 992px) { .service-split-layout { grid-template-columns: 1fr 1fr; } }
.service-split-layout:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.service-full-card {
    background: #fff; border-radius: 24px; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.service-full-card:last-child { margin-bottom: 0; }

.service-image-side { position: relative; min-height: 250px; }
.service-image-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.service-badge {
    position: absolute; top: 30px; left: 30px; background: #000; color: var(--primary);
    padding: 8px 20px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    border: 1px solid var(--primary); z-index: 2;
}
.service-title-overlay { position: absolute; bottom: 40px; left: 30px; right: 30px; z-index: 2; }
.service-title-overlay h3 { color: #fff !important; font-size: 2.2rem; line-height: 1.1; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.service-image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); z-index: 1; }

.service-content-side { padding: 30px 40px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.service-content-side p { color: var(--text-desc-light); font-size: 0.95rem; margin-bottom: 20px; }
.service-content-side h4 { color: var(--text-dark); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dark); margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; display: inline-block; }

.service-list { list-style: none; padding: 0; }
.service-list li { margin-bottom: 8px; display: flex; align-items: start; gap: 12px; color: var(--text-desc-light); font-size: 1rem; font-weight: 500; }
.service-list li i { color: var(--primary); margin-top: 3px; }

@media (max-width: 992px) {
    .service-full-card { grid-template-columns: 1fr; }
    .service-image-side { min-height: 250px; }
    .service-content-side { padding: 30px; }
    #services .title-std { text-align: left; }
    #services .title-std::after { margin-left: 0; }
    #services > .container > p { text-align: left; margin-left: 0; }
}
@media (max-width: 768px) { .service-title-overlay h3 { font-size: 1.8rem !important; } }

/* --- DIFERENCIAL --- */
#diferencial { padding: var(--padding-section); background: var(--bg-light); }
/* 4 Columnas forzadas en desktop */
.diff-grid { 
    display: grid; gap: 60px; /* Separación Aumentada */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}
@media (min-width: 1200px) { .diff-grid { grid-template-columns: repeat(4, 1fr); } }

.diff-card { 
    background: #f9f9f9; padding: 2rem; border-radius: 20px; 
    border: 1px solid #eee; box-shadow: var(--shadow-card); transition: 0.3s; min-width: 0; 
}
.diff-card:hover { border-color: var(--secondary); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.diff-card h3 { color: var(--text-dark); }
.diff-card p { color: var(--text-desc-light); margin: 0; font-size: 0.9rem; }

/* --- INFRAESTRUCTURA --- */
.sec-infra { 
    background: var(--title-blue); /* Fondo Azul */
    padding: var(--padding-section); text-align: center; color: #fff;
}
.sec-infra .title-std { color: #fff !important; }
.sec-infra .title-std::after { background-color: #ffffff; margin-left: auto; margin-right: auto; }
.sec-infra p { color: #fff !important; opacity: 0.9; font-size: 1.3rem; max-width: 800px; margin: 0 auto 50px; }

/* Pills modificados */
.infra-pill {
    background: #fff; padding: 15px 30px; 
    border-radius: 12px; 
    display: flex; gap: 10px; align-items: center; 
    color: var(--text-dark); border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.infra-pill i { color: var(--title-blue) !important; font-size: 1.1rem; }

/* --- CASOS DE ÉXITO --- */
.sec-cases { background: var(--bg-light-alt); padding: var(--padding-section); }

.sec-cases .title-std { text-align: center; color: var(--text-dark); }
.sec-cases .title-std::after { margin-left: auto; margin-right: auto; }

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-desc-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.cases-split-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }

.case-image-wrapper { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-image); }
.case-image-wrapper img { width: 100%; height: auto; display: block; border-radius: 24px; }
.case-overlay-card {
    position: absolute; bottom: 30px; left: 30px; background: #fff;
    padding: 20px 25px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 280px; border: 1px solid #eee;
}
.case-overlay-card h4 { margin: 0 0 5px; font-size: 1.1rem; color: var(--text-dark); font-weight: 800; }
.case-overlay-card p { margin: 0; font-size: 0.8rem; color: var(--text-desc-light); line-height: 1.3; }

.case-content-col p.lead { font-size: 1.1rem; color: var(--text-desc-light); line-height: 1.6; margin-bottom: 30px; }
.case-results-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.case-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; color: var(--text-desc-light); font-weight: 500; font-size: 0.95rem; }
.case-list li i { color: var(--primary); font-size: 1.1rem; }

/* Botones Casos de Éxito Actualizados */
.cases-actions {
    display: flex; flex-wrap: wrap; gap: 15px; margin-top: 30px;
}

.cases-nav { display: none; } 

@media(max-width: 992px) {
    .cases-split-layout { grid-template-columns: 1fr; gap: 40px; }
    .case-overlay-card { position: relative; bottom: auto; left: auto; right: auto; margin: -40px 20px 0; max-width: none; }
}

/* --- PARTNERS --- */
.sec-partners { padding: 80px 5%; background: #ffffff; }
.marquee-wrapper { 
    overflow: hidden; 
    width: 100%; 
    position: relative; 
    margin-top: 40px; 
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent); 
}

.marquee-track { 
    display: flex; 
    gap: 60px; 
    width: max-content; 
    animation: scroll 30s linear infinite; 
}

/* LOGO BOX */
.logo-box {
    background: #fff; 
    padding: 0; 
    border-radius: 8px; 
    border: 1px solid #eee; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 240px; 
    height: 120px; 
}

.logo-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    filter: grayscale(100%); 
    transition: filter 0.3s ease;
}

.logo-box:hover img { 
    filter: grayscale(0%); 
}

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- CTA PROCESS --- */
.sec-process { background-color: #f8fafc; padding: 100px 5%; text-align: center; } 
.sec-process h2 { 
    font-size: 1.8rem; margin-bottom: 25px; color: #111; font-weight: 700; text-transform: uppercase; position: relative; display: inline-block; 
}
.sec-process h2::after { content: ''; display: block; width: 60px; height: 5px; background-color: var(--title-blue); margin: 15px auto 0; border-radius: 2px; }
.sec-process h2 span { color: var(--title-blue); }
.sec-process .subtitle { font-size: 1rem; color: var(--text-desc-light); max-width: 600px; margin: 0 auto 50px; }

.process-steps { display: flex; justify-content: center; gap: 40px; position: relative; margin-bottom: 50px; flex-wrap: wrap; }
.process-steps::before { content: ''; position: absolute; top: 40px; left: 20%; right: 20%; height: 1px; background: #dbeafe; z-index: 0; display: none; }
@media(min-width: 992px) { .process-steps { flex-wrap: nowrap; gap: 0; justify-content: space-between; max-width: 1000px; margin-left: auto; margin-right: auto; } .process-steps::before { display: block; } }

.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; min-width: 250px; }
.icon-box { width: 80px; height: 80px; background: #eef4ff; border-radius: 16px; display: flex; align-items: center; justify-content: center; border: 1px solid #dbeafe; margin-bottom: 20px; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.icon-box svg { width: 32px; height: 32px; stroke: var(--title-blue); stroke-width: 2; }
.step-badge { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; background: var(--title-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }

.step-item.blue .icon-box { background: #eef4ff; border-color: #dbeafe; }
.step-item.blue .icon-box svg { stroke: var(--title-blue); }
.step-item.blue .step-badge { background: var(--title-blue); }
.step-item.purple .icon-box { background: #f3e8ff; border-color: #e9d5ff; }
.step-item.purple .icon-box svg { stroke: var(--secondary); }
.step-item.purple .step-badge { background: var(--secondary); }
.step-item.cyan .icon-box { background: #e0faff; border-color: #ccfbf1; }
.step-item.cyan .icon-box svg { stroke: #00bcd4; } 
.step-item.cyan .step-badge { background: #00bcd4; }
.step-item h3 { font-size: 1.1rem; margin-bottom: 10px; color: #111; }
.step-item p { font-size: 0.9rem; color: var(--text-desc-light); line-height: 1.4; max-width: 250px; }

/* --- BENEFICIOS CLAVES --- */
.sec-benefits-bg { 
    /* Reducido punto focal al 35% para que no toque bordes */
    background: radial-gradient(circle at center, rgba(143, 244, 255, 0.4) 0%, #ffffff 35%); 
    padding: var(--padding-section); 
    color: #111; 
}

.benefits-header { text-align: center; max-width: 800px; margin: 0 auto 50px; }
.benefits-header .title-std { text-align: center; color: var(--text-dark); }
.benefits-header .title-std::after { margin-left: auto; margin-right: auto; }
.benefits-header p { font-size: 1.1rem; line-height: 1.6; color: var(--text-desc-light); margin-top: 20px; }

.benefits-slider-wrapper { position: relative; width: 100%; margin-bottom: 50px; }

.benefits-carousel {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; 
    padding: 40px 20px; 
    width: 100%; scrollbar-width: none; flex-wrap: nowrap !important;
}
.benefits-carousel::-webkit-scrollbar { display: none; }

.benefit-card {
    flex: 0 0 315px; scroll-snap-align: start;
    background: #ffffff; 
    border-radius: 20px; padding: 35px 25px; border: 1px solid #eee;
    box-shadow: var(--shadow-card); transition: 0.3s;
    display: flex; flex-direction: column; justify-content: center;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); border-color: var(--primary); }
.benefit-card h3 { color: var(--text-dark); font-size: 1.2rem; margin-bottom: 15px; font-weight: 700; }
.benefit-card p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--text-desc-light); text-align: justify;}

@media(max-width: 992px) { .benefits-carousel .benefit-card { flex: 0 0 45vw; } }
@media(max-width: 600px) { .benefits-carousel .benefit-card { flex: 0 0 85vw; } }

/* Controles Globales */
.controls-container { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.scroll-btn {
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); font-size: 1rem; transition: 0.2s;
}
.scroll-btn.light-theme { background: #fff; color: #333; border: 1px solid #eee; z-index: 10; }
.scroll-btn.dark-theme { background: #000; color: #fff; border: 1px solid #fff; z-index: 10; }

.benefits-controls { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }

/* --- FORMULARIO --- */
#contact { background: var(--blue-form); margin-top: -60px; padding-top: 50px; padding-bottom: 80px; padding-left: 5%; padding-right: 5%; position: relative; z-index: 10; border-radius: 60px 60px 0 0; }
#contact .title-std { color: #ffffff !important; }
.form-container-blue { background: transparent; padding: clamp(40px, 8vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 60px; border-radius: 0; box-shadow: none; }
.form-floating-group { position: relative; margin-bottom: 25px; }
.form-input { width: 100%; padding: 15px 0 10px; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.5); color: #fff !important; outline: none; font-size: 1rem; transition: 0.3s; max-width: 100%; box-sizing: border-box; }
.form-input:focus { border-bottom-color: var(--primary); }
.form-input:focus ~ .form-label, .form-input:not(:placeholder-shown) ~ .form-label { top: -10px; font-size: 0.8rem; color: var(--primary); }
.form-label { position: absolute; top: 15px; left: 0; color: rgba(255,255,255,0.7) !important; pointer-events: none; transition: 0.3s ease all; font-size: 1rem; }
.form-label.focus-up{top: -10px; font-size: 0.8rem; color: var(--primary); }
.form-intro-text { font-size: 1rem; color: #fff !important; margin-bottom: 20px; line-height: 1.6; text-align: justify; }
.privacy-text { margin-bottom: 25px; font-size: 0.85rem; color: rgba(255,255,255,0.7) !important; text-align: center; }

textarea.wpcf7-form-control.wpcf7-textarea.wpcf7-validates-as-required.form-input {
    height: 45px;
}


@media(max-width: 768px) {
    #contact { margin-top: 0; border-radius: 30px 30px 0 0; padding-top: 40px !important; padding-bottom: 60px; }
    .form-container-blue { padding: 0; gap: 30px; display: flex; flex-direction: column; }
    .form-container-blue img { width: 100%; height: auto; object-fit: cover; }
}

/* --- FOOTER ACTUALIZADO 4 COLUMNAS --- */
.footer-section { padding: 60px 5% 30px; background: #050505; border-top: 1px solid #111; color: #fff; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: repeat(4, 1fr); }
.footer-links a { color: #888; font-size: 0.9rem; display: block; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-logo { height: 85px; width: auto; filter: none; }

/* Ajuste: Logo centrado + Texto alineado a la izquierda */
.footer-brand-col { text-align: center; }
.footer-brand-col p { text-align: left; }

.contact-info-item { display: flex; gap: 18px; color: #888; font-size: 0.9rem; margin-bottom: 12px; align-items: start; }
.contact-info-item i { color: #ffffff; }

.footer-legal-row { border-top: 1px solid #222; margin-top: 40px; padding-top: 20px; display: flex; justify-content: center; gap: 30px; }
.footer-legal-row a { color: #888; font-size: 0.85rem; transition: 0.3s; }
.footer-legal-row a:hover { color: var(--primary); }

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-legal-row { flex-direction: column; align-items: center; gap: 15px; } }

#back-to-top { position: fixed; right: 30px; bottom: 30px; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #000; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 100; }
#back-to-top.show { opacity: 1; pointer-events: auto; }
#wsp-float { position: fixed; bottom: 95px; right: 30px; background: #25D366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; z-index: 100; transition: 0.3s; }
