/* ============================================================
   YA PÍDELO
   NUEVO SISTEMA VISUAL
   style-new.css
============================================================ */


/* ============================================================
   VARIABLES GLOBALES
============================================================ */

:root {

    /* COLORES PRINCIPALES */
    --color-primary: #4f46e5;
    --color-primary-light: #6366f1;
    --color-primary-dark: #3730a3;

    --color-secondary: #7c3aed;
    --color-secondary-light: #8b5cf6;

    --color-accent: #06b6d4;
    --color-accent-light: #22d3ee;

    /* FONDOS */
    --color-bg: #ffffff;
    --color-bg-soft: #f8faff;
    --color-bg-alt: #f4f6ff;
    --color-bg-dark: #0b1020;
    --color-bg-dark-soft: #11182b;

    /* TEXTO */
    --color-text: #15172b;
    --color-text-soft: #5d6477;
    --color-text-light: #8b92a5;
    --color-text-white: #ffffff;

    /* BORDES */
    --color-border: rgba(21, 23, 43, 0.10);
    --color-border-light: rgba(255, 255, 255, 0.15);

    /* ESTADOS */
    --color-success: #22c55e;
    --color-warning: #f59e0b;

    /* SOMBRAS */
    --shadow-xs:
        0 4px 10px rgba(15, 23, 42, 0.04);

    --shadow-sm:
        0 10px 30px rgba(15, 23, 42, 0.07);

    --shadow-md:
        0 20px 50px rgba(15, 23, 42, 0.10);

    --shadow-lg:
        0 35px 90px rgba(15, 23, 42, 0.15);

    --shadow-primary:
        0 20px 50px rgba(79, 70, 229, 0.25);

    /* RADIOS */
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 999px;

    /* ANCHO */
    --container-width: 1240px;

    /* TRANSICIONES */
    --transition-fast: 0.2s ease;
    --transition: 0.35s ease;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

}


/* ============================================================
   RESET
============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family: "Inter", sans-serif;

    color: var(--color-text);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcff 45%,
            #ffffff 100%
        );

    line-height: 1.6;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;
}


body.menu-open {
    overflow: hidden;
}


img {
    max-width: 100%;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
    background: none;
    cursor: pointer;
}


ul,
ol {
    list-style: none;
}


/* ============================================================
   SCROLLBAR
============================================================ */

::-webkit-scrollbar {
    width: 10px;
}


::-webkit-scrollbar-track {
    background: #f1f3fa;
}


::-webkit-scrollbar-thumb {

    background:
        linear-gradient(
            180deg,
            var(--color-primary),
            var(--color-secondary)
        );

    border-radius: 20px;

    border: 2px solid #f1f3fa;
}


/* ============================================================
   SELECCIÓN
============================================================ */

::selection {
    color: white;
    background: var(--color-primary);
}


/* ============================================================
   ACCESIBILIDAD
============================================================ */

.skip-link {

    position: fixed;

    top: -100px;
    left: 20px;

    z-index: 99999;

    background: var(--color-primary);

    color: white;

    padding: 12px 18px;

    border-radius: 8px;

    font-weight: 700;

    transition: var(--transition);
}

.skip-link:focus {
    top: 20px;
}


/* ============================================================
   CONTAINER
============================================================ */

.container {

    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-inline: auto;
}


/* ============================================================
   FONDO GLOBAL
============================================================ */

.site-background {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -10;

    overflow: hidden;
}


.background-orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(110px);

    opacity: 0.16;
}


.background-orb-1 {

    width: 500px;
    height: 500px;

    background: #6366f1;

    top: -180px;
    right: -180px;
}


.background-orb-2 {

    width: 420px;
    height: 420px;

    background: #8b5cf6;

    top: 35%;
    left: -200px;
}


.background-orb-3 {

    width: 420px;
    height: 420px;

    background: #06b6d4;

    bottom: 5%;
    right: -200px;
}


/* ============================================================
   SECCIONES
============================================================ */

