/* ================================================================
   LECOMAN - PREMIUM LIGHT DESIGN SYSTEM
   Advanced animations, grid hero, glass morphism
   Optimizado para PageSpeed Insights
   ================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

html { 
    font-size: 16px; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: auto;
    overflow-y: scroll; /* Siempre mostrar espacio para scrollbar */
    /* Optimización de renderizado */
    text-rendering: optimizeSpeed;
}

/* ========== OPTIMIZACIONES DE RENDIMIENTO ========== */
/* Lazy rendering para secciones fuera del viewport */
/* Excluir secciones con ScrollTrigger para no romper cálculos de posición */
/* También excluir .intro: su altura real es crítica para el pin de servicios */
section:not(.hero):not(.intro):not(.services-horizontal):not(.stats-section) {
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

/* Reducir animaciones si el usuario lo prefiere */
@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;
    }
}

/* Placeholder para imágenes lazy loading */
img[loading="lazy"] {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* ========== SCROLLBAR PERSONALIZADA ========== */
::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
    width: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}

/* Firefox - con detección de soporte */
@supports (scrollbar-width: thin) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--color-primary) transparent;
    }
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    font-family: var(--font-primary);
    background: #FAFBFE;
    color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.6;
}

body.is-loading { overflow: hidden !important; }
body.nav-open { overflow: hidden !important; }

/* Scrollbar adaptada al preloader (fondo oscuro) */
html.is-loading::-webkit-scrollbar-track {
    background: #1a1a2e !important;
}
html.is-loading::-webkit-scrollbar-thumb {
    background: var(--color-primary) !important;
}

/* Scrollbar adaptada al menú (fondo muy oscuro) */
html.nav-open::-webkit-scrollbar-track {
    background: #0a0a0f !important;
}
html.nav-open::-webkit-scrollbar-thumb {
    background: var(--color-primary) !important;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:visited { color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ========== NOISE OVERLAY ========== */
/* GPU layer para noise overlay fijo — evita recomposición en cada frame de scroll */
.noise-overlay {
    will-change: transform;
    transform: translateZ(0);
}
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========== TYPOGRAPHY ========== */
.section-label {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 3rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1a1a2e;
    padding-right: 0.05em;
}

.section-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9997;
    background: rgba(0,0,0,0.05);
    will-change: transform;
    transform: translateZ(0);
}

.scroll-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    transform-origin: left;
    will-change: transform;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    clip-path: inset(0 0 0 0);
}

.preloader__logo {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}

.preloader__progress {
    width: min(280px, 60vw);
    height: 2px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    border-radius: 10px;
}

.preloader__bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--color-primary), #ff6b6b, var(--color-primary));
    background-size: 200% 100%;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: center;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.preloader__counter {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 0.5rem;
}

/* ========== CURSOR ========== */
html, body {
    cursor: none !important;
}

a, button, input, textarea, select, [role="button"], .magnetic-btn, .header__menu-btn {
    cursor: none !important;
}

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #1a1a2e;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.3s var(--ease-out-expo), 
                height 0.3s var(--ease-out-expo),
                mix-blend-mode 0.1s;
}

.cursor.is-active {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    mix-blend-mode: normal;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(26,26,46,0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.4s var(--ease-out-expo), 
                height 0.4s var(--ease-out-expo),
                border-color 0.3s ease;
}

.cursor-follower.is-active {
    width: 48px;
    height: 48px;
    border-color: var(--color-primary);
}

/* ========== HEADER MINIMALISTA ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    mix-blend-mode: difference;
    will-change: transform;
    transform: translateZ(0);
    transition: padding 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header.is-scrolled {
    padding: 1rem 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo tipográfico */
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header__logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #fff;
    text-transform: uppercase;
}

.header__logo-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Botón de menú */
.header__menu-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.25s ease, 
                border-color 0.25s ease,
                transform 0.2s ease;
    will-change: transform;
}

.header__menu-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.02);
}

.header__menu-btn:active {
    transform: scale(0.98);
}

.header__menu-label {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header__menu-icon {
    position: relative;
    width: 24px;
    height: 12px;
}

.header__menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    will-change: transform;
}

.header__menu-icon span:first-child { top: 0; }
.header__menu-icon span:last-child { bottom: 0; width: 60%; }

/* Hamburger → X animation handled by GSAP in initHeader() */

/* ========== FULLSCREEN NAVIGATION ========== */
.nav-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    visibility: hidden;
}

.nav-fullscreen.is-open {
    pointer-events: all;
}

.nav-fullscreen__bg {
    position: absolute;
    inset: 0;
    background: #0a0a0f;
    transform-origin: top center;
}

.nav-fullscreen__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(6rem, 10vh, 8rem) clamp(2rem, 5vw, 5rem) clamp(2rem, 4vh, 3rem);
}

.nav-fullscreen__main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
}

/* Menu Links */
.nav-fullscreen__menu {
    display: flex;
    flex-direction: column;
}

.nav-fullscreen__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-fullscreen__item {
    overflow: hidden;
}

