/* ── VARIABLES ────────────────────────────────────── */
:root {
    --c-bg: #23252A;
    --c-fondo: #0d1420;
    --c-surface: #1b2435;
    --c-border: #0F2D5E;
    --c-accent: #007aff;
    --c-accentA: #ffc605;
    --c-accentN: #95BF3B;
    --c-accent2: #7b61ff;
    --c-accent3: #ff4d6d;
    --c-accent4: #A8C8F0;
    --c-accent5: #c0e890;
    --c-accent6: #f8e090;
    --c-accent7: #f8c0c8;
    --c-text: #E6EDF7;
    --c-muted: #9aa6bd;
    --c-white: #ffffff;
    --c-azul: #d8e8f5;
    /* ── Colores BEYSERIN ────────────────────────────────────── */
    --c-red-primary: #F21D44;
    --c-blue-primary: #048ABF;
    --c-blue-bright: #1fb6ff;
    --c-green-lime: #95BF3B;
    --c-yellow-gold: #F2B807;
    --c-red-soft: #F25E5E;
    --c-red-low: #ff4069;

    --font-head: 'Poppins', sans-serif;
    --font-mono: 'Urbanist', monospace;
    --font-body: 'Urbanist', sans-serif;
    --radius: 12px;
    --radius-lg: 24px;
    --trans: 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* ── BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--c-accent);
    color: var(--c-bg);
}

.container {
    max-width: 100% !important;
    padding-left: 7%;
    padding-right: 7%;
}

/* ── NOISE OVERLAY ────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
    z-index: 0;
}

/* ── TYPOGRAPHY ───────────────────────────────────── */
h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.15;
}

h4,
h5 {
    font-family: var(--font-mono);
    font-weight: 600;
}

.mono {
    font-family: var(--font-mono);
    font-size: .8em;
}

.mono2 {
    font-family: var(--font-mono);
    font-size: .9em;
    color: var(--c-accent5);
}

.mono3 {
    font-family: var(--font-mono);
    font-size: .9em;
    color: var(--c-accent6);
}

.mono4 {
    font-family: var(--font-mono);
    font-size: .9em;
    color: var(--c-accent7);
}

.accent {
    color: var(--c-accentN);
}

.accent1 {
    color: var(--c-accentA);
}

.accent2 {
    color: var(--c-accent2);
}

.accent3 {
    color: var(--c-accent3);
}

.muted {
    color: var(--c-muted);
}

/* ── NAVBAR ───────────────────────────────────────── */

nav.navbar-custom {
    background: linear-gradient(180deg,
            rgba(10, 14, 24, .96),
            rgba(6, 10, 18, .96));
    backdrop-filter: blur(16px);

    border-bottom: none;

    padding: .8rem 1.5rem;
    transition: all .3s ease;
    z-index: 1000;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: clamp(1200px, 85vw, 1700px);
    border-radius: 10px;
}

@media (max-width: 768px) {
    nav.navbar-custom {
        width: calc(100% - 1rem);
        top: .5rem;
        padding: .6rem 1rem;
    }
}

nav .navbar-brand {
    display: flex;
    align-items: center;
}

nav .brand-logo {
    height: 64px;
    width: auto;
    max-width: 500px;
    object-fit: contain;
}

nav .navbar-nav {
    align-items: center;
}

.dropdown-arrow {
    font-size: .8rem;
    transition: transform 0.3s ease;
}

.dropdown-arrow {
    font-size: .8rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-item.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

nav .nav-link-custom {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .04em;
    padding: .45rem .9rem !important;
    border-radius: 8px;
    transition: all .25s ease;
}

nav .nav-link-custom:hover {
    color: var(--c-blue-bright) !important;
    transform: translateY(-1px);
}

/* LINK ACTIVO */
nav .nav-link-custom.active-link {
    color: var(--c-blue-bright) !important;
    transform: translateY(-1px);
}

nav .nav-link-custom.active-link::after {
    transform: scaleX(.8);
}

nav .nav-link-custom.active-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

nav .nav-link-custom.active-link:hover::after {
    transform: scaleX(1);
    height: 1.2px;
}

/* DROPDOWN ITEM ACTIVO */
nav .dropdown-item.active-link {
    color: var(--c-blue-bright);
    background: transparent;
}

nav .dropdown-item.active-link::after {
    transform: scaleX(.8);
}

nav .dropdown-item.active-link:hover {
    color: #ffffff;
}

nav .nav-link-custom {
    position: relative;
}

nav .nav-link-custom.dropdown-toggle {
    display: inline-block;
}

nav .dropdown-toggle::after {
    display: none;
}

nav .nav-link-custom {
    position: relative;
    display: inline-block;
}

nav .nav-link-custom::after {
    content: "";
    position: absolute;
    bottom: -4px;

    left: .9rem;
    width: calc(100% - 1.8rem);

    height: 1px;
    background: var(--c-blue-bright);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

nav .nav-link-custom:hover::after {
    transform: scaleX(1);
}

nav .nav-cta {
    border: 2px solid rgba(255, 255, 255, .85);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: .45rem 1.2rem !important;
    margin-top: 10px;
    background: transparent;
    transition: all .25s ease;
}

nav .nav-cta:hover {
    border-color: var(--c-blue-bright);
    color: var(--c-blue-bright) !important;
    box-shadow: 0 0 12px rgba(4, 138, 191, .35);
    transform: translateY(-1px);
}

nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .4rem .6rem;
    border-radius: 10px;
    transition: all .25s ease;
}

nav .navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-size: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='white' stroke-width='2' viewBox='0 0 16 16'%3E%3Cline x1='2' y1='4' x2='14' y2='4'/%3E%3Cline x1='2' y1='8' x2='14' y2='8'/%3E%3Cline x1='2' y1='12' x2='14' y2='12'/%3E%3C/svg%3E");
}

nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='white' stroke-width='2.2' viewBox='0 0 16 16'%3E%3Cline x1='3' y1='3' x2='13' y2='13'/%3E%3Cline x1='13' y1='3' x2='3' y2='13'/%3E%3C/svg%3E");
}

nav .dropdown-menu {
    position: absolute;
    width: max-content;
    min-width: 220px;
    margin-top: .3rem;
    background: linear-gradient(180deg,
            rgba(10, 14, 24, .96),
            rgba(6, 10, 18, .96));
    padding: .8rem;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    transform: translateY(5px);
    pointer-events: auto;
}

nav .dropdown-item {
    position: relative;
    color: var(--c-text);
    border-radius: 6px;
    font-size: .9rem;
    padding: .6rem 1rem;
    text-align: left;
}

nav .dropdown-item {
    display: inline-block;
    width: auto;
}

nav .dropdown-item::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 1rem;

    width: calc(100% - 2rem);
    height: 1px;
    background: var(--c-blue-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

nav .dropdown-item:hover::after {
    transform: scaleX(1);
}

nav .dropdown-item:hover {
    color: var(--c-blue-bright);
    background: transparent;
}

nav .nav-item.dropdown.show>.nav-link-custom::after {
    width: 0 !important;
}

nav .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

nav .nav-item.dropdown:has(.dropdown-item.active-link)>.nav-link-custom {
    color: var(--c-blue-bright) !important;
    transform: translateY(-1px);
}

/* SIN LÍNEA DEBAJO DEL DROPDWN INCIAL */
nav .nav-item.dropdown:has(.dropdown-item.active-link)>.nav-link-custom::after {
    transform: scaleX(0) !important;
}


/* MEDIA QUERIES */
@media (min-width: 1600px) {
    nav.navbar-custom {
        max-width: 1500px;
    }
}

@media (min-width: 1900px) {
    nav.navbar-custom {
        max-width: 1700px;
    }
}

@media (max-width:1300px) and (min-width:992px) {

    nav .brand-logo {
        height: 64px;
    }

    nav .nav-link-custom {
        font-size: .88rem;
        padding: .35rem .7rem !important;
    }

    nav .navbar-nav {
        gap: .4rem !important;
    }

}

@media (min-width:992px) {

    nav .brand-logo {
        height: 78px;
        max-width: 600px;
    }

    nav .nav-cta {
        margin-top: 0;
    }

    nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 1px;
    }

}

@media (max-width: 991px) {

    nav.navbar-custom:has(.navbar-collapse.show) {
        border-bottom-left-radius: 0;
    }

    nav .navbar-collapse {
        position: fixed;
        top: 91px;

        left: -280px;
        width: 270px;
        /*height: 100vh;*/
        height: calc(100vh - 110px);
        padding-bottom: 2rem;

        background: linear-gradient(180deg,
                rgba(10, 14, 24, .96),
                rgba(6, 10, 18, .96));
        backdrop-filter: blur(18px);
        padding: 1.5rem 1.2rem;
        transition: left 0.35s ease;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        align-items: flex-start;

    }

    nav .navbar-collapse.show {
        left: 0;
    }

    nav .navbar-nav {
        width: 100%;
        align-items: flex-start !important;
        gap: .8rem;
    }

    nav .nav-link-custom {
        width: 100%;
        text-align: left !important;
        padding: .6rem .8rem !important;
        font-size: .95rem;
    }

    nav .dropdown-item {
        text-align: left;
        padding-left: 1rem;
        padding: .4rem 0 .4rem 1rem;
    }

    /*
    .nav-item.dropdown .dropdown-arrow {
        transform: rotate(0deg);
    }
    */

}


/* ── FOOTER ───────────────────────────────────────── */
footer {
    background: var(--c-surface);
    border-top: none !important;
    padding: 5rem 0 3rem;
}

footer .container {
    padding-left: clamp(1.5rem, 7vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);
}

footer .footer-brand {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--c-white);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

footer .brand-logo {
    height: 80px;
}

footer .footer-desc {
    color: var(--c-muted);
    max-width: 280px !important;
    margin-bottom: 1.5rem;
    font-size: .85rem;
    line-height: 1.5;
}

footer .footer-desc strong {
    font-family: var(--font-mono);
    color: var(--c-white);
    display: block;
    margin-bottom: 4px;
}