.section {

    position: relative;

    padding:
        clamp(48px, 5vw, 72px)
        0;
}


.section-heading {

    max-width: 820px;

    margin-bottom: 64px;
}


.section-heading h2 {

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(2.3rem, 4vw, 4.4rem);

    line-height: 1.06;

    letter-spacing: -0.05em;

    font-weight: 800;

    margin-bottom: 22px;
}


.section-heading p {

    max-width: 690px;

    color: var(--color-text-soft);

    font-size: clamp(1rem, 1.2vw, 1.15rem);

    line-height: 1.8;
}


.section-heading-row {

    max-width: none;

    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(300px, 0.7fr);

    gap: 80px;

    align-items: end;
}


.gradient-text {

    background:
        linear-gradient(
            95deg,
            var(--color-primary) 0%,
            var(--color-secondary) 55%,
            var(--color-accent) 100%
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;
}


/* ============================================================
   BADGES
============================================================ */

.section-badge {

    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding:
        8px 13px;

    margin-bottom: 22px;

    border-radius: var(--radius-pill);

    border: 1px solid rgba(79, 70, 229, 0.18);

    background:
        rgba(79, 70, 229, 0.06);

    color: var(--color-primary-dark);

    font-size: 0.73rem;

    letter-spacing: 0.08em;

    font-weight: 800;

    text-transform: uppercase;
}


.badge-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-accent)
        );

    box-shadow:
        0 0 0 5px
        rgba(79, 70, 229, 0.08);
}


.section-badge-light {

    color: #dfe3ff;

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        rgba(255, 255, 255, 0.13);
}


/* ============================================================
   BOTONES
============================================================ */

.button {

    display: inline-flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    min-height: 52px;

    padding:
        0 23px;

    border-radius: 14px;

    font-weight: 700;

    font-size: 0.94rem;

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}


.button i {
    font-size: 0.95rem;
}


.button:hover {
    transform: translateY(-3px);
}


.button-primary {

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );

    box-shadow:
        0 12px 30px
        rgba(79, 70, 229, 0.25);
}


.button-primary:hover {

    box-shadow:
        0 18px 38px
        rgba(79, 70, 229, 0.34);
}


.button-secondary {

    color: var(--color-text);

    border: 1px solid var(--color-border);

    background:
        rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(12px);

    box-shadow: var(--shadow-xs);
}


.button-secondary:hover {

    background: white;

    border-color:
        rgba(79, 70, 229, 0.28);

    box-shadow: var(--shadow-sm);
}


.button-light {

    color: var(--color-bg-dark);

    background: white;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.18);
}


.button-outline-light {

    color: white;

    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    background:
        rgba(255, 255, 255, 0.05);
}


.button-outline-light:hover {

    background:
        rgba(255, 255, 255, 0.10);
}


.button-full {
    width: 100%;
}


.button-header {

    min-height: 46px;

    padding:
        0 18px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--color-primary),
            var(--color-secondary)
        );

    box-shadow:
        0 10px 25px
        rgba(79, 70, 229, 0.20);
}


/* ============================================================
   TEXT LINKS
============================================================ */

.text-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--color-primary);

    font-weight: 750;

    margin-top: 8px;

    transition: gap var(--transition);
}


.text-link:hover {
    gap: 13px;
}


/* ============================================================
   HEADER
============================================================ */

.site-header {

    position: fixed;

    top: 0;

    left: 0;
    right: 0;

    z-index: 1000;

    padding:
        18px 0;

    transition:
        background var(--transition),
        box-shadow var(--transition),
        padding var(--transition),
        backdrop-filter var(--transition);
}


.site-header.scrolled {

    padding:
        10px 0;

    background:
        rgba(255, 255, 255, 0.88);

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 8px 30px
        rgba(15, 23, 42, 0.07);

    border-bottom:
        1px solid
        rgba(15, 23, 42, 0.05);
}