.nav-fullscreen__link {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.25rem 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-fullscreen__link::before {
    content: attr(data-index);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
    min-width: 2rem;
}

.nav-fullscreen__link-text {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    position: relative;
}

.nav-fullscreen__link-text::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-fullscreen__link:hover .nav-fullscreen__link-text {
    color: var(--color-primary);
    transform: translateX(1.5rem);
}

.nav-fullscreen__link:hover .nav-fullscreen__link-text::after {
    width: 100%;
}

.nav-fullscreen__link-label {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-left: auto;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-fullscreen__link:hover .nav-fullscreen__link-label {
    opacity: 1;
    transform: translateX(0);
    color: rgba(255,255,255,0.7);
}

/* Visual/Image Section */
.nav-fullscreen__visual {
    position: relative;
    height: 70%;
    border-radius: 24px;
    overflow: hidden;
}

.nav-fullscreen__image-wrapper {
    position: absolute;
    inset: 0;
}

.nav-fullscreen__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.nav-fullscreen__visual:hover .nav-fullscreen__image {
    transform: scale(1.08);
}

.nav-fullscreen__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230,57,70,0.3) 0%, rgba(10,10,15,0.5) 100%);
}

/* Footer del nav */
.nav-fullscreen__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-fullscreen__contact {
    display: flex;
    gap: 2rem;
}

.nav-fullscreen__contact a,
.nav-fullscreen__social a {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-fullscreen__contact a:hover,
.nav-fullscreen__social a:hover {
    color: #fff;
}

.nav-fullscreen__social {
    display: flex;
    gap: 1.5rem;
}

.nav-fullscreen__social a {
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .nav-fullscreen__main {
        grid-template-columns: 1fr;
    }
    
    .nav-fullscreen__visual {
        display: none;
    }
    
    .nav-fullscreen__link-text {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

@media (max-width: 600px) {
    .header__menu-label {
        display: none;
    }
    
    .header__menu-btn {
        padding: 0.75rem;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
    
    .nav-fullscreen__contact {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-fullscreen__footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 12vh, 10rem) 0;
    overflow: hidden;
    background: #FAFBFE;
    contain: layout style;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

/* Grid Background */
.hero__grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 50% 40%, transparent 30%, #FAFBFE 90%);
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* Floating Shapes */
.hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    will-change: transform;
    transform: translateZ(0);
}

.hero__shape--1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(230,57,70,0.3) 0%, rgba(255,107,107,0.2) 100%);
    top: -10%;
    right: -5%;
}

.hero__shape--2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(78,205,196,0.2) 0%, rgba(132,94,247,0.15) 100%);
    bottom: -10%;
    left: -5%;
}

.hero__shape--3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(132,94,247,0.2) 0%, rgba(230,57,70,0.15) 100%);
    top: 40%;
    left: 30%;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    background: rgba(255,255,255,0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(40px);
}

.hero__eyebrow-line {
    width: 2rem;
    height: 2px;
    background: var(--color-primary);
    transform-origin: left;
    border-radius: 2px;
}

.hero__eyebrow-text {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(26,26,46,0.7);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: #1a1a2e;
    padding-right: 0.1em;
}

.hero__title-line {
    display: block;
    overflow: hidden;
}

.hero__title-text {
    display: block;
    transform: translateY(100%);
    opacity: 0;
}

.hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff8a8a 50%, var(--color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero__subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(26,26,46,0.6);
    max-width: 550px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: #1a1a2e;
    color: #fff;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(26,26,46,0.2);
    opacity: 0;
    transform: translateY(40px);
}

.hero__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
    border-radius: 100px;
}

.hero__cta:hover::before {
    transform: translateX(0);
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(230,57,70,0.3);
}

.hero__cta-arrow {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.hero__cta:hover .hero__cta-arrow {
    transform: translateX(5px);
}

.hero__scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(40px);
}

.hero__scroll-text {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(26,26,46,0.4);
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 2px;
    height: 80px;
    background: rgba(26,26,46,0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.hero__scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    80% { top: 100%; opacity: 0.3; }
    100% { top: 0; opacity: 1; }
}

.hero__counter {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

.hero__counter-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    display: block;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1a2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__counter-label {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(26,26,46,0.5);
}

/* ========== INTRO ========== */
.intro {
    padding: clamp(8rem, 15vh, 15rem) 0;
    background: #fff;
    position: relative;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #fff 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #f5f5f5 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.intro__text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: rgba(26,26,46,0.12);
    max-width: 1100px;
}

.intro__text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.intro__text .char {
    display: inline-block;
}

.intro__text .char-inner {
    display: inline-block;
    color: #c0c0c0;
    opacity: 0.4;
    transition: color 0.15s ease-out, opacity 0.15s ease-out;
}

.intro__text .char-inner.is-visible {
    color: #1a1a2e;
    opacity: 1;
}

.intro__text .space {
    display: inline;
}

.intro__text .word-inner {
    display: inline-block;
    transition: color 0.15s ease;
}

.intro__text .word-inner.is-visible {
    color: #1a1a2e;
}

/* ========== SERVICES HORIZONTAL ========== */
.services-horizontal {
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
    contain: layout style;
}

.services-horizontal__wrapper {
    padding: clamp(6rem, 10vh, 10rem) 0;
    position: relative;
}

.services-horizontal__header {
    margin-bottom: 4rem;
    text-align: left;
    padding-left: clamp(2rem, 5vw, 5rem);
    position: relative;
}

.services-horizontal__header .section-label {
    color: var(--color-primary);
}

.services-horizontal__header .section-title {
    color: #111111;
}

.services-horizontal__header .section-title em {
    color: #111111;
}

.services-horizontal__track {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: 2rem clamp(2rem, 5vw, 5rem);
    width: max-content;
    align-items: stretch;
    will-change: transform;
    transform: translateZ(0);
}

/* Service Card - Diseño más limpio */
.service-card {
    position: relative;
    width: clamp(320px, 28vw, 420px);
    height: clamp(450px, 60vh, 550px);
    background: #1a1a2e;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    contain: layout style paint;
    transform: translateZ(0);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02) translateZ(0);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(230, 57, 70, 0.1);
}

.service-card__number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    z-index: 5;
    letter-spacing: 0.15em;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateZ(0);
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-card__number {
    background: var(--color-primary);
    border-color: transparent;
    transform: scale(1.05);
}

.service-card__image {
    position: absolute;
    inset: 0;
    z-index: 1;
    contain: strict;
}

.service-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.2) 30%,
        rgba(0,0,0,0.5) 60%,
        rgba(0,0,0,0.95) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}