footer .footer-desc strong span {
    margin-right: 6px;
}

footer .footer-desc a {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
}

footer .footer-desc a:hover {
    color: var(--c-accent);
}

footer .footer-col-title {
    font-family: var(--font-head);
    font-size: .85rem;
    color: var(--c-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.2rem;
}

footer .footer-links {
    list-style: none;
    padding: 0;
}

footer .footer-links li {
    margin-bottom: .6rem;
}

footer .footer-links a {
    color: var(--c-muted);
    text-decoration: none;
    font-size: .87rem;
    transition: var(--trans);
}

footer .footer-links a:hover {
    color: var(--c-accent);
}

footer .footer-socials {
    display: flex;
    gap: .6rem;
}

footer .footer-bottom {
    border-top: 1px solid var(--c-white);
    padding-top: 2rem;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    text-align: center;
}

footer .footer-copy {
    font-size: .82rem;
    color: var(--c-white);
}

footer .offices .footer-desc {
    margin-bottom: .7rem;
}

footer .offices .footer-desc strong {
    margin-bottom: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: .7rem;
    margin-top: 1rem;
}

.social-link {
    width: 32px;
    height: 32px;
    border: none !important;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-white);
    text-decoration: none;
    font-size: .85rem;
    transition: var(--trans);
}

.social-link:hover {
    color: var(--c-accent);
}


/* MEDIA QUERIES*/

@media (min-width: 1600px) {
    footer .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1900px) {
    footer .container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width:1024px) {

    footer .row {
        --bs-gutter-y: .6rem;
    }

    footer .offices .footer-desc {
        margin-bottom: 1rem;
    }

    footer .brand-logo {
        height: 60px;
    }

}


@media (min-width:768px) and (max-width:1200px) {

    footer .row>div:last-child {
        margin-left: auto;
        margin-top: -2rem;
    }

    footer .offices:last-child {
        margin-left: auto;
    }

}

@media (min-width:992px) and (max-width:1100px) {

    footer .row {
        flex-wrap: nowrap;
    }

    footer .row>div.col-md-6:first-child {
        flex: 0 0 22% !important;
        max-width: 22% !important;
    }

    footer .row>div.col-md-6:not(:first-child) {
        flex: 0 0 19.5% !important;
        max-width: 19.5% !important;
    }

    footer .row>div:last-child {
        margin-top: 0.6rem !important;
    }

}

@media (max-width:768px) {

    footer {
        padding: 2rem 0 2.5rem;
    }

    footer .row {
        --bs-gutter-y: .8rem;
    }

    footer .row>div:nth-child(5) {
        margin-top: -1.8rem;
    }

    footer .row {
        --bs-gutter-y: .8rem;
    }

    footer .footer-col-title {
        margin-bottom: .5rem;
    }

    footer .footer-desc {
        margin-bottom: .6rem;
    }

    footer .footer-links li {
        margin-bottom: .3rem;
    }

    footer .offices .footer-desc {
        margin-bottom: .3rem;
    }

    footer .brand-logo {
        height: 75px;
    }

    footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem;
    }

    footer .container {
        padding-left: 1.5rem;
        padding-right: 1rem;
    }

}

@media (max-width:480px) {
    footer .brand-logo {
        height: 66px;
    }
}


/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--c-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-muted);
}

/* ── LOADER GLOBAL ────────────────────────────────────── */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(11, 15, 26, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    transition: opacity .5s ease, visibility .5s ease;
}

#global-loader img {
    width: clamp(90px, 10vw, 180px);
}

#global-loader img {
    width: clamp(90px, 10vw, 180px);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}


/* ── SCROLL TOGGLE BUTTON ─────────────────────────── */
#scrollToggleBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    color: var(--c-white);

    background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);

    transition: all var(--trans);
}

#scrollToggleBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

#scrollToggleBtn {
    background: linear-gradient(135deg,
            var(--c-blue-primary),
            var(--c-blue-bright),
            var(--c-red-primary),
            var(--c-red-low));
    background-size: 300% 300%;
    background-position: left;

    transition: background-position 0.5s ease, transform var(--trans);
}

#scrollToggleBtn.up {
    background-position: right;
}

#scrollToggleBtn span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 100%;
    height: 100%;
    transform: none;
    font-size: inherit;
}

@media (min-width: 1400px) {
    #scrollToggleBtn {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        bottom: 2.5rem;
        right: 2.5rem;
    }
}

@media (min-width: 1800px) {
    #scrollToggleBtn {
        width: 75px;
        height: 75px;
        font-size: 2rem;
        bottom: 3rem;
        right: 3rem;
    }
}

@media (min-width: 2200px) {
    #scrollToggleBtn {
        width: 85px;
        height: 85px;
        font-size: 2.3rem;
        bottom: 3.5rem;
        right: 3.5rem;
    }
}

@media (min-width: 2600px) {
    #scrollToggleBtn {
        width: 95px;
        height: 95px;
        font-size: 2.6rem;
        bottom: 4rem;
        right: 4rem;
    }
}