.header-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.brand {

    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.brand-logo {

    width: 158px;

    height: auto;

    object-fit: contain;
}


.desktop-navigation {

    display: flex;

    align-items: center;

    gap: 32px;

    margin-left: auto;
}


.nav-link {

    position: relative;

    font-size: 0.92rem;

    font-weight: 650;

    color: #333849;

    padding:
        8px 0;

    transition: color var(--transition-fast);
}


.nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            var(--color-primary),
            var(--color-secondary)
        );

    transition: width var(--transition);
}


.nav-link:hover {

    color: var(--color-primary);
}


.nav-link:hover::after {
    width: 100%;
}


.header-actions {

    display: flex;

    align-items: center;

    gap: 12px;
}


/* ============================================================
   BOTÓN MENÚ MÓVIL
============================================================ */

.mobile-menu-button {

    width: 46px;
    height: 46px;

    display: none;

    justify-content: center;

    align-items: center;

    flex-direction: column;

    gap: 5px;

    border-radius: 12px;

    border: 1px solid var(--color-border);

    background: white;

    box-shadow: var(--shadow-xs);
}


.mobile-menu-button span {

    width: 20px;
    height: 2px;

    border-radius: 2px;

    background: var(--color-text);

    transition: var(--transition);
}


/* ============================================================
   MENÚ MÓVIL
============================================================ */

.mobile-menu {

    position: fixed;

    inset: 0;

    z-index: 3000;

    visibility: hidden;

    pointer-events: none;
}


.mobile-menu.is-open {

    visibility: visible;

    pointer-events: auto;
}


.mobile-menu-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(8, 12, 30, 0.60);

    backdrop-filter:
        blur(7px);

    opacity: 0;

    transition:
        opacity var(--transition);
}


.mobile-menu.is-open
.mobile-menu-overlay {

    opacity: 1;
}


.mobile-menu-panel {

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(90%, 420px);

    padding: 24px;

    background: white;

    display: flex;

    flex-direction: column;

    transform: translateX(105%);

    transition:
        transform 0.45s
        cubic-bezier(0.22, 1, 0.36, 1);

    box-shadow:
        -30px 0 60px
        rgba(15, 23, 42, 0.18);
}


.mobile-menu.is-open
.mobile-menu-panel {

    transform: translateX(0);
}


.mobile-menu-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 22px;

    border-bottom:
        1px solid var(--color-border);
}


.mobile-menu-logo {

    width: 145px;
}


.mobile-menu-close {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(--color-bg-soft);

    color: var(--color-text);

    font-size: 1.2rem;
}


.mobile-navigation {

    display: flex;

    flex-direction: column;

    gap: 4px;

    padding:
        28px 0;
}


.mobile-navigation a {

    padding:
        15px 6px;

    font-family: "Manrope", sans-serif;

    font-size: 1.25rem;

    font-weight: 750;

    border-bottom:
        1px solid
        rgba(15, 23, 42, 0.06);

    transition:
        color var(--transition),
        transform var(--transition);
}


.mobile-navigation a:hover {

    color: var(--color-primary);

    transform: translateX(5px);
}


.mobile-menu-footer {

    margin-top: auto;

    padding-top: 24px;

    border-top:
        1px solid var(--color-border);
}


.mobile-menu-footer p {

    color: var(--color-text-soft);

    margin-bottom: 15px;
}


/* ============================================================
   BUSINESS STRIP
============================================================ */

.business-strip {

    position: relative;

    overflow: hidden;

    border-top:
        1px solid
        rgba(15, 23, 42, 0.06);

    border-bottom:
        1px solid
        rgba(15, 23, 42, 0.06);

    background:
        rgba(255, 255, 255, 0.72);

    backdrop-filter:
        blur(14px);
}


.business-strip-track {

    overflow: hidden;
}


.business-strip-content {

    width: max-content;

    display: flex;

    align-items: center;

    gap: 30px;

    padding:
        20px 0;

    animation:
        marquee-business
        32s linear
        infinite;
}