.service-card:hover .service-card__image::after {
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0.3) 30%,
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0.98) 100%);
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}

.service-card:hover .service-card__image img {
    transform: scale(1.12);
}

.service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 3;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__content {
    transform: translateY(-8px);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
    color: #fff;
}

.service-card__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.service-card:hover .service-card__desc {
    opacity: 1;
    max-height: 120px;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--color-primary);
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.service-card:hover .service-card__link {
    opacity: 1;
    transform: translateY(0);
}

.service-card__link:hover {
    background: #d63447;
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.45);
    transform: translateY(-2px) !important;
}

.service-card__link svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.service-card__link:hover svg {
    transform: translateX(4px);
}

/* Services Responsive */
@media (max-width: 992px) {
    .services-horizontal__header {
        text-align: center;
        padding-left: 0;
    }
    
    .service-card {
        width: clamp(280px, 70vw, 350px);
        height: clamp(380px, 55vh, 480px);
    }
    
    .service-card__content {
        padding: 1.5rem;
    }
    
    .service-card__title {
        font-size: 1.25rem;
    }
}

/* Móvil: mostrar descripción y botón sin hover */
@media (max-width: 768px) {
    .service-card__desc,
    .service-card:hover .service-card__desc {
        opacity: 1 !important;
        max-height: 120px !important;
        overflow: visible !important;
    }
    
    .service-card__link,
    .service-card:hover .service-card__link {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .service-card__content {
        transform: translateY(-8px);
    }
    
    .service-card {
        width: clamp(260px, 75vw, 360px);
        height: clamp(380px, 58vh, 480px);
    }
}

@media (max-width: 600px) {
    .service-card {
        width: 75vw;
        height: clamp(340px, 52vh, 420px);
    }
    
    .services-horizontal__header {
        margin-bottom: 2rem;
    }
}

/* ========== STATS SECTION ========== */
.stats-section {
    position: relative;
    padding: clamp(8rem, 15vh, 15rem) 0;
    overflow: hidden;
    background: #f5f5f5;
    contain: layout style;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #f5f5f5 0%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #f5f5f5 0%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

.stats-section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,107,107,0.08) 0%, transparent 70%);
}

.stats-section__bg-img {
    display: none;
}

.stats-section__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,107,107,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26,26,46,0.04) 0%, transparent 50%);
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* Stats floating shapes */
.stats-section__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.stats-section__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    will-change: transform;
    transform: translateZ(0);
}

.stats-section__shape--1 {
    width: 400px;
    height: 400px;
    background: rgba(255,107,107,0.15);
    top: -100px;
    right: -100px;
}

.stats-section__shape--2 {
    width: 300px;
    height: 300px;
    background: rgba(26,26,46,0.08);
    bottom: -50px;
    left: -50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: rgba(26,26,46,0.1);
}

.stat-item:last-child::after {
    display: none;
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    display: inline;
    color: #1a1a2e;
}

.stat-item__suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
}

.stat-item__label {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(26,26,46,0.5);
}

/* ========== PROCESS / COMO TRABAJAMOS ========== */
.process-section {
    padding-top: clamp(6rem, 14vh, 14rem);
    padding-bottom: clamp(6rem, 12vh, 10rem);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes */
.process-section__bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.process-section__bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.process-section.is-visible .process-section__bg-shape {
    opacity: 1;
}

.process-section__bg-shape--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.06) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: processFloat1 20s ease-in-out infinite;
}

.process-section__bg-shape--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.05) 0%, transparent 70%);
    bottom: -50px;
    left: -100px;
    animation: processFloat2 25s ease-in-out infinite;
}

.process-section__bg-shape--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(132, 94, 247, 0.04) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: processFloat3 18s ease-in-out infinite;
}

@keyframes processFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes processFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.15); }
}

@keyframes processFloat3 {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-50%, -40px) scale(1.1); }
}

.process-section__header {
    text-align: center;
    margin-bottom: clamp(4rem, 8vh, 6rem);
    position: relative;
    z-index: 2;
}

.process-section__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 1.25rem auto 0;
    line-height: var(--line-height-relaxed);
}

/* ========== TIMELINE LAYOUT ========== */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
}

/* Vertical timeline line */
.process-timeline__line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 2px;
    z-index: 1;
}

.process-timeline__line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
    transition: height 0.1s linear;
    position: relative;
}

.process-timeline__line-fill::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.5);
}

/* Each timeline item */
.process-timeline__item {
    position: relative;
    padding-bottom: clamp(2.5rem, 5vh, 4rem);
    opacity: 0;
    transform: translateY(40px);
}

