::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #0de8e1; }
html { scroll-behavior: smooth; }
.glass { background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(16px); }

.mobile-menu-overlay {
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.mobile-menu-open {
    overflow: hidden;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-sequence .hero-step {
    opacity: 0;
    transform: translateY(24px);
    animation: hero-step-in 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-title .hero-line {
    line-height: 1.15;
    padding-bottom: 0.08em;
}
.hero-sequence .hero-step-1 { animation-delay: 0.225s; }
.hero-sequence .hero-step-2 { animation-delay: 0.675s; }
.hero-sequence .hero-step-3 { animation-delay: 1.2s; }
.hero-sequence .hero-step-4 { animation-delay: 1.65s; }
.hero-sequence .hero-step-5 { animation-delay: 1.95s; }

@keyframes hero-step-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-sequence .hero-step {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@keyframes blob {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(30px, -42px, 0) scale(1.08); }
    66% { transform: translate3d(-18px, 18px, 0) scale(0.94); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
.animate-blob { animation: blob 20s ease-in-out infinite alternate; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

.hero-gradient {
    background:
        radial-gradient(58% 44% at 50% 24%, rgba(13, 232, 225, 0.18) 0%, rgba(13, 232, 225, 0) 72%),
        radial-gradient(38% 30% at 82% 8%, rgba(45, 212, 191, 0.1) 0%, rgba(45, 212, 191, 0) 76%);
}

.card-hover {
    position: relative;
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.38s ease, box-shadow 0.38s ease;
}
.card-hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 46%;
    height: 100%;
    background: linear-gradient(112deg, transparent, rgba(13, 232, 225, 0.17), transparent);
    transform: skewX(-18deg);
    transition: left 0.82s ease;
    pointer-events: none;
    z-index: 1;
}
.card-hover:hover::before {
    left: 150%;
}
.area-card-cue {
    transition: background-color 0.38s ease, color 0.38s ease, border-color 0.38s ease, transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.area-card:hover .area-card-cue,
.area-card:focus-visible .area-card-cue {
    background-color: #0de8e1;
    border-color: #0de8e1;
    color: #000;
    transform: translate(3px, -3px);
}
.card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 232, 225, 0.46);
    box-shadow: 0 16px 42px -18px rgba(13, 232, 225, 0.45), 0 0 0 1px rgba(13, 232, 225, 0.18);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.text-gradient-animate {
    background-size: 240% auto;
    animation: gradientMove 8s ease-in-out infinite;
}

.is-typing::after {
    content: "|";
    margin-left: 1px;
    color: rgba(13, 232, 225, 0.9);
    animation: caretBlink 0.9s steps(1, end) infinite;
}
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.client-logo {
    transition: transform 0.28s ease;
}
.client-logo:hover {
    transform: translateY(-2px);
}
.client-logo-marquee {
    --client-logo-gap: 1.25rem;
    --client-logo-duration: 9s;
    --client-logo-item-width: 8rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-logo-track {
    display: flex;
    width: max-content;
    animation: clientLogoMarquee var(--client-logo-duration) linear infinite;
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .client-logo-marquee:hover .client-logo-track {
        animation-play-state: paused;
    }
}
.client-logo-set {
    display: flex;
    align-items: center;
    gap: var(--client-logo-gap);
    padding-right: var(--client-logo-gap);
    flex: 0 0 auto;
}
.client-logo-set > div {
    width: var(--client-logo-item-width);
}
@media (min-width: 768px) {
    .client-logo-marquee {
        --client-logo-gap: 2.5rem;
        --client-logo-duration: 28s;
        --client-logo-item-width: 10rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .client-logo-track {
        animation: none;
    }
}
@keyframes clientLogoMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes caretBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Foto de fondo en los encabezados (oct-2026) */
.hero-photo {
    position: absolute;
    inset: -2%;
    z-index: -20;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    filter: saturate(0.75) contrast(1.05);
    animation: heroPhotoDrift 28s ease-in-out infinite alternate;
}
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.35) 35%, rgba(5,5,5,0.80) 80%, #050505 100%),
        radial-gradient(60% 55% at 50% 45%, rgba(5,5,5,0.78) 0%, rgba(5,5,5,0.35) 70%, rgba(5,5,5,0.15) 100%),
        linear-gradient(120deg, rgba(13,232,225,0.14) 0%, rgba(15,118,110,0.10) 45%, rgba(5,5,5,0) 70%);
}
/* En las páginas interiores el texto va a la izquierda: se oscurece ese lado */
.hero-photo--left::after {
    background:
        linear-gradient(180deg, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0.25) 40%, rgba(5,5,5,0.80) 85%, #050505 100%),
        linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.75) 40%, rgba(5,5,5,0.30) 75%, rgba(5,5,5,0.20) 100%),
        linear-gradient(120deg, rgba(13,232,225,0.12) 0%, rgba(15,118,110,0.08) 45%, rgba(5,5,5,0) 70%);
}
@media (max-width: 767px) {
    .hero-photo--left::after {
        background:
            linear-gradient(180deg, rgba(5,5,5,0.70) 0%, rgba(5,5,5,0.80) 60%, #050505 100%),
            linear-gradient(120deg, rgba(13,232,225,0.12) 0%, rgba(5,5,5,0) 60%);
    }
}
@keyframes heroPhotoDrift {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to   { transform: scale(1.08) translate3d(-1%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-photo { animation: none; }
}