.business-strip-content span {

    font-family:
        "Manrope",
        sans-serif;

    font-size: 0.78rem;

    text-transform: uppercase;

    letter-spacing: 0.09em;

    font-weight: 800;

    color: #60667a;
}


.business-strip-content i {

    font-size: 0.25rem;

    color: var(--color-primary);
}


@keyframes marquee-business {

    from {
        transform:
            translateX(0);
    }

    to {
        transform:
            translateX(-50%);
    }

}


/* ============================================================
   CTA FINAL
============================================================ */

.final-cta-section {

    padding-top: 60px;
}


.final-cta {

    position: relative;

    overflow: hidden;

    min-height: 480px;

    display: grid;

    grid-template-columns:
        1fr 0.7fr;

    align-items: center;

    gap: 40px;

    padding:
        clamp(45px, 6vw, 80px);

    border-radius:
        clamp(28px, 4vw, 42px);

    color: white;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(99, 102, 241, 0.30),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #10162c,
            #171c3c 55%,
            #20184a
        );

    box-shadow:
        0 40px 100px
        rgba(15, 23, 42, 0.18);
}


.final-cta-glow {

    position: absolute;

    width: 440px;
    height: 440px;

    right: -120px;
    bottom: -180px;

    border-radius: 50%;

    background:
        rgba(124, 58, 237, 0.25);

    filter:
        blur(90px);
}


.final-cta-content {

    position: relative;

    z-index: 4;
}


.final-cta-content h2 {

    max-width: 750px;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(2.4rem, 4.6vw, 4.8rem);

    line-height: 1.03;

    letter-spacing: -0.055em;

    margin-bottom: 23px;
}


.final-cta-content h2 span {

    display: block;

    color: #aeb6ff;
}


.final-cta-content p {

    max-width: 640px;

    color:
        rgba(255, 255, 255, 0.65);

    line-height: 1.8;

    margin-bottom: 28px;
}


.final-cta-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.final-cta-visual {

    position: relative;

    height: 340px;
}


.cta-circle {

    position: absolute;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);
}


.cta-circle-one {

    width: 300px;
    height: 300px;

    right: 20px;
    top: 20px;
}


.cta-circle-two {

    width: 210px;
    height: 210px;

    right: 65px;
    top: 65px;

    border-color:
        rgba(255, 255, 255, 0.18);
}


.cta-floating-icon {

    position: absolute;

    width: 58px;
    height: 58px;

    display: grid;

    place-items: center;

    border-radius: 17px;

    color: white;

    background:
        rgba(255, 255, 255, 0.09);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 18px 45px
        rgba(0,0,0,0.18);

    animation:
        cta-float
        5s ease-in-out
        infinite;
}


.cta-icon-one {

    right: 230px;
    top: 35px;
}


.cta-icon-two {

    right: 30px;
    top: 130px;

    animation-delay:
        -1.6s;
}


.cta-icon-three {

    right: 165px;
    bottom: 20px;

    animation-delay:
        -3s;
}


@keyframes cta-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}


/* ============================================================
   FOOTER V2
============================================================ */

.site-footer {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(99,102,241,.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(6,182,212,.055),
            transparent 24%
        ),
        #0a1022;

    color: white;
}


.site-footer::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size:
        45px 45px;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


.site-footer > .container {
    position: relative;

    z-index: 2;
}


.footer-top {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.25fr)
        repeat(
            3,
            minmax(150px, .75fr)
        );

    gap:
        clamp(35px, 6vw, 90px);

    padding:
        70px 0 55px;
}


.footer-brand > p {
    max-width: 300px;

    color:
        rgba(255,255,255,.56);

    font-size: 0.75rem;

    line-height: 1.65;

    margin-bottom: 22px;
}


.footer-socials {
    display: flex;

    gap: 9px;
}