.process-timeline__item:last-child {
    padding-bottom: 0;
}

.process-timeline__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline dot */
.process-timeline__dot {
    position: absolute;
    left: -33px;
    top: 2rem;
    width: 18px;
    height: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-timeline__dot-core {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(var(--color-primary-rgb), 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.process-timeline__item.is-visible .process-timeline__dot-core {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.15);
}

.process-timeline__dot-ping {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.2);
    opacity: 0;
    z-index: 1;
}

.process-timeline__item.is-visible .process-timeline__dot-ping {
    animation: dotPing 2s cubic-bezier(0, 0, 0.2, 1) 0.5s;
}

@keyframes dotPing {
    0% { transform: scale(1); opacity: 0.5; }
    75%, 100% { transform: scale(2.5); opacity: 0; }
}

/* Timeline card */
.process-timeline__card {
    position: relative;
    margin-left: 1rem;
}

.process-timeline__card-glow {
    position: absolute;
    inset: -1px;
    border-radius: clamp(16px, 2.5vw, 24px);
    background: linear-gradient(135deg, 
        rgba(var(--color-primary-rgb), 0.15) 0%, 
        rgba(var(--color-primary-rgb), 0.0) 50%,
        rgba(78, 205, 196, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    filter: blur(1px);
}

.process-timeline__card:hover .process-timeline__card-glow {
    opacity: 1;
}

.process-timeline__card-inner {
    position: relative;
    background: #fff;
    border-radius: clamp(16px, 2.5vw, 24px);
    padding: clamp(2rem, 4vw, 2.5rem);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.03),
        0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
}

.process-timeline__card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), rgba(78, 205, 196, 0.6));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px 24px 0 0;
}

.process-timeline__item.is-visible .process-timeline__card-inner::before {
    transform: scaleX(1);
}

.process-timeline__card-inner:hover {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.03),
        0 20px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(var(--color-primary-rgb), 0.1);
}

/* Card header with number and badge */
.process-timeline__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.process-timeline__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-timeline__badge {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.08);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.process-timeline__item.is-visible .process-timeline__badge {
    opacity: 1;
    transform: translateX(0);
}

/* Icon */
.process-timeline__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08) 0%, rgba(var(--color-primary-rgb), 0.03) 100%);
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.process-timeline__icon-wrap::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.process-timeline__card-inner:hover .process-timeline__icon-wrap {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12) 0%, rgba(var(--color-primary-rgb), 0.06) 100%);
    transform: scale(1.08) rotate(-3deg);
}

.process-timeline__card-inner:hover .process-timeline__icon-wrap::after {
    opacity: 1;
}

.process-timeline__icon-wrap svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
    transition: transform 0.4s ease;
}

.process-timeline__card-inner:hover .process-timeline__icon-wrap svg {
    transform: scale(1.1);
}

/* Title */
.process-timeline__title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: var(--line-height-snug);
    transition: color 0.3s ease;
}

.process-timeline__card-inner:hover .process-timeline__title {
    color: var(--color-primary-dark);
}

/* Text */
.process-timeline__text {
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 520px;
    margin-bottom: 1.25rem;
}

/* Tags */
.process-timeline__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.process-timeline__tag {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(8px);
}

.process-timeline__item.is-visible .process-timeline__tag {
    opacity: 1;
    transform: translateY(0);
}

.process-timeline__item.is-visible .process-timeline__tag:nth-child(1) { transition-delay: 0.4s; }
.process-timeline__item.is-visible .process-timeline__tag:nth-child(2) { transition-delay: 0.5s; }
.process-timeline__item.is-visible .process-timeline__tag:nth-child(3) { transition-delay: 0.6s; }

.process-timeline__card-inner:hover .process-timeline__tag {
    background: rgba(var(--color-primary-rgb), 0.06);
    border-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary-dark);
}

/* ========== PROCESS RESPONSIVE ========== */
@media (max-width: 768px) {
    /* Remove timeline line and dots — cards only */
    .process-timeline {
        padding-left: 0;
    }
    
    .process-timeline__line,
    .process-timeline__dot {
        display: none;
    }
    
    .process-timeline__card {
        margin-left: 0;
    }

    .process-timeline__card-inner {
        padding: 1.5rem;
    }
    
    .process-timeline__icon-wrap {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .process-timeline__icon-wrap svg {
        width: 22px;
        height: 22px;
    }
    
    .process-section__bg-shape--1,
    .process-section__bg-shape--3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .process-section {
        padding-top: clamp(4rem, 10vh, 8rem);
        padding-bottom: clamp(4rem, 8vh, 6rem);
    }

    .process-timeline__card-inner {
        padding: 1.25rem;
    }

    .process-timeline__number {
        font-size: 2rem;
    }

    .process-timeline__icon-wrap {
        width: 40px;
        height: 40px;
    }

    .process-timeline__icon-wrap svg {
        width: 18px;
        height: 18px;
    }
    
    .process-timeline__badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.7rem;
    }
    
    .process-timeline__tags {
        gap: 0.35rem;
    }
    
    .process-timeline__tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.65rem;
    }
}

/* ========== COMPARISON SECTION ========== */
.comparison-section {
    padding: clamp(6rem, 12vh, 12rem) 0;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.comparison-section__header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.comparison-section__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(26, 26, 46, 0.6);
    margin-top: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.comparison-slider {
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-slider__container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: clamp(12px, 2vw, 24px);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    cursor: ew-resize;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y pinch-zoom;
    contain: layout paint;
}

/* Imagen Después - Capa inferior (siempre visible a la derecha) */
.comparison-slider__after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.comparison-slider__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transform: translateZ(0);
}

