#progreso-scroll {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #22d3ee);
    z-index: 2000;
    pointer-events: none;
}

.js-anim .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
}

.js-anim .reveal.reveal-izq {
    transform: translateX(-46px);
}

.js-anim .reveal.reveal-der {
    transform: translateX(46px);
}

.js-anim .reveal.reveal-zoom {
    transform: scale(.92);
}

.js-anim .reveal.visible {
    opacity: 1;
    transform: none;
}

.linea-acento {
    position: relative;
    overflow: hidden;
}

.linea-acento::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
    transform: translateX(-100%);
    animation: brilloLinea 3s ease-in-out infinite;
}

@keyframes brilloLinea {
    60%, 100% {
        transform: translateX(100%);
    }
}

#hero {
    isolation: isolate;
}

#hero::before {
    z-index: 0;
}

.hero-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    will-change: transform;
}

.hero-aurora span:nth-child(1) {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -120px;
    background: #0ea5e9;
    animation: aurora1 18s ease-in-out infinite alternate;
}

.hero-aurora span:nth-child(2) {
    width: 460px;
    height: 460px;
    bottom: -180px;
    left: 30%;
    background: #6366f1;
    opacity: .4;
    animation: aurora2 22s ease-in-out infinite alternate;
}

.hero-aurora span:nth-child(3) {
    width: 380px;
    height: 380px;
    top: 10%;
    right: -100px;
    background: #22d3ee;
    opacity: .3;
    animation: aurora3 20s ease-in-out infinite alternate;
}

@keyframes aurora1 {
    to {
        transform: translate(180px, 120px) scale(1.15);
    }
}

@keyframes aurora2 {
    to {
        transform: translate(-160px, -120px) scale(1.2);
    }
}

@keyframes aurora3 {
    to {
        transform: translate(-140px, 160px) scale(.9);
    }
}

.hero-rejilla {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    animation: rejilla 30s linear infinite;
}

@keyframes rejilla {
    to {
        background-position: 64px 64px, 64px 64px;
    }
}

.hero-entrada {
    opacity: 0;
    transform: translateY(28px);
    animation: heroEntrada .9s cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes heroEntrada {
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-badge {
    position: relative;
    overflow: hidden;
}

.hero-badge i {
    animation: latidoVerde 2s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes latidoVerde {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
}

.hero-titulo .highlight {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #a5b4fc, #22d3ee, #0ea5e9);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: degradadoTexto 6s linear infinite;
    position: relative;
    display: inline-block;
}

.hero-titulo .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .08em;
    height: .12em;
    border-radius: 1em;
    background: linear-gradient(90deg, #0ea5e9, #a5b4fc);
    transform: scaleX(0);
    transform-origin: left;
    animation: subrayado 1s 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
    opacity: .7;
}

@keyframes degradadoTexto {
    to {
        background-position: 300% 0;
    }
}

@keyframes subrayado {
    to {
        transform: scaleX(1);
    }
}

.btn-hero-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    animation: barrido 3.5s ease-in-out infinite;
}

@keyframes barrido {
    0%, 55% {
        left: -60%;
    }

    100% {
        left: 130%;
    }
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
}

.hero-stat-card {
    transition: transform .35s ease, background .35s ease, border-color .35s ease;
}

.hero-stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .16);
    border-color: rgba(56, 189, 248, .55);
}

.hero-stat-card .numero {
    background: linear-gradient(180deg, #fff, #bae6fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.hero-escena {
    position: relative;
    perspective: 1200px;
    padding: 30px 10px 30px 40px;
}

.hero-imagen .panel-mock {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-12deg) rotateX(6deg);
    transition: transform .25s ease-out;
    animation: flotar 7s ease-in-out infinite;
}

.hero-imagen .panel-mock::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(56, 189, 248, .8), transparent 35%, transparent 65%, rgba(129, 140, 248, .8));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes flotar {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -14px;
    }
}

.mock-barra {
    width: 0;
    animation: crecerBarra 1.4s cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: var(--d, .8s);
}

@keyframes crecerBarra {
    to {
        width: var(--w);
    }
}

.mock-kpi {
    transition: transform .3s ease, border-color .3s ease;
}

.mock-kpi:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(56, 189, 248, .5) !important;
}

.chip-flotante {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #fff;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .3);
    animation: chipFlotar 6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

.chip-1 {
    top: 0;
    left: 0;
    color: #fb923c;
}

.chip-2 {
    top: 38%;
    right: -18px;
    color: #f87171;
}

.chip-3 {
    bottom: 4px;
    left: 18px;
    color: #4ade80;
}

.chip-4 {
    bottom: 22%;
    left: -8px;
    color: #a5b4fc;
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

@keyframes chipFlotar {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-16px) rotate(4deg);
    }
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 90px;
    z-index: 3;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: 14px;
    display: block;
}

.hero-scroll::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: rueda 1.8s ease-in-out infinite;
}

@keyframes rueda {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(14px);
    }
}

.hero-ola path {
    animation: ola 9s ease-in-out infinite alternate;
}

@keyframes ola {
    to {
        d: path("M0,30 C420,0 1020,80 1440,30 L1440,80 L0,80 Z");
    }
}

#servicios {
    position: relative;
    overflow: hidden;
}