.footer-socials a {
    width: 39px;
    height: 39px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    color:
        rgba(255,255,255,.83);

    background:
        rgba(255,255,255,.055);

    border:
        1px solid
        rgba(255,255,255,.10);

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}


.footer-socials a:hover {
    transform:
        translateY(-4px);

    color: white;

    background:
        rgba(99,102,241,.22);

    border-color:
        rgba(139,143,255,.25);
}


.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.footer-column h3 {
    color: white;

    font-size: 0.76rem;

    margin-bottom: 20px;
}


.footer-column a {
    position: relative;

    width: fit-content;

    color:
        rgba(255,255,255,.58);

    font-size: 0.69rem;

    margin-bottom: 13px;

    transition:
        color .25s ease,
        transform .25s ease;
}


.footer-column a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -3px;

    width: 0;
    height: 1px;

    background:
        #818cf8;

    transition:
        width .25s ease;
}


.footer-column a:hover {
    color: white;

    transform:
        translateX(3px);
}


.footer-column a:hover::after {
    width: 100%;
}


.footer-bottom {
    min-height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding:
        20px 0;

    border-top:
        1px solid
        rgba(255,255,255,.07);
}


.footer-bottom p,
.footer-bottom span {
    color:
        rgba(255,255,255,.40);

    font-size: 0.57rem;
}


@media (max-width: 991px) {

    .footer-top {
        grid-template-columns:
            repeat(2, 1fr);

        gap:
            45px 55px;
    }

}


@media (max-width: 575px) {

    .footer-top {
        grid-template-columns:
            1fr;

        padding:
            55px 0 40px;

        gap: 38px;
    }


    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        gap: 8px;
    }

}


/* ============================================================
   WHATSAPP FLOTANTE
============================================================ */

.floating-whatsapp {

    position: fixed;

    right: 22px;
    bottom: 52px;

    z-index: 1200;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    min-height: 48px;

    padding:
        0 17px;

    border-radius:
        var(--radius-pill);

    color: white;

    background:
        #22c55e;

    font-size: 0.78rem;

    font-weight: 750;

    box-shadow:
        0 16px 40px
        rgba(34, 197, 94, 0.27);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.floating-whatsapp i {

    font-size: 1.2rem;
}


.floating-whatsapp:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 22px 50px
        rgba(34, 197, 94, 0.34);
}


/* ============================================================
   BACK TO TOP
============================================================ */