/* Imagen Antes - Capa superior (se recorta con clip-path) */
.comparison-slider__before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
    backface-visibility: hidden;
}

.comparison-slider__before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transform: translateZ(0);
}

.comparison-slider__label {
    position: absolute;
    top: clamp(1rem, 3vw, 1.5rem);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-accent);
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 5;
    pointer-events: none;
    transform: translateZ(0);
    isolation: isolate;
}

.comparison-slider__label--before {
    left: clamp(1rem, 3vw, 1.5rem);
    background: rgba(26, 26, 46, 0.85);
    color: #fff;
}

.comparison-slider__label--after {
    right: clamp(1rem, 3vw, 1.5rem);
    background: rgba(230, 57, 70, 0.9);
    color: #fff;
}

.comparison-slider__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 50px;
    margin-left: -25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: ew-resize;
    will-change: left;
    backface-visibility: hidden;
}

.comparison-slider__handle-line {
    flex: 1;
    width: 4px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%,
        #fff 15%,
        #fff 85%,
        rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(230, 57, 70, 0.15);
    border-radius: 4px;
    position: relative;
}

.comparison-slider__handle-line::before,
.comparison-slider__handle-line::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.4);
}

.comparison-slider__handle-line::before {
    top: 0;
}

.comparison-slider__handle-line::after {
    bottom: 0;
}

.comparison-slider__handle-circle {
    width: clamp(48px, 9vw, 60px);
    height: clamp(48px, 9vw, 60px);
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 8px 40px rgba(230, 57, 70, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s ease;
    flex-shrink: 0;
    border: 3px solid rgba(230, 57, 70, 0.2);
    position: relative;
}

.comparison-slider__handle-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(230, 57, 70, 0.3);
    animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.comparison-slider__container.is-dragging .comparison-slider__handle-circle::before,
.comparison-slider__container.has-interacted .comparison-slider__handle-circle::before {
    animation-play-state: paused;
}

.comparison-slider__handle-circle:hover {
    transform: scale(1.12);
    box-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.3),
        0 12px 50px rgba(230, 57, 70, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    border-color: rgba(230, 57, 70, 0.4);
}

.comparison-slider__handle-circle svg {
    width: clamp(16px, 3.5vw, 20px);
    height: clamp(16px, 3.5vw, 20px);
    stroke: var(--color-primary);
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px rgba(230, 57, 70, 0.3));
    transition: transform 0.2s ease;
}

.comparison-slider__handle-circle:hover svg {
    transform: scale(1.1);
}

.comparison-slider__container.is-dragging .comparison-slider__handle-circle {
    transform: scale(1.18);
    box-shadow: 
        0 8px 35px rgba(230, 57, 70, 0.45),
        0 0 0 4px rgba(230, 57, 70, 0.15);
    border-color: var(--color-primary);
}

/* Comparison Responsive */
@media (max-width: 768px) {
    .comparison-slider__container {
        aspect-ratio: 4 / 3;
        contain: style;
        min-height: 40vh;
    }
    
    @keyframes sliderHint {
        0%, 100% {
            transform: translateX(0);
        }
        25% {
            transform: translateX(-8px);
        }
        75% {
            transform: translateX(8px);
        }
    }
    
    .comparison-slider__handle-circle {
        width: 48px;
        height: 48px;
    }
    
    .comparison-slider__handle-circle::before {
        inset: -4px;
    }
    
    .comparison-slider__handle-circle svg {
        width: 16px;
        height: 16px;
    }
    
    .comparison-slider__handle-line::before,
    .comparison-slider__handle-line::after {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .comparison-section {
        padding: clamp(4rem, 10vh, 8rem) 0;
    }
    
    .comparison-slider__container {
        aspect-ratio: 3 / 4;
        border-radius: 16px;
        contain: style;
        min-height: 50vh;
    }
    
    .comparison-slider__label {
        top: 0.75rem;
        padding: 0.4rem 0.9rem;
        font-size: 0.6rem;
    }
    
    .comparison-slider__label--before {
        left: 0.75rem;
    }
    
    .comparison-slider__label--after {
        right: 0.75rem;
    }
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: clamp(6rem, 12vh, 12rem) 0;
    background: #fff;
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #fff 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.faq-section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-item:hover {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.faq-item__question {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-item__answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(26,26,46,0.7);
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: clamp(8rem, 15vh, 15rem) 0;
    background: #F5F7FA;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #F5F7FA 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.cta-section__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.cta-section__content {
    padding-right: 2rem;
}

.cta-section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.cta-section__title .word {
    display: inline-block;
    overflow: hidden;
}

.cta-section__title .word-inner {
    display: inline-block;
}

.cta-section__desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(26,26,46,0.6);
    margin-bottom: 3rem;
    max-width: 450px;
}

.cta-section__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-section__info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(26,26,46,0.7);
    font-size: 0.95rem;
}

.cta-section__info-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    flex-shrink: 0;
}

.cta-section__info-item a:hover {
    color: var(--color-primary);
}

/* ========== CONTACT FORM ========== */
.contact-form {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.contact-form__group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 1.25rem 0 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(26,26,46,0.1);
    color: #1a1a2e;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: var(--color-primary);
}

