/* =========================================================
   AXD Interactive – movimiento y profundidad (js/axd-motion.js)
   Paleta: negro, blanco y azul
   ========================================================= */

/* Capa de efectos detrás del contenido de cada sección */
.axdFxHost { position: relative; isolation: isolate; }
.axdFx {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Palabra gigante con contorno */
.axdBigWord {
    position: absolute;
    left: 0;
    white-space: nowrap;
    font-family: "Nimbus-Bold", sans-serif;
    font-size: clamp(5rem, 15vw, 15rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
    background: linear-gradient(90deg, rgba(61, 139, 255, 0.0), rgba(61, 139, 255, 0.10) 40%, rgba(255, 255, 255, 0.06) 60%, rgba(61, 139, 255, 0));
    -webkit-background-clip: text;
    background-clip: text;
    will-change: transform;
    transform: translate3d(-22%, 0, 0);
    user-select: none;
}

/* Luces azules de fondo */
.axdGlow {
    position: absolute;
    top: 18%;
    left: -10%;
    width: 46vw;
    height: 46vw;
    max-width: 680px;
    max-height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 139, 255, 0.16), rgba(61, 139, 255, 0) 65%);
    filter: blur(10px);
    will-change: transform;
}
.axdGlow.isRight { left: auto; right: -12%; top: 40%; }
.axdGlow.isSmall {
    width: 26vw;
    height: 26vw;
    max-width: 380px;
    max-height: 380px;
    top: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 65%);
}
.axdGlow.isSmall.isRight { top: 8%; }

/* Hero: el texto sube y se desvanece, el video baja más lento */
.axdMotion .aiCarousel .carousel-text {
    translate: 0 calc(var(--heroY, 0px) * -1);
    filter: opacity(var(--heroFade, 1));
}
.axdMotion .aiCarousel .background-video { translate: 0 var(--heroBgY, 0px); }
.axdMotion .aiCarousel .axdHeroCanvas { translate: 0 calc(var(--heroY, 0px) * 0.6); }

/* Imágenes de los casos con profundidad */
.axdDepth img {
    transform: translate3d(0, var(--py, 0%), 0) scale(var(--ps, 1.12));
    transition: transform 0.25s linear;
    will-change: transform;
}
.axdCase:hover .axdDepth img { --ps: 1.15; }

/* Títulos que suben al aparecer */
.axdRise {
    clip-path: inset(0 0 100% 0);
    transform: translateY(28px);
    transition: clip-path 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.axdRise.isIn { clip-path: inset(-20% -5% -20% -5%); transform: none; }

/* Brillo que sigue al mouse */
.axdSpotlight, .axdLogoCard, .aiCard, .axdCaseMedia { --mx: 50%; --my: 50%; }
.axdLit { position: relative; }
.axdSpotlight::before, .axdLogoCard::before, .aiCard::before, .axdCaseMedia::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(320px circle at var(--mx) var(--my), rgba(61, 139, 255, 0.18), rgba(255, 255, 255, 0.04) 40%, transparent 70%);
    z-index: 2;
}
.axdLit::before { opacity: 1; }

@media (max-width: 768px) {
    .axdBigWord { -webkit-text-stroke-width: 0.7px; }
    .axdGlow { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .axdRise { clip-path: none; transform: none; }
}