#servicios::before {
    content: "";
    position: absolute;
    top: 80px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .1), transparent 70%);
    pointer-events: none;
}

#servicios .servicio-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#servicios .servicio-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity .4s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(14, 165, 233, .12), transparent 45%);
}

#servicios .servicio-card:hover::before {
    opacity: 1;
}

#servicios .servicio-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s ease;
}

#servicios .servicio-card:hover::after {
    transform: scaleX(1);
}

#servicios .servicio-icono {
    position: relative;
    transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}

#servicios .servicio-card:hover .servicio-icono {
    transform: translateY(-4px) rotate(-8deg) scale(1.1);
}

#servicios .servicio-card li {
    transition: transform .3s ease;
}

#servicios .servicio-card:hover li {
    transform: translateX(4px);
}

#servicios .servicio-card:hover li:nth-child(2) {
    transition-delay: .05s;
}

#servicios .servicio-card:hover li:nth-child(3) {
    transition-delay: .1s;
}

#servicios .servicio-radio::after {
    background: linear-gradient(90deg, #ff3d71, #8b5cf6);
}

.seguimiento-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(120deg, #0ea5e9, #1a3a6b, #4f46e5, #0ea5e9);
    background-size: 300% 300%;
    animation: degradadoCaja 14s ease infinite;
}

.seguimiento-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 22px 22px;
}

@keyframes degradadoCaja {
    50% {
        background-position: 100% 50%;
    }
}

.radar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
}

.radar i {
    position: relative;
    z-index: 2;
    margin: 0 !important;
}

.radar span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .5);
    animation: ondaRadar 2.8s ease-out infinite;
}

.radar span:nth-child(2) {
    animation-delay: .9s;
}

.radar span:nth-child(3) {
    animation-delay: 1.8s;
}

@keyframes ondaRadar {
    from {
        transform: scale(.4);
        opacity: 1;
    }

    to {
        transform: scale(1.6);
        opacity: 0;
    }
}

.seguimiento-box .btn-light {
    transition: transform .25s ease, box-shadow .25s ease;
}

.seguimiento-box .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

#por-que {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#por-que::before,
#por-que::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

#por-que::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: rgba(14, 165, 233, .35);
    animation: aurora1 20s ease-in-out infinite alternate;
}

#por-que::after {
    width: 380px;
    height: 380px;
    bottom: -140px;
    right: -60px;
    background: rgba(99, 102, 241, .35);
    animation: aurora2 24s ease-in-out infinite alternate;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ventajas-grid .ventaja-item {
    margin: 0;
    padding: 1.3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .35s ease, background .35s ease, border-color .35s ease;
}

.ventajas-grid .ventaja-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(56, 189, 248, .45);
}

.ventajas-grid .ventaja-icono {
    transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), background .3s ease, color .3s ease;
}

.ventajas-grid .ventaja-item:hover .ventaja-icono {
    transform: rotate(-10deg) scale(1.12);
    background: #0ea5e9;
    color: #fff;
}

#testimonios .card {
    transition: transform .4s ease, box-shadow .4s ease;
}

#testimonios .card:hover {
    transform: translateY(-4px);
}

#testimonios .fa-star:not(.opacity-25) {
    animation: estrella 2.4s ease-in-out infinite;
}

#testimonios .fa-star:nth-child(2) {
    animation-delay: .15s;
}

#testimonios .fa-star:nth-child(3) {
    animation-delay: .3s;
}

#testimonios .fa-star:nth-child(4) {
    animation-delay: .45s;
}

#testimonios .fa-star:nth-child(5) {
    animation-delay: .6s;
}

@keyframes estrella {
    0%, 70%, 100% {
        transform: scale(1);
    }

    80% {
        transform: scale(1.3);
    }
}

.blog-card .card-img-top,
.blog-card .img-placeholder {
    transition: transform .6s ease;
}

.blog-card:hover .card-img-top,
.blog-card:hover .img-placeholder {
    transform: scale(1.06);
}

#redes .card {
    transition: transform .35s ease, box-shadow .35s ease;
}

#redes .card:hover {
    transform: translateY(-8px) rotate(-.5deg);
}

.contacto-dato {
    transition: transform .3s ease;
}

.contacto-dato > div:first-child {
    transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease;
}

.contacto-dato:hover {
    transform: translateX(6px);
}

.contacto-dato:hover > div:first-child {
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 10px 22px rgba(15, 31, 61, .25);
}

#contacto .card {
    position: relative;
    overflow: hidden;
}

#contacto .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #22d3ee, #0ea5e9);
    background-size: 200% 100%;
    animation: degradadoTexto 4s linear infinite;
}

#contacto .form-control,
#contacto .form-select {
    transition: border-color .25s ease, box-shadow .25s ease;
}

#contacto .form-control:focus,
#contacto .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .15);
}

#btnEnviarContacto {
    transition: transform .25s ease, box-shadow .25s ease;
}

#btnEnviarContacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 58, 107, .35);
}

@media (max-width: 991.98px) {
    .hero-scroll {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .ventajas-grid {
        grid-template-columns: 1fr;
    }

    .hero-aurora span {
        filter: blur(60px);
    }
}

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

    .hero-entrada,
    .js-anim .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .mock-barra {
        width: var(--w) !important;
    }
}