.contact-form__textarea {
    resize: none;
    min-height: 120px;
}

.contact-form__label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 0.9rem;
    color: rgba(26,26,46,0.5);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.contact-form__input:focus + .contact-form__label,
.contact-form__input:not(:placeholder-shown) + .contact-form__label,
.contact-form__textarea:focus + .contact-form__label,
.contact-form__textarea:not(:placeholder-shown) + .contact-form__label {
    top: -0.5rem;
    font-size: 0.7rem;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-form__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.5s var(--ease-out-expo);
}

.contact-form__input:focus ~ .contact-form__line,
.contact-form__textarea:focus ~ .contact-form__line {
    width: 100%;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 2.5rem;
    background: #1a1a2e;
    color: #fff;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1rem;
    border-radius: 100px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,26,46,0.2);
}

.contact-form__submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease-out-expo);
    border-radius: 100px;
}

.contact-form__submit:hover::before {
    transform: translateY(0);
}

.contact-form__submit:hover {
    box-shadow: 0 8px 30px rgba(230,57,70,0.3);
}

.contact-form__submit span,
.contact-form__submit svg {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.contact-form__submit svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

/* ========== FOOTER MODERNO ========== */
.footer {
    background: #0f0f1a;
    color: rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Footer CTA Section */
.footer__cta {
    padding: clamp(6rem, 12vh, 12rem) 0;
    text-align: center;
    position: relative;
}

.footer__cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 2rem;
}

.footer__cta-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff8a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.footer__cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateY(101%);
    transition: transform 0.5s var(--ease-out-expo);
    border-radius: 100px;
}

.footer__cta-btn:hover::before {
    transform: translateY(0);
}

.footer__cta-btn:hover {
    color: #1a1a2e;
}

.footer__cta-btn span,
.footer__cta-btn svg {
    position: relative;
    z-index: 2;
}

.footer__cta-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.footer__cta-btn:hover svg {
    transform: translateX(5px);
}