.back-to-top {

    position: fixed;

    right: 24px;
    bottom: 124px;

    z-index: 1100;

    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: white;

    background:
        var(--color-bg-dark);

    box-shadow:
        0 15px 35px
        rgba(15, 23, 42, 0.20);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(10px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}


.back-to-top.visible {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


/* ============================================================
   ANIMACIONES SCROLL
============================================================ */

.reveal {

    opacity: 0;

    transform:
        translateY(32px);

    transition:
        opacity 0.8s
        cubic-bezier(0.22, 1, 0.36, 1),

        transform 0.8s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.reveal.is-visible {

    opacity: 1;

    transform:
        translateY(0);
}


.reveal-delay-1 {
    transition-delay: 0.10s;
}


.reveal-delay-2 {
    transition-delay: 0.20s;
}


.reveal-delay-3 {
    transition-delay: 0.30s;
}


/* ============================================================
   HOVERS GENERALES
============================================================ */

@media (hover: hover) {

    .solution-card,
    .platform-card,
    .technology-card,
    .process-card,
    .difference-feature {

        will-change:
            transform;
    }

}

/* ============================================================
   RESPONSIVE GLOBAL
============================================================ */

@media (max-width: 1200px) {
    .desktop-navigation { gap: 22px; }
}

@media (max-width: 991px) {
    .container {
        width: min(calc(100% - 34px), var(--container-width));
    }

    .desktop-navigation { display: none; }
    .button-header { display: none; }
    .mobile-menu-button { display: flex; }

    .section-heading-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .final-cta {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .final-cta-visual { height: 240px; }

    .cta-circle-one,
    .cta-circle-two {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .section { padding: 45px 0; }
    .section-heading { margin-bottom: 42px; }

    .site-header { padding: 12px 0; }
    .site-header.scrolled { padding: 8px 0; }
    .brand-logo { width: 138px; }

    .final-cta { padding: 40px 25px; }
    .final-cta-actions { flex-direction: column; }
    .final-cta-actions .button { width: 100%; }
    .final-cta-visual { display: none; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }

    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 22px 0;
    }
}

@media (max-width: 575px) {
    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .section-heading h2 {
        font-size: clamp(2rem, 11vw, 3.1rem);
    }

    .section-badge {
        font-size: 0.62rem;
        padding: 7px 10px;
    }

    .footer-top { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }

    .floating-whatsapp {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .floating-whatsapp span { display: none; }

    .back-to-top {
        right: 18px;
        bottom: 108px;
    }
}

@media (min-width: 1600px) {
    :root { --container-width: 1360px; }
}

/* 
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
*/

/* ============================================================
   SISTEMA GLOBAL DE ANIMACIONES
   YA PÍDELO
============================================================ */


/* ============================================================
   REVEAL
============================================================ */

.reveal {
    opacity: 0;

    transform:
        translate3d(
            0,
            28px,
            0
        );

    transition:
        opacity 0.8s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        transform 0.8s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    transition-delay:
        var(
            --reveal-delay,
            0ms
        );

    will-change:
        opacity,
        transform;
}


.reveal.is-visible {
    opacity: 1;

    transform:
        translate3d(
            0,
            0,
            0
        );
}


/* ============================================================
   DELAYS EXISTENTES
============================================================ */

.reveal-delay-1 {
    --reveal-delay:
        110ms;
}


.reveal-delay-2 {
    --reveal-delay:
        200ms;
}


.reveal-delay-3 {
    --reveal-delay:
        290ms;
}


.reveal-delay-4 {
    --reveal-delay:
        380ms;
}


/* ============================================================
   CANVAS DE PARTÍCULAS
============================================================ */

.yp-particles {
    position: absolute;

    z-index: 1;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    opacity: 0.92;
}


/*
   Garantizamos que contenido del hero
   quede encima de las partículas.
*/

.hero-section > .container,
.home-hero > .container,
.about-hero > .container,
.platforms-hero-v3 > .container,
.projects-hero > .container,
.services-hero > .container,
.contact-hero > .container {
    position: relative;

    z-index: 3;
}


/* ============================================================
   PARALLAX
============================================================ */

.hero-visual,
.about-hero-visual,
.platforms-ecosystem,
.projects-system-visual,
.services-hero-visual,
.contact-hero-visual {
    translate:
        0
        var(
            --parallax-y,
            0px
        );
}


/* ============================================================
   TARJETAS 3D
============================================================ */

.yp-interactive-card {
    position: relative;

    transform:
        perspective(1000px)
        rotateX(
            var(
                --card-rotate-x,
                0deg
            )
        )
        rotateY(
            var(
                --card-rotate-y,
                0deg
            )
        );

    transform-style:
        preserve-3d;

    transition:
        transform 0.22s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.yp-interactive-card::before {
    content: "";

    position: absolute;

    z-index: 10;

    inset: 0;

    border-radius: inherit;

    opacity: 0;

    pointer-events: none;

    background:
        radial-gradient(
            280px circle
            at
            var(
                --mouse-x,
                50%
            )
            var(
                --mouse-y,
                50%
            ),

            rgba(
                99,
                102,
                241,
                0.10
            ),

            transparent
            65%
        );

    transition:
        opacity 0.25s ease;
}


.yp-interactive-card:hover::before {
    opacity: 1;
}


/* ============================================================
   CURSOR GLOW
============================================================ */

.yp-cursor-glow {
    position: relative;

    isolation: isolate;
}


.yp-cursor-glow::after {
    content: "";

    position: absolute;

    z-index: -1;

    width: 520px;
    height: 520px;

    left:
        calc(
            var(
                --glow-x,
                50%
            )
            - 260px
        );

    top:
        calc(
            var(
                --glow-y,
                50%
            )
            - 260px
        );

    border-radius: 50%;

    pointer-events: none;

    opacity: 0;

    background:
        radial-gradient(
            circle,
            rgba(
                99,
                102,
                241,
                0.13
            ),
            transparent
            68%
        );

    transition:
        opacity 0.3s ease;
}


.yp-cursor-glow:hover::after {
    opacity: 1;
}


/* ============================================================
   BARRAS ANIMADAS
============================================================ */

.yp-animated-bar {
    transform:
        scaleY(0);

    transform-origin:
        center bottom;

    transition:
        transform 0.85s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.yp-animated-bar.is-animated {
    transform:
        scaleY(1);
}


/* ============================================================
   FLOAT
============================================================ */

.about-floating-node,
.platforms-ecosystem-node,
.projects-system-node,
.service-floating-card,
.contact-floating-card,
.cta-floating-icon {
    animation-delay:
        var(
            --float-delay,
            0s
        );
}


/* ============================================================
   ENTRADA GENERAL DEL SITIO
============================================================ */

body:not(.page-ready) {
    opacity: 0;
}


body.page-ready {
    opacity: 1;

    transition:
        opacity 0.35s ease;
}


/* ============================================================
   ACCESIBILIDAD
============================================================ */

/* @media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }


    .reveal {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }


    .yp-particles {
        display: none;
    }


    .yp-interactive-card {
        transform: none !important;

        transition: none !important;
    }


    .yp-animated-bar {
        transform: none !important;

        transition: none !important;
    }


    body {
        opacity: 1 !important;

        transition: none !important;
    }

} */


/* ============================================================
   SLIDERS CON DRAG SUAVE
============================================================ */

.yp-drag-slider {
    cursor: grab;

    user-select: none;

    -webkit-user-select: none;

    overscroll-behavior-inline:
        contain;

    scroll-behavior: smooth;

    touch-action: pan-y;

    -webkit-overflow-scrolling: touch;
}


.yp-drag-slider.is-dragging {
    cursor: grabbing;

    scroll-behavior: auto;

    scroll-snap-type: none !important;
}


.yp-drag-slider.is-dragging * {
    cursor: grabbing !important;

    user-select: none;

    -webkit-user-select: none;
}


/* ============================================================
   TARJETAS DENTRO DEL SLIDER
============================================================ */

.yp-drag-slider > * {
    transition:
        transform 0.35s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        opacity 0.35s ease;
}


.yp-drag-slider.is-dragging > * {
    transform:
        scale(0.985);
}


/* ============================================================
   PEQUEÑA RETROALIMENTACIÓN VISUAL
============================================================ */

.yp-drag-slider::after {
    content: "";

    position: sticky;

    right: 0;

    width: 1px;
    height: 1px;

    pointer-events: none;
}

/* ============================================================
   FOOTER BRAND NUEVO
============================================================ */

.footer-brand-logo {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 22px;

    text-decoration: none;
}


/*.footer-brand-symbol {
    position: relative;

    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 14px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #7c3aed
        );

    box-shadow:
        0 14px 35px
        rgba(99, 102, 241, 0.24);

    overflow: hidden;
}*/


/*.footer-brand-symbol::after {
    content: "";

    position: absolute;

    width: 40px;
    height: 40px;

    right: -20px;
    top: -20px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.13);
}*/


.footer-brand-symbol i {
    position: relative;

    z-index: 2;

    font-size: 1rem;
}


.footer-brand-name {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.footer-brand-name strong {
    color: white;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 0.88rem;

    font-weight: 800;

    letter-spacing: 0.035em;
}


.footer-brand-name small {
    color:
        rgba(255,255,255,.46);

    font-size: 0.49rem;

    font-weight: 500;
}