/* Footer Main Content */
.footer__main {
    padding: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.footer__brand {
    position: relative;
}

.footer__brand-logo {
    margin-bottom: 1.5rem;
}

.footer__brand-logo img {
    height: 40px;
    width: auto;
}

.footer__brand p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 280px;
    margin-bottom: 2rem;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.footer__social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    transition: color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.footer__social-link:visited {
    color: rgba(255,255,255,0.6);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__social-link:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 10px 30px rgba(230,57,70,0.4);
}

.footer__column {
    padding-top: 0.5rem;
}

.footer__column h4 {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer__link,
.footer__link:link,
.footer__link:visited,
.footer__link:any-link {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7) !important;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    width: fit-content;
    text-decoration: none;
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.4s var(--ease-out-expo);
}

.footer__link:hover,
.footer__link:focus-visible,
.footer__link:active {
    color: #fff !important;
}

.footer__link:hover::after,
.footer__link:focus-visible::after {
    width: 100%;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}

.footer__contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer__contact-item a,
.footer__contact-item a:link,
.footer__contact-item a:visited,
.footer__contact-item a:any-link {
    color: rgba(255,255,255,0.6) !important;
    transition: color 0.3s ease;
}

.footer__contact-item:hover,
.footer__contact-item a:hover {
    color: #fff !important;
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem clamp(1.5rem, 5vw, 5rem);
    max-width: 1440px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a,
.footer__legal a:link,
.footer__legal a:visited,
.footer__legal a:any-link {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35) !important;
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: var(--color-primary) !important;
}

.footer__developer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

.footer__developer a,
.footer__developer a:link,
.footer__developer a:visited,
.footer__developer a:any-link {
    color: rgba(255,255,255,0.4) !important;
    transition: color 0.3s ease;
}

.footer__developer a:hover {
    color: var(--color-primary) !important;
}

/* Footer Marquee */
.footer__marquee {
    padding: 1.5rem 0;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer__marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.footer__marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
    white-space: nowrap;
}

.footer__marquee-item {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========== MAGNETIC BUTTON ========== */
.magnetic-btn {
    will-change: transform;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .cta-section__wrapper {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(400px, 100vw);
        height: 100vh;
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 4rem;
        border-radius: 0;
        border: none;
        box-shadow: -20px 0 60px rgba(0,0,0,0.15);
        transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    
    .header__nav.is-open {
        right: 0;
    }
    
    .header__menu {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .header__link {
        font-size: 2rem;
        font-weight: 700;
        color: #1a1a2e;
        padding: 0.75rem 0;
        border-radius: 0;
    }
    
    .header__link::before {
        display: none;
    }
    
    .header__link.active {
        color: var(--color-primary);
    }
    
    .header__toggle {
        display: flex;
    }
    
    .header__cta {
        display: none;
    }
    
    body.nav-open {
        overflow: hidden;
    }
    
    .cta-section__wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    .service-card {
        width: clamp(320px, 80vw, 400px);
        height: clamp(450px, 60vh, 550px);
    }
}

@media (max-width: 768px) {
    .hero__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero__counter {
        text-align: left;
    }
    
    .hero__scroll-hint {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero__title {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* ========== VISIBILITY FIXES ========== */
/* Asegurar que los elementos nunca desaparezcan completamente */
/* NOTA: .stat-item excluido — controlado por GSAP ScrollTrigger */
.section-header,
.about__content,
.about__image,
.contact__info,
.service-card,
.footer__brand,
.footer__column,
.cta__title,
.cta__text,
.cta__button,
.form__group,
.form__submit {
    visibility: visible !important;
}

/* Estados iniciales para animaciones - los elementos empiezan invisibles */
.gsap-init {
    opacity: 0;
    transform: translateY(40px);
}

/* Lenis smooth scroll */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ========== PROFESSIONAL TRANSITIONS ========== */
.service-card,
.footer__social-link,
.hero__cta,
.cta__button,
.contact-form__submit {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== IMPROVED SERVICE CARDS ========== */
.services-horizontal {
    min-height: 100vh;
}

.services-horizontal__wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========== ENHANCED SCROLL PROGRESS ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    background: rgba(0,0,0,0.05);
}

.scroll-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform-origin: left;
    transform: scaleX(0);
}

/* ========== SMOOTH SECTION TRANSITIONS ========== */
section {
    position: relative;
}

/* ========== IMPROVED INTRO TEXT ========== */
.intro__text .word {
    margin-right: 0.3em;
    line-height: 1.4;
}

.intro__text .word-inner {
    color: rgba(26,26,46,0.12);
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro__text .word-inner.is-visible {
    color: #1a1a2e;
}

/* ========== BETTER CTA STYLING ========== */
.cta {
    position: relative;
    overflow: hidden;
}

.cta__title,
.cta__text,
.cta__button {
    will-change: transform, opacity;
}

/* ========== FORM IMPROVEMENTS ========== */
.form__group {
    will-change: transform, opacity;
}

.form__line {
    transform-origin: left;
    transform: scaleX(0);
}

/* ========== PRELOADER POLISH ========== */
.preloader {
    clip-path: inset(0 0 0 0);
}

/* ========== STATS SECTION POLISH ========== */

.stat-item__number {
    font-variant-numeric: tabular-nums;
}

/* ========== GPU ACCELERATION ========== */
.hero__content,
.service-card,
.stats-section__bg-img,
.cta__bg-img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ========== MARQUEE SLIDER ========== */
.marquee-section {
    padding: 2rem 0;
    background: #fff;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.marquee {
    display: flex;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

.marquee__track {
    display: flex;
    animation: marqueeScroll 25s linear infinite;
    will-change: transform;
}

.marquee__content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    flex-shrink: 0;
}

.marquee__item {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.marquee__item::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.marquee--reverse .marquee__track {
    animation-direction: reverse;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========== COOKIE POPUP ========== */
.cookie-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cookie-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cookie-popup__container {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}

.cookie-popup.is-visible .cookie-popup__container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cookie-popup__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-popup__icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, rgba(230,57,70,0.12) 0%, rgba(230,57,70,0.04) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-popup__icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.cookie-popup__title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.cookie-popup__subtitle {
    font-size: 0.9rem;
    color: rgba(26,26,46,0.5);
}

.cookie-popup__body {
    margin-bottom: 1.5rem;
}

.cookie-popup__description {
    font-size: 0.95rem;
    color: rgba(26,26,46,0.7);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.cookie-popup__options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(26,26,46,0.03);
    border-radius: 16px;
    margin-top: 1rem;
}

.cookie-popup__option {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.cookie-popup__option:hover {
    background: rgba(26,26,46,0.04);
}

.cookie-popup__option input {
    display: none;
}

.cookie-popup__option-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid rgba(26,26,46,0.2);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.cookie-popup__option input:checked + .cookie-popup__option-check {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.cookie-popup__option input:checked + .cookie-popup__option-check::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-popup__option input:disabled + .cookie-popup__option-check {
    background: rgba(26,26,46,0.1);
    border-color: rgba(26,26,46,0.1);
}

.cookie-popup__option input:disabled + .cookie-popup__option-check::after {
    border-color: rgba(26,26,46,0.4);
}

.cookie-popup__option-info strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.15rem;
}

.cookie-popup__option-info span {
    font-size: 0.8rem;
    color: rgba(26,26,46,0.5);
}

.cookie-popup__footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cookie-popup__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.cookie-popup__btn {
    padding: 0.9rem 1.75rem;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.cookie-popup__btn--accept {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(230,57,70,0.3);
}

.cookie-popup__btn--accept:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230,57,70,0.4);
}

.cookie-popup__btn--reject {
    background: #1a1a2e;
    color: #fff;
}

.cookie-popup__btn--reject:hover {
    background: #2d2d4a;
    transform: translateY(-2px);
}

.cookie-popup__btn--settings {
    background: transparent;
    color: #1a1a2e;
    border: 2px solid rgba(26,26,46,0.15);
}

.cookie-popup__btn--settings:hover {
    border-color: rgba(26,26,46,0.3);
    background: rgba(26,26,46,0.04);
}

.cookie-popup__link {
    font-size: 0.8rem;
    color: rgba(26,26,46,0.5);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-popup__link:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 540px) {
    .cookie-popup__container {
        padding: 1.5rem;
    }
    
    .cookie-popup__header {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-popup__buttons {
        flex-direction: column;
    }
    
    .cookie-popup__btn {
        width: 100%;
    }
}

/* ========== LEGAL PAGES ========== */
.legal-page {
    padding: clamp(8rem, 15vh, 12rem) 0 clamp(4rem, 8vh, 8rem);
    background: #FAFBFE;
    min-height: 100vh;
}

.legal-page__header {
    margin-bottom: 4rem;
    text-align: center;
}

.legal-page__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.legal-page__updated {
    font-size: 0.9rem;
    color: rgba(26,26,46,0.5);
}

.legal-page__content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: 0 4px 40px rgba(0,0,0,0.04);
}

.legal-page__content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.legal-page__content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-page__content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 1.5rem 0 0.75rem;
}

.legal-page__content p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(26,26,46,0.7);
    margin-bottom: 1rem;
}

.legal-page__content ul,
.legal-page__content ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.legal-page__content li {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(26,26,46,0.7);
    margin-bottom: 0.5rem;
}

.legal-page__content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-page__content strong {
    font-weight: 600;
    color: #1a1a2e;
}

.legal-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 0.875rem 1.5rem;
    background: rgba(26,26,46,0.04);
    color: #1a1a2e;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.legal-page__back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.legal-page__back:hover {
    background: var(--color-primary);
    color: #fff;
}

.legal-page__back:hover svg {
    transform: translateX(-3px);
}

.legal-page__container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.legal-page__date {
    font-size: 0.9rem;
    color: rgba(26,26,46,0.5);
    margin-top: 0.5rem;
}

.legal-page__section {
    margin-bottom: 2.5rem;
}

.legal-page__section:last-child {
    margin-bottom: 0;
}

/* Cookie Settings Toggle */
.legal-page__cookie-settings {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(26,26,46,0.02);
    border-radius: 16px;
    border: 1px solid rgba(26,26,46,0.06);
}

.legal-page__cookie-settings h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.cookie-toggle {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-toggle__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-toggle__item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.cookie-toggle__item input[type="checkbox"] {
    display: none;
}

.cookie-toggle__label {
    flex: 1;
    font-weight: 500;
    color: #1a1a2e;
}

.cookie-toggle__status {
    font-size: 0.85rem;
    color: rgba(26,26,46,0.4);
    font-style: italic;
}

.cookie-toggle__switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(26,26,46,0.15);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.cookie-toggle__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cookie-toggle__item input:checked + .cookie-toggle__label + .cookie-toggle__switch {
    background: var(--color-primary);
}

.cookie-toggle__item input:checked + .cookie-toggle__label + .cookie-toggle__switch::after {
    transform: translateX(22px);
}

.legal-page__cookie-settings .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========== POPUP DE CONTACTO ========== */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    padding: 1.5rem;
}

.contact-popup.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.contact-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.contact-popup__container {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.contact-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #888;
    transition: all 0.3s ease;
}

.contact-popup__close:hover {
    background: #f5f5f5;
    color: var(--color-secondary);
}

.contact-popup__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: none;
    border-radius: 50%;
}

.contact-popup__icon svg {
    width: 100%;
    height: 100%;
}

/* Estado de éxito */
.contact-popup.success .contact-popup__icon--success {
    display: block;
    color: #22c55e;
    animation: popupIconSuccess 0.6s ease forwards;
}

.contact-popup.success .contact-popup__container {
    border-top: 4px solid #22c55e;
}

/* Estado de error */
.contact-popup.error .contact-popup__icon--error {
    display: block;
    color: #ef4444;
    animation: popupIconError 0.5s ease forwards;
}

.contact-popup.error .contact-popup__container {
    border-top: 4px solid #ef4444;
}

.contact-popup__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.contact-popup__message {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.contact-popup.success .contact-popup__btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

.contact-popup.success .contact-popup__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.contact-popup.error .contact-popup__btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c41d2e 100%);
    color: #fff;
}

.contact-popup.error .contact-popup__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

/* Animaciones del icono */
@keyframes popupIconSuccess {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes popupIconError {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Loader del botón de envío */
.contact-form__submit.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0.8;
    pointer-events: none;
}

/* Campo honeypot anti-spam (debe estar oculto) */
.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnLoaderSpin 0.8s linear infinite;
}

@keyframes btnLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive popup */
@media (max-width: 480px) {
    .contact-popup__container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .contact-popup__icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    .contact-popup__title {
        font-size: 1.5rem;
    }

    .contact-popup__message {
        font-size: 0.95rem;
    }

    .contact-popup__btn {
        width: 100%;
    }
}

/* ========== SERVICE LIGHTBOX ========== */
.service-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.service-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.service-lightbox__container {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-lightbox.active .service-lightbox__container {
    transform: scale(1) translateY(0);
}

.service-lightbox__image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.service-lightbox__image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: contain;
}

.service-lightbox__close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 10;
}

.service-lightbox__close:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--accent-hover);
}

.service-lightbox__close svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: white;
    stroke-width: 2.5;
}

.service-lightbox__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), transparent);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Hacer las cards de servicio clickables */
.service-card--clickable {
    cursor: pointer;
}

.service-card--clickable .service-card__image {
    transition: transform 0.4s ease;
}

.service-card--clickable:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card--clickable .service-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(230, 57, 70, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card--clickable:hover .service-card__image::after {
    opacity: 1;
}

.service-card__zoom-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.service-card--clickable:hover .service-card__zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.service-card__zoom-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--dark);
    stroke-width: 2;
}

@media (max-width: 768px) {
    .service-lightbox {
        padding: 1rem;
    }
    
    .service-lightbox__close {
        top: -0.5rem;
        right: -0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .service-lightbox__title {
        font-size: 1.125rem;
        padding: 1.5rem 1rem;
    }
}
