/* ======================================== */
/* 1. VARIABLES Y MODO DÃA/NOCHE (THEMING) */
/* ======================================== */
:root {
    --bg-color-light: #f0f2f5;
    --text-color-light: #000;
    /* texto oscuro para el modo claro */
    --card-bg-light: rgba(255, 255, 255, 0.4);
    /* mÃ¡s transparente */
    --border-color-light: rgba(0, 0, 0, 0.1);
    /* borde sutil oscuro */
    --shadow-color-light: rgba(0, 0, 0, 0.15);
    /* sombra mÃ¡s pronunciada */
    --navbar-bg-light: rgba(0, 0, 0, 0.3);
    /* siempre oscuro y semitransparente */
    --navbar-text-light: #fff;
    /* texto blanco para el navbar oscuro */
    --btn-primary-bg-light: #000;
    /* botÃ³n oscuro en modo claro */
    --btn-primary-text-light: #fff;
    /* texto blanco para el botÃ³n oscuro */
    --footer-bg-light: #000;
    --footer-text-light: #fff;
    --overlay-color-light: rgba(0, 0, 0, 0.3);
    /* mÃ¡s oscuro para resaltar video */
    --mobile-menu-bg-light: #fff;
    /* fondo sÃ³lido para el menÃº mÃ³vil */
    --loader-color-light: #000;
    /* color de la figura del loader en modo claro */
    --loader-shadow-color-light: #00000050;
    /* color de la sombra del loader en modo claro */
    --grid-color-light: rgba(0, 0, 0, 0.05);
    --current-grid-color: var(--grid-color-light);


    /* modo noche - por defecto se aplica si no se detecta preferencia del sistema */
    --bg-color-dark: #1a1a1a;
    /* casi negro */
    --text-color-dark: #fff;
    /* texto blanco */
    --card-bg-dark: rgba(26, 26, 26, 0.7);
    /* mÃ¡s transparente */
    --border-color-dark: rgba(255, 255, 255, 0.2);
    /* mÃ¡s visible */
    --shadow-color-dark: rgba(0, 0, 0, 0.5);
    /* sombra mÃ¡s pronunciada */
    --navbar-bg-dark: rgba(0, 0, 0, 0.3);
    /* siempre oscuro y semitransparente */
    --navbar-text-dark: #fff;
    /* texto blanco para el navbar oscuro */
    --btn-primary-bg-dark: #fff;
    /* color mÃ¡s neutro */
    --btn-primary-text-dark: #000;
    /* texto oscuro para el botÃ³n claro */
    --footer-bg-dark: #000;
    /* negro total */
    --footer-text-dark: #bbb;
    --overlay-color-dark: rgba(0, 0, 0, 0.3);
    /* mÃ¡s oscuro para resaltar video */
    --mobile-menu-bg-dark: #1a1a1a;
    /* fondo sÃ³lido para el menÃº mÃ³vil */
    --loader-color-dark: #fff;
    /* color de la figura del loader en modo oscuro */
    --loader-shadow-color-dark: #ffffff50;
    /* color de la sombra del loader en modo oscuro */

    /* Variables específicas del Hero */
    --hero-bg-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --hero-bg-dark: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    --hero-text-light: #333;
    --hero-text-dark: #fff;
    --hero-arrow-light: #333;
    --hero-arrow-dark: #fff;


    /* variables activas, cambiarÃ¡n con el modo */
    --current-bg-color: var(--bg-color-light);
    --current-text-color: var(--text-color-light);
    --current-card-bg: var(--card-bg-light);
    --current-border-color: var(--border-color-light);
    --current-shadow-color: var(--shadow-color-light);
    --current-navbar-bg: var(--navbar-bg-light);
    --current-navbar-text: var(--navbar-text-light);
    --current-btn-primary-bg: var(--btn-primary-bg-light);
    --current-btn-primary-text: var(--btn-primary-text-light);
    --current-footer-bg: var(--footer-bg-light);
    --current-footer-text: var(--footer-text-light);
    --current-overlay-color: var(--overlay-color-light);
    --current-mobile-menu-bg: var(--mobile-menu-bg-light);
    --current-loader-color: var(--loader-color-light);
    --current-loader-shadow-color: var(--loader-shadow-color-light);

    --current-hero-bg: var(--hero-bg-light);
    --current-hero-text: var(--hero-text-light);
    --current-hero-arrow: var(--hero-arrow-light);

    /* Variables de la scrollbar */
    --scrollbar-track: transparent;
    --scrollbar-thumb: #0084FF;
    --scrollbar-thumb-hover: #0066cc;
}

/* Estilos recomendados para el scroll suave de lenis */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* modo noche por defecto o activado por JS */
body.dark-mode {
    --current-bg-color: var(--bg-color-dark);
    --current-text-color: var(--text-color-dark);
    --current-card-bg: var(--card-bg-dark);
    --current-border-color: var(--border-color-dark);
    --current-shadow-color: var(--shadow-color-dark);
    --current-navbar-bg: var(--navbar-bg-dark);
    --current-navbar-text: var(--navbar-text-dark);
    --current-btn-primary-bg: var(--btn-primary-bg-dark);
    --current-btn-primary-text: var(--btn-primary-text-dark);
    --current-footer-bg: var(--footer-bg-dark);
    --current-footer-text: var(--footer-text-dark);
    --current-overlay-color: var(--overlay-color-dark);
    --current-mobile-menu-bg: var(--mobile-menu-bg-dark);
    --current-loader-color: var(--loader-color-dark);
    --current-loader-shadow-color: var(--loader-shadow-color-dark);
    --grid-color-dark: rgba(255, 255, 255, 0.05);
    --current-grid-color: var(--current-grid-color-dark);

    /* Update hero active vars for dark mode */
    --current-hero-bg: var(--hero-bg-dark);
    --current-hero-text: var(--hero-text-dark);
    --current-hero-arrow: var(--hero-arrow-dark);

    /* Scrollbar en modo oscuro */
    --scrollbar-track: transparent;
}

/* ======================================== */
/* 2. ESTILOS GENERALES Y RESET */
/* ======================================== */
html {
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Personalización de la scrollbar para navegadores webkit (chrome, safari, edge) */
::-webkit-scrollbar {
    width: 16px; /* Aumentado para mayor facilidad de agarre */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 20px;
    /* Usamos un borde transparente más inteligente para separar la barra del borde sin perder área de clic */
    border: 4px solid transparent; 
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--current-bg-color);
    color: var(--current-text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--current-text-color);
    margin-bottom: 1rem;
}

a {
    color: var(--current-btn-primary-bg);
    /* color base del botÃ³n */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--current-btn-primary-text);
    /* color de texto del botÃ³n en hover */
}

.section-padding {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--current-text-color);
    width: 100%;
    /* para centrar el after */
    text-align: center;
    /* centrar el tÃ­tulo */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 120px;
    /* lÃ­nea mÃ¡s larga */
    height: 4px;
    background-color: var(--current-btn-primary-bg);
    border-radius: 2px;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* ======================================== */
/* 3. LOADER DE PÃGINA */
/* ======================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--current-bg-color);
    z-index: 2147483647 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

/* Forzar que nada (chatbots, modales) esté arriba del loader */
body.loader-active {
    overflow: hidden !important;
    height: 100vh;
}

body.loader-active > *:not(.page-loader):not(script) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Animación flip-to-square */
.flip-to-square {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 60px;
    width: 60px;
    gap: 4px;
    margin-bottom: 25px;
}

.flip-to-square div {
    animation: flip-to-square 1.5s calc(var(--delay) * 1s) infinite backwards;
    background-color: var(--current-loader-color);
    border-radius: 2px;
}

.flip-to-square div:nth-child(1) { --delay: 0.1; }
.flip-to-square div:nth-child(2) { --delay: 0.2; }
.flip-to-square div:nth-child(3) { --delay: 0.3; }
.flip-to-square div:nth-child(4) { --delay: 0.4; }
.flip-to-square div:nth-child(5) { --delay: 0.5; }
.flip-to-square div:nth-child(6) { --delay: 0.6; }
.flip-to-square div:nth-child(7) { --delay: 0.7; }
.flip-to-square div:nth-child(8) { --delay: 0.8; }
.flip-to-square div:nth-child(9) { --delay: 0.9; }

@keyframes flip-to-square {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    50%, 75% {
        transform: rotateX(0);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotateX(0);
    }
}

.loader-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--current-loader-color);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.loader-status {
    font-size: 1rem;
    font-weight: 300;
    color: var(--current-text-color);
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ======================================== */
/* 4. CURSOR PERSONALIZADO (SOLO DESKTOP) */
/* ======================================== */
.cursor-follower {
    display: none;
}

/* Efecto de estela/sombra para el cursor */
.cursor-follower::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--current-btn-primary-bg);
    opacity: 0.3;
    animation: cursorPulse 2s infinite ease-out;
}

@keyframes cursorPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

body:hover .cursor-follower {
    opacity: 1;
}

.cursor-follower.hovering {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--current-btn-primary-bg);
    mix-blend-mode: normal;
    box-shadow: 0 0 40px rgba(0, 132, 255, 0.4);
}


/* Partículas de estela del cursor */
.cursor-trail {
    display: none;
}


/* ======================================== */
/* 5. NAVBAR (BARRA DE NAVEGACIÃ“N) */
/* ======================================== */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: transparent;
    /* el color de fondo lo darÃ¡ container-nav */
    z-index: 1000;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar-custom .container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    max-width: 1200px;
    margin: 15px auto;
    /* margen para efecto flotante */
    background: rgba(0, 0, 0, 0.3);
    /* color de fondo fijo */
    backdrop-filter: blur(12px);
    /* mÃ¡s blur */
    -webkit-backdrop-filter: blur(12px);
    /* mÃ¡s blur */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* borde blanco semitransparente */
    border-radius: 50px;
    /* bordes redondeados */
    box-shadow: 0 4px 10px var(--current-shadow-color);
    transition: all 0.3s ease;
    /* transiciÃ³n para todos los cambios */
    margin: 15px auto;
}

.navbar-custom .navbar-actions {
    display: flex;
    /* siempre visible */
    align-items: center;
    gap: 15px;
    /* espacio entre el botÃ³n de tema y el menÃº toggle */
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--current-navbar-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.brand-logo:hover {
    color: var(--current-btn-primary-bg);
    /* color principal al pasar el ratÃ³n */
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
    position: relative; /* Base para el dropdown */
}

.nav-links a {
    color: var(--current-navbar-text);
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--current-btn-primary-bg);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--current-btn-primary-bg);
}

/* Estilos Dropdown Premium */
.nav-item-dropdown {
    position: relative;
    padding-bottom: 10px; /* Margen para hover */
    margin-bottom: -10px;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 0;
    min-width: 260px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}


.nav-item-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Rotar chevron cuando el dropdown está abierto */
.nav-item-dropdown:hover .dropdown-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}


.dropdown-menu-custom li {
    margin: 0 !important;
    padding: 0;
}

.dropdown-menu-custom li a {
    display: block;
    padding: 12px 25px;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu-custom li a:hover {
    background: rgba(0, 132, 255, 0.1);
    color: #0084FF !important;
    padding-left: 30px;
}

.dropdown-menu-custom li a::after {
    display: none !important; /* Quitar lÃ­nea inferior en dropdown */
}

/* Ajustes para mÃ³vil - Ocultar dropdown en responsive convencional */
@media (max-width: 991px) {
    .dropdown-menu-custom {
        display: none; /* En mÃ³vil usamos el menÃº lateral plano */
    }
}

.btn-navbar-contact {
    padding: 8px 20px !important;
    /* !important para sobreescribir el padding de .nav-links a */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-navbar-contact:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    /* asegurar que el texto se mantenga blanco */
}

/* asegurar que el efecto ::after no aparezca en el botÃ³n */
.btn-navbar-contact::after {
    display: none !important;
}

/* Switch de Tema - Professional Icon Redesign */
.ui-switch {
    --switch-width: 66px;
    --switch-height: 34px;
    --circle-size: 27px;
    --transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    position: relative;
    display: inline-block;
    width: var(--switch-width);
    height: var(--switch-height);
}

.ui-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    border-radius: 40px;
}

.slider .circle {
    position: absolute;
    height: var(--circle-size);
    width: var(--circle-size);
    left: 4px;
    bottom: 2.5px;
    background: #ffffff;
    transition: var(--transition);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Day Mode: High Definition Sun Icon */
.slider .circle::after {
    content: '\f185'; /* Font Awesome Sun */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 15px;
    color: #ff9d00;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(255, 157, 0, 0.3));
}

/* Checked = Night Mode */
.ui-switch input:checked ~ .slider {
    background-color: #0b0e14;
    border-color: rgba(0, 132, 255, 0.3);
}

.ui-switch input:checked ~ .slider .circle {
    transform: translateX(31px);
    background: #20242d;
    box-shadow: 0 0 15px rgba(0, 132, 255, 0.2);
}

/* Moon Icon in Night Mode */
.ui-switch input:checked ~ .slider .circle::after {
    content: '\f186'; /* Font Awesome Moon */
    color: #f1f1f1;
    font-size: 14px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
    transform: rotate(-15deg);
}

.ui-switch:hover .slider {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
}




/* MenÃº Hamburguesa (MÃ³vil) */
.menu-toggle {
    display: none;
    /* ocultar por defecto en desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: transparent;
    border: none;
    width: 40px;
    /* aumentar el tamaÃ±o para que no se corte */
    height: 30px;
    /* ajustar altura */
    justify-content: space-around;
    align-items: center;
}

.menu-toggle .bar {
    width: 100%;
    /* ocupa todo el ancho del toggle */
    height: 3px;
    background-color: var(--current-navbar-text);
    margin: 0;
    /* resetear margin */
    transition: all 0.3s ease-in-out;
}

/* Responsividad del Navbar */
@media (max-width: 992px) {
    .navbar-custom .container-nav {
        justify-content: space-between;
        border-radius: 0;
        /* eliminar borde redondeado en mÃ³vil */
        margin: 0;
        /* Elimina el margen lateral del efecto flotante */
        max-width: 100%;
        /* Asegura que el ancho no estÃ© limitado */
        width: 100%;
        /* Fuerza el ancho al 100% */
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        /* restaurar border-bottom blanco */
        border-top: none;
        /* asegurar que no haya border top */
        border-left: none;
        /* asegurar que no haya border left */
        border-right: none;
        /* asegurar que no haya border right */
    }

    .btn-navbar-contact {
        display: inline-block;
        /* quitar el display: block; de .nav-links a */
        width: auto;
        /* ancho automÃ¡tico */
        padding: 10px 30px !important;
        /* padding normal de botÃ³n */
    }

    .menu-toggle {
        display: flex;
        /* mostrar el menÃº toggle en mÃ³vil */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        /* centrar verticalmente */
        width: 100%;
        position: fixed;
        top: 65px;
        left: 0;
        height: calc(100vh - 65px);
        background: var(--current-mobile-menu-bg);
        padding: 0;
        /* quitar padding vertical */
        border-top: 1px solid var(--current-border-color);
        box-shadow: 0 4px 10px var(--current-shadow-color);
        animation: slideDown 0.3s ease-out forwards;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        color: var(--current-text-color);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links a.active {
    color: var(--current-navbar-text);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

/* Fix para visibilidad del link activo en menú móvil (ambos modos) */
@media (max-width: 992px) {
    .nav-links a.active {
        color: #0084FF !important;
        /* Azul de marca */
    }

    .nav-links a.active::after {
        background-color: #0084FF;
    }
}

/* ======================================== */
/* 6. HERO SECTION (SECCIÃ“N PRINCIPAL) */
/* ======================================== */
.hero-section {
    contain: content;
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--current-hero-bg);
    /* Fondo dinámico */
    transition: background 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: background 0.3s ease;
}

.hero-content {
    will-change: transform;
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--current-hero-text);
    /* Texto dinámico */
    min-height: 8.5rem;
    transition: color 0.3s ease;
}

.typed-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0084FF;
    /* Color de marca */
}

.typed-cursor {
    color: #0084FF;
    font-size: 3rem;
    font-weight: 300;
}

/* Flechas de Scroll Down */
.scroll-down-link {
    position: absolute;
    bottom: 90px;
    /* <-- mÃ¡s arriba (antes 60px) */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: block;
    width: 40px;
}

.scroll-down-arrows span {
    display: block;
    width: 35px;
    height: 35px;
    border-bottom: 5px solid var(--current-hero-arrow);
    /* Flechas dinámicas */
    border-right: 5px solid var(--current-hero-arrow);
    border-radius: 4px;
    transform: rotate(45deg);
    margin: 3px auto;
    opacity: 0;
    animation: scroll-animation 2s infinite;
    transition: border-color 0.3s ease;
}

.scroll-down-arrows span:nth-child(1) {
    animation-delay: 0.1s;
}

.scroll-down-arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down-arrows span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes scroll-animation {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-25px, -25px);
        /* <-- ajustado al nuevo tamaÃ±o */
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(25px, 25px);
        /* <-- ajustado al nuevo tamaÃ±o */
    }
}

/* ======================================== */
/* 7. COMPONENTES REUTILIZABLES (BOTONES, TARJETAS) */
/* ======================================== */

/* BotÃ³n Primario (Efecto Slide) */
.btn-primary-custom {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    /* fondo cristalino */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--current-hero-text);
    /* Texto dinámico */
    border: 1px solid var(--current-border-color);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    /* para el pseudo-elemento */
    overflow: hidden;
    /* para el pseudo-elemento */
    z-index: 1;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    /* inicia afuera a la izquierda */
    width: 100%;
    height: 100%;
    background: #fff;
    /* fondo blanco que se desliza */
    z-index: -1;
    transition: left 0.4s ease;
}

.btn-primary-custom span {
    position: relative;
    z-index: 2;
    /* asegura que el texto estÃ© sobre el ::before */
}

.btn-primary-custom:hover {
    color: #000;
    /* texto cambia a negro */
    border-color: #fff;
    /* borde cambia a blanco sÃ³lido */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--current-shadow-color);
}

.btn-primary-custom:hover::before {
    left: 0;
    /* fondo se desliza al centro */
}

/* BotÃ³n Primario en Modo Noche */
body.dark-mode .btn-primary-custom {
    background: rgba(255, 255, 255, 0.15);
    /* Fondo mÃ¡s oscuro y sutil en modo noche */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Borde mÃ¡s visible en oscuro */
    color: #fff;
    /* Texto blanco por defecto (Visitar sitio) */
}

body.dark-mode .btn-primary-custom:hover {
    color: #000 !important;
    /* El texto se vuelve NEGRO */
    border-color: #fff;
    /* El borde se mantiene blanco sÃ³lido */
}

/* Tarjetas Glassmorphism */
.glassmorphism-card {
    background: var(--current-card-bg);
    backdrop-filter: blur(15px);
    /* mÃ¡s blur */
    -webkit-backdrop-filter: blur(15px);
    /* mÃ¡s blur */
    border: 1px solid var(--current-border-color);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 var(--current-shadow-color);
    padding: 30px;
    margin-bottom: 30px;
    /* para separar las tarjetas */
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, transform 0.3s ease;
    /* aÃ±adir transform a la transiciÃ³n */
}

.glassmorphism-card:hover {
    transform: translateY(-5px);
    /* efecto hover para tarjetas */
}

/* ======================================== */
/* 8. SECCIONES DE CONTENIDO */
/* ======================================== */

/* Fondo de Rejilla para Secciones */
#services,
#why-blaj,
.quote-banner,
#portfolio,
#testimonials,
#contact {
    background-image:
        linear-gradient(var(--current-grid-color) 1px, transparent 1px),
        linear-gradient(to right, var(--current-grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* -- Sección: Servicios (Services) -- */
.servicesSwiper {
    padding: 20px 10px 60px 10px;
}

.servicesSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.servicesSwiper .service-card {
    background: transparent;
    border: 1px solid var(--current-border-color);
    border-radius: 12px;
    padding: 35px 30px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: none;
}

.servicesSwiper .service-card:hover {
    transform: translateY(-5px);
    border-color: #0084FF;
    background: var(--current-card-bg);
}

.icon-service {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0084FF;
    display: inline-block;
    transition: all 0.3s ease;
    width: auto;
    text-align: left;
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
}

.servicesSwiper .service-card:hover .icon-service {
    transform: none;
}

.servicesSwiper .service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--current-text-color);
    letter-spacing: -0.02em;
}

.highlight-text {
    color: inherit;
    /* remove highlight color for minimalist look or keep it subtle */
    font-weight: 700;
}

/* Optional: keep highlight on hover or specific word if needed, but for minimalist let's keep it simple or jus blue */
.highlight-text {
    color: #0084FF;
}

.servicesSwiper .service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--current-text-color);
    opacity: 0.75;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Enlace minimalista 'Saber más' */
.servicesSwiper .view-project-link {
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    justify-content: flex-start;
    height: auto;
}

.servicesSwiper .view-project-link:hover {
    background: none;
    animation: none;
    transform: translateX(5px);
}

.servicesSwiper .view-project-link span {
    color: var(--current-text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    /* remove uppercase */
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.servicesSwiper .view-project-link:hover span {
    color: #0084FF;
    opacity: 1;
}

.servicesSwiper .view-project-link span::after {
    content: '→';
    font-family: sans-serif;
    /* ensure consistency */
    transition: margin-left 0.3s ease;
}

.servicesSwiper .view-project-link:hover span::after {
    margin-left: 5px;
}

/* Desactivar efectos del botón global */
.servicesSwiper .btn-shine::after {
    display: none;
}

.servicesSwiper .view-project-link span::after {
    content: '→';
    transition: margin-left 0.3s ease;
}

.servicesSwiper .view-project-link:hover span::after {
    margin-left: 10px;
}

/* Desactivar efectos del botón global que no queremos aquí */
.servicesSwiper .btn-shine::after {
    display: none;
}

/* -- SecciÃ³n: Por quÃ© BLAJ (Why Blaj) -- */
.why-blaj-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-blaj-item {
    display: flex;
    align-items: flex-start;
    /* alinea el icono arriba */
    padding: 20px;
    margin-bottom: 20px;
}

.why-blaj-item:last-child {
    margin-bottom: 0;
}

.icon-feature {
    font-size: 2.5rem;
    /* tamaÃ±o del icono */
    color: #0084FF;
    /* tu color de 'highlight-text' */
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.why-blaj-content h3 {
    font-size: 1.4rem;
    margin-top: 0;
    /* para alinear con el icono */
    margin-bottom: 8px;
    color: var(--current-text-color);
}

.why-blaj-content p {
    margin-bottom: 0;
    color: var(--current-text-color);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Cubo 3D */
.cube-container {
    width: 300px;
    /* tamaÃ±o del cubo */
    height: 300px;
    perspective: 1000px;
    /* perspectiva 3d */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* esencial para el 3d */
    animation: rotateCube 15s infinite linear;
    /* animaciÃ³n de rotaciÃ³n */
}

.cube-container:hover .cube {
    animation-play-state: paused;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--current-card-bg);
    /* adaptado a blaj */
    border: 1px solid var(--current-border-color);
    /* adaptado a blaj */
    box-shadow: 0 0 15px var(--current-shadow-color);
    /* adaptado a blaj */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    /* estilo de blaj */
}

.cube-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.cube-face.front {
    transform: rotateY(0deg) translateZ(150px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

@keyframes rotateCube {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* -- SecciÃ³n: Frase (Quote Banner) -- */
.quote-banner {
    padding: 80px 0;
    background-color: #0d0d0d;
    border-top: 1px solid var(--current-border-color);
    border-bottom: 1px solid var(--current-border-color);
}

.quote-banner blockquote {
    border: none;
    padding: 0;
    margin: 0;
}

.quote-banner .quote-text {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    /* texto siempre blanco para esta secciÃ³n */
    line-height: 1.4;
    margin-bottom: 20px;
}

.quote-banner .quote-author {
    font-size: 1.2rem;
    font-style: italic;
    color: #ccc;
    /* color mÃ¡s sutil para el autor */
}

/* -- SecciÃ³n: Portafolio (Portfolio) -- */
.portfolio-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.3s ease;
    margin-bottom: 1.2em;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
    color: var(--current-text-color);
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--current-text-color);
    margin-bottom: 1em;
}

.project-info p {
    font-size: 1rem;
    color: var(--current-text-color);
    margin-bottom: 2em;
}

.view-project-link {
    position: relative;
    margin: 0;
    padding: 12px 28px;
    outline: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    background-color: #fff;
    border: 1px solid rgba(22, 76, 167, 0.6);
    border-radius: 10px;
    color: #1d89ff;
    font-weight: 400;
    font-family: inherit;
    z-index: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
    width: 50%;
    margin: 0 auto;
    /* centrar el botÃ³n */
}

.view-project-link span {
    color: #164ca7;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.7px;
}

.view-project-link:hover {
    animation: rotate624 0.7s ease-in-out both;
}

.view-project-link:hover span {
    animation: storm1261 0.7s ease-in-out both;
    animation-delay: 0.06s;
}

@keyframes rotate624 {
    0% {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }

    25% {
        transform: rotate(3deg) translate3d(0, 0, 0);
    }

    50% {
        transform: rotate(-3deg) translate3d(0, 0, 0);
    }

    75% {
        transform: rotate(1deg) translate3d(0, 0, 0);
    }

    100% {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }
}

@keyframes storm1261 {
    0% {
        transform: translate3d(0, 0, 0) translateZ(0);
    }

    25% {
        transform: translate3d(4px, 0, 0) translateZ(0);
    }

    50% {
        transform: translate3d(-3px, 0, 0) translateZ(0);
    }

    75% {
        transform: translate3d(2px, 0, 0) translateZ(0);
    }

    100% {
        transform: translate3d(0, 0, 0) translateZ(0);
    }
}

.btn-shine {
    border: 1px solid;
    overflow: hidden;
    position: relative;
}

.btn-shine span {
    z-index: 20;
}

.btn-shine:after {
    background: #38ef7d;
    content: "";
    height: 155px;
    left: -75px;
    opacity: 0.4;
    position: absolute;
    top: -50px;
    transform: rotate(35deg);
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
    width: 50px;
    z-index: -10;
}

.btn-shine:hover:after {
    left: 120%;
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* -- SecciÃ³n: Testimonios (Testimonials) -- */
.testimonial-card {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid var(--current-btn-primary-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--current-text-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--current-btn-primary-bg);
    font-size: 1.1rem;
}

/* -- SecciÃ³n: Contacto (Contact Form) -- */
.contact-form .form-control {
    background: var(--current-card-bg);
    backdrop-filter: blur(10px);
    /* mÃ¡s blur */
    -webkit-backdrop-filter: blur(10px);
    /* mÃ¡s blur */
    border: 1px solid var(--current-border-color);
    color: var(--current-text-color);
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease, backdrop-filter 0.3s ease, transform 0.3s ease;
}

.contact-form .form-control:hover {
    transform: translateY(-3px);
    /* efecto hover ligero */
}

.contact-form .form-control::placeholder {
    color: var(--current-text-color);
    opacity: 0.7;
}

.contact-form .form-control:focus {
    background: var(--current-card-bg);
    border-color: var(--current-btn-primary-bg);
    box-shadow: 0 0 0 0.25rem rgba(142, 45, 226, 0.25);
    /* sombra de foco con color primario */
    color: var(--current-text-color);
    outline: none;
}

.contact-form label {
    color: var(--current-text-color);
    margin-bottom: 8px;
    display: block;
}

/* Especificidad para el botÃ³n de formulario en modo dÃ­a */
body:not(.dark-mode) .contact-form .btn-primary-custom {
    color: #000;
}

.error-message {
    color: #ff5252;
    /* rojo vibrante para errores */
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    /* asegura que cada mensaje de error estÃ© en su propia lÃ­nea */
    height: 1.2em;
    /* espacio reservado para evitar saltos de diseÃ±o */
}

.form-control.is-invalid {
    border-color: #ff5252;
    /* borde rojo para campos invÃ¡lidos */
    box-shadow: 0 0 0 0.25rem rgba(255, 82, 82, 0.25);
}

/* -- Estilos para la nueva MetodologÃ­a (Process Flow) -- */
.process-flow-container {
    position: relative;
    padding-left: 25px;
    /* espacio para los nÃºmeros */
}

.process-step {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    /* espacio entre pasos */
    align-items: flex-start;
}

.step-number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: -25px;
    /* alinear a la izquierda del padding */
    top: 0;
    z-index: 2;
    height: 100%;
    /* para que la lÃ­nea se estire */
}

.step-number {
    width: 50px;
    height: 50px;
    background: #0084FF;
    /* color azul de BLAJ */
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--current-bg-color);
    /* crea separaciÃ³n del fondo */
    box-shadow: 0 4px 10px var(--current-shadow-color);
    flex-shrink: 0;
    /* para que no se encoja */
}

.step-line {
    width: 3px;
    background: var(--current-border-color);
    flex-grow: 1;
    /* para que llene el espacio */
}

/* el contenido del paso ahora es la tarjeta */
.step-content.glassmorphism-card {
    padding: 20px;
    margin-left: 45px;
    /* espacio desde el nÃºmero */
    width: 100%;
    margin-bottom: 0;
    /* glassmorphism-card tiene margin-bottom, lo reseteamos */
}

.step-content h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 8px;
}

.step-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Media query para ajustar el padding en mÃ³vil */
@media (max-width: 991px) {
    .process-flow-container {
        padding-left: 20px;
        /* menos padding */
    }

    .step-number-container {
        left: -20px;
        /* ajustar posiciÃ³n */
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .step-content.glassmorphism-card {
        margin-left: 35px;
        /* menos margen */
    }
}

/* estilos para el checkbox de privacidad del formulario */
.contact-form .form-check-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    flex-wrap: wrap;
}

.contact-form .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin: 0;
    flex-shrink: 0;
    background-color: var(--current-card-bg);
    border: 1px solid var(--current-border-color);
    transition: all 0.3s ease;
}

.contact-form .form-check-input:checked {
    background-color: #0084FF;
    /* color de tu marca */
    border-color: #0084FF;
}

.contact-form .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 132, 255, 0.25);
    /* sombra de foco */
    outline: none;
}

.contact-form .form-check-label {
    color: var(--current-text-color);
    opacity: 0.9;
    margin: 0;
    font-size: 0.9rem;
}

/* este enlace abre el modal */
.contact-form .form-check-label a {
    color: #0084FF;
    text-decoration: underline;
    cursor: pointer;
}

.contact-form .form-check-label a:hover {
    color: var(--current-text-color);
}

.contact-form .form-check-input.is-invalid {
    border-color: #ff5252;
}

.contact-form .form-check-container .error-message {
    width: 100%;
    padding-left: 2.2em;
    /* (ancho del checkbox + gap) */
}

/* ======================================== */
/* 9. SWIPER (ESTILOS GENERALES DEL CARRUSEL) */
/* ======================================== */
.swiper {
    width: 100%;
    height: auto;
    padding-bottom: 50px;
    /* espacio para la paginaciÃ³n */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--current-card-bg);
    /* fondo de glassmorphism para los slides */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--current-border-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px 0 var(--current-shadow-color);
    overflow: hidden;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
    /* espacio para la info */
    transition: transform 0.3s ease;
    /* para el efecto hover */
}

.swiper-slide:hover {
    transform: translateY(-5px);
    /* efecto hover para slides */
}

.swiper-container-wrapper {
    position: relative;
    padding: 0 15px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background-color: #00000050;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem !important;
}

.swiper-pagination-bullet {
    background-color: var(--current-text-color) !important;
    opacity: 0.6 !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--current-btn-primary-bg) !important;
    opacity: 1 !important;
}

/* Flechas de Testimonios (estilos base para todas las pantallas) */
.testimonials-swiper-next,
.testimonials-swiper-prev {
    color: #fff !important;
    background-color: #00000050;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.testimonials-swiper-next:after,
.testimonials-swiper-prev:after {
    font-size: 1.2rem !important;
}

.testimonials-swiper-next {
    right: 15px;
    /* ajustado para estar dentro del wrapper */
}

.testimonials-swiper-prev {
    left: 15px;
    /* ajustado para estar dentro del wrapper */
}

/* Flechas de Swiper en Desktop */
@media (min-width: 992px) {
    .swiper-container-wrapper {
        padding: 0 45px;
        /* espacio lateral para las flechas */
    }

    .services-swiper-next,
    .services-swiper-prev,
    .portfolio-swiper-next,
    .portfolio-swiper-prev,
    .testimonials-swiper-next,
    .testimonials-swiper-prev {
        width: 55px;
        height: 55px;
        padding: 0;
        border-radius: 50%;
    }

    .services-swiper-next:after,
    .services-swiper-prev:after,
    .portfolio-swiper-next:after,
    .portfolio-swiper-prev:after,
    .testimonials-swiper-next:after,
    .testimonials-swiper-prev:after {
        font-size: 1.6rem !important;
    }

    .services-swiper-next,
    .portfolio-swiper-next,
    .testimonials-swiper-next {
        right: -15px;
    }

    .services-swiper-prev,
    .portfolio-swiper-prev,
    .testimonials-swiper-prev {
        left: -15px;
    }
}

/* ======================================== */
/* 10. MODALES (VENTANAS EMERGENTES) */
/* ======================================== */
/* ======================================== */
/* 10. MODALES (VENTANAS EMERGENTES) */
/* ======================================== */
.modal-content.glassmorphism-card {
    background: var(--current-mobile-menu-bg);
    border: 1px solid var(--current-border-color);
    box-shadow: 0 10px 40px var(--current-shadow-color);
    border-radius: 24px;
    overflow: hidden;
    padding: 0;
}

/* Innovación: Layout Dividido (Split Screen) */
.modal-split-layout {
    display: flex;
    min-height: 500px;
    width: 100%;
}

/* Panel de Acento (Izquierda) */
.modal-accent-panel {
    flex: 0 0 40%;
    background: linear-gradient(180deg, #0084FF 0%, #003a70 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #fff;
    overflow: hidden;
}

/* Olas más marcadas y estéticas */
.waves-container {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: bottom;
    transform: translate3d(0, 0, 0);
}

.wave-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.3;
    height: 60%;
    animation: wave-flow 10s linear infinite;
}

.wave-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.2' d='M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,181.3C672,192,768,160,864,128C960,96,1056,64,1152,64C1248,64,1344,96,1392,112L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.4;
    height: 45%;
    animation: wave-flow 15s linear infinite reverse;
}

@keyframes wave-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.modal-accent-panel i {
    font-size: 6rem;
    position: relative;
    z-index: 5;
    color: #fff;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-accent-panel:hover i {
    transform: scale(1.1);
}

/* Panel de Contenido (Derecha) */
.modal-content-panel {
    flex: 1;
    padding: 50px;
    background: var(--current-bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title-premium {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--current-text-color);
}

.modal-description-premium {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--current-text-color);
    opacity: 0.85;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.benefit-pill {
    background: rgba(0, 132, 255, 0.05);
    border: 1px solid rgba(0, 132, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.benefit-pill:hover {
    background: rgba(0, 132, 255, 0.1);
    transform: translateY(-3px);
}

.benefit-pill i {
    color: #0084FF;
    font-size: 1.2rem;
}

.benefit-pill span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--current-text-color);
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .modal-split-layout {
        flex-direction: column;
    }
    .modal-accent-panel {
        flex: 0 0 150px;
        padding: 20px;
    }
    .modal-accent-panel i {
        font-size: 3rem;
        margin-bottom: 0;
    }
    .modal-content-panel {
        padding: 30px 20px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .modal-title-premium {
        font-size: 1.8rem;
    }
}

.modal-backdrop.fade.show {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#page-wrapper {
    transition: filter 0.3s ease-in-out;
}

#page-wrapper.blurred {
    filter: blur(10px);
    pointer-events: none;
}

/* ======================================== */
/* 11. FOOTER (PIE DE PÃGINA) */
/* ======================================== */
.footer-custom {
    background-color: var(--current-footer-bg);
    color: var(--current-footer-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-logo {
    width: 60px;
    /* tamaÃ±o del logo en footer */
    height: auto;
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    /* color blanco */
    line-height: 1;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 300px;
    /* para que no se extienda mucho */
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
}

.footer-nav-links li {
    margin-bottom: 10px;
}

.footer-nav-links a {
    color: var(--current-footer-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-nav-links a:hover {
    color: #0084FF;
    /* color 'highlight' de blaj */
    opacity: 1;
}

.social-links-footer a {
    color: #fff;
    font-size: 1.5rem;
    /* tamaÃ±o de iconos font awesome */
    margin-right: 0;
    opacity: 1;
    transition: color 0.3s ease;
}

.social-links-footer a:hover {
    color: #0084FF;
    /* color 'highlight' de blaj */
    opacity: 1;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: var(--current-border-color);
    opacity: 0.5;
    margin: 30px 0 20px 0;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 991px) {
    .footer-custom {
        text-align: center;
        /* centrar todo en mÃ³vil */
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }
}


/* ======================================== */
/* 12. ELEMENTOS FLOTANTES (CTA Y CHATBOX) */
/* ======================================== */

/* AnimaciÃ³n de Pulso (Wave) - MÃ¡s sutil */
@keyframes wave-animation {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* BotÃ³n Flotante (Floating CTA) */
.floating-cta-btn {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    /* Debajo del navbar (1000) y modales */
    background: var(--current-btn-primary-bg);
    color: var(--current-btn-primary-text);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 5px 20px var(--current-shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(100px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.floating-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50px;
    z-index: -1;
    animation: wave-animation 2s infinite;
}

.floating-cta-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.floating-cta-btn:hover {
    color: var(--current-btn-primary-text);
    transform: translateX(-50%) translateY(-3px);
    /* PequeÃ±o salto en hover */
    box-shadow: 0 8px 25px var(--current-shadow-color);
}

/* Chatbox */
.chatbox-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #0084FF;
    /* color azul de BLAJ */
    color: var(--current-btn-primary-text);
    /* texto blanco o negro segÃºn el modo */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1050;
    /* por encima del botÃ³n flotante de cta */
    box-shadow: 0 5px 15px var(--current-shadow-color);
    transition: transform 0.3s ease;
}

.chatbox-icon:hover {
    transform: scale(1.1);
}

.chatbox-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 90%;
    max-width: 370px;
    background: var(--current-mobile-menu-bg);
    /* fondo del menÃº mÃ³vil (oscuro/claro) */
    border: 1px solid var(--current-border-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--current-shadow-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.chatbox-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbox-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    color: var(--current-text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chatbox-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.chatbox-close:hover {
    color: var(--current-text-color);
}

.chatbox-messages {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.4;
}

.chat-message.bot {
    background: var(--current-card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--current-border-color);
    color: var(--current-text-color);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.chat-message.user {
    background-color: #0084FF;
    /* color azul de BLAJ */
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-message ol {
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.chat-message ol li {
    margin-bottom: 5px;
}

.chatbox-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--current-border-color);
}

#chat-input {
    flex-grow: 1;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    /* fondo sutil */
    padding: 0.75rem;
    border-radius: 10px;
    color: var(--current-text-color);
    margin-right: 10px;
    border: 1px solid var(--current-border-color);
}

#chat-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0084FF;
    /* color azul de BLAJ */
}

#send-chat-btn {
    border: none;
    background: #0084FF;
    /* color azul de BLAJ */
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Scrollbar del Chat */
.chatbox-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbox-messages::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.chatbox-messages::-webkit-scrollbar-thumb {
    background-color: #0084FF;
    border-radius: 10px;
    border: 2px solid var(--current-mobile-menu-bg);
}

.chatbox-messages::-webkit-scrollbar-thumb:hover {
    background-color: #0056a8;
}

/* ocultar cta flotante y chatbox cuando un modal estÃ¡ abierto */
body.modal-open .floating-cta-btn,
body.modal-open .chatbox-icon {
    display: none;
}

/* ======================================== */
/* 13. LAZY LOAD (EFECTO DE APARICIÃ“N) */
/* ======================================== */
.lazy-load {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.lazy-load.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================== */
/* 14. RESPONSIVIDAD GENERAL (Ajustes Globales) */
/* ======================================== */
@media (max-width: 1200px) {
    .col-xl-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .floating-cta-btn {
        font-size: 0.8em;
        width: auto;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
        width: 100%;
        /* asegura que la lÃ­nea se centre correctamente */
    }

    .section-title::after {
        width: 100px;
        /* ajusta el tamaÃ±o de la lÃ­nea para pantallas mÃ¡s pequeÃ±as */
    }

    .lead {
        font-size: 1.15rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        min-height: 9rem;
    }

    .typed-text {
        font-size: 3rem;
    }

    .col-lg-4 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-4 {
        /* para pantallas medianas, 2 columnas */
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 768px) {
    .custom-cursor-container {
        display: none !important;
    }

    .section-title {
        font-size: 2rem;
        width: 100%;
        /* asegura que la lÃ­nea se centre correctamente */
    }

    .section-title::after {
        width: 80px;
        /* ajusta el tamaÃ±o de la lÃ­nea para pantallas mÃ¡s pequeÃ±as */
    }

    .lead {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .typed-text {
        font-size: 2.5rem;
        white-space: normal;
        /* permite que el texto se divida en varias lÃ­neas */
    }

    .col-md-4 {
        /* para pantallas pequeÃ±as, 1 columna */
        flex: 0 0 auto;
        width: 100%;
    }

    .cube-container {
        width: 220px;
        height: 220px;
    }

    .cube-face.front {
        transform: rotateY(0deg) translateZ(110px);
    }

    .cube-face.right {
        transform: rotateY(90deg) translateZ(110px);
    }

    .cube-face.back {
        transform: rotateY(180deg) translateZ(110px);
    }

    .cube-face.left {
        transform: rotateY(-90deg) translateZ(110px);
    }

    .quote-banner .quote-text {
        font-size: 1.8rem;
    }

    .quote-banner .quote-author {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-custom .container-nav {
        padding: 10px 15px;
    }

    .brand-logo {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .typed-text {
        font-size: 1.8rem;
    }

    .btn-primary-custom {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .swiper-slide {
        padding: 15px;
    }

    .portfolio-item img {
        height: 200px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Ajustes especÃ­ficos para el CTA en mÃ³vil */
@media (max-width: 576px) {
    .floating-cta-btn {
        left: auto;
        right: 95px;
        /* Al lado del chatbot (25px + 60px + 10px) */
        transform: translateY(100px);
        /* Reset horizontal */
        white-space: nowrap;
        /* Texto en una sola lÃ­nea */
        width: auto;
        font-size: 1rem;
        /* Un poco mÃ¡s grande */
        padding: 14px 25px;
        /* Un poco mÃ¡s grande */
    }

    .floating-cta-btn.visible {
        transform: translateY(0);
        /* Solo mover en Y */
    }

    .floating-cta-btn:hover {
        transform: translateY(-3px);
    }
}

/* -- SecciÃ³n: QuiÃ©nes Somos (Header & Stats) -- */
.who-we-are-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--current-text-color);
    opacity: 0.6;
    margin-bottom: 10px;
    font-weight: 500;
}

.blaj-title-main {
    font-size: 4rem;
    font-weight: 700;
    color: #0084FF;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    /* Light weight looks elegant like the image */
    color: #0084FF;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--current-text-color);
    opacity: 0.7;
    margin-bottom: 0;
}

.stats-card {
    background: var(--current-card-bg);
    border: 1px solid var(--current-border-color);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 10px 30px -10px var(--current-shadow-color);
}

/* ======================================== */
/* 10. PREMIUM VALIDATION MODAL */
/* ======================================== */
.premium-validation-modal .modal-content {
    background: var(--current-card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--current-border-color);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.premium-validation-modal .error-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(255, 193, 7, 0.2);
    animation: pulse-warning 2s infinite;
}

.premium-validation-modal .error-icon-container i {
    font-size: 2.5rem;
    color: #ffc107;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.premium-validation-modal .modal-title-premium {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--current-text-color);
    margin-top: 10px;
}

.errors-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.error-item-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--current-border-color);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.error-item-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: #0084FF;
}

.error-item-premium i {
    color: #0084FF;
    font-size: 1.1rem;
}

.error-item-premium span {
    font-size: 0.95rem;
    color: var(--current-text-color);
    font-weight: 500;
}

.premium-validation-modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.premium-validation-modal .btn-close-white:hover {
    opacity: 1;
}

/* ======================================== */
/* 11. DISEÑO DE MODALES MINIMALIST EXECUTIVE */
/* ======================================== */
.modal-content.glassmorphism-card {
    background: var(--current-card-bg) !important;
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid var(--current-border-color);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    color: var(--current-text-color);
    overflow: hidden;
    padding: 0;
}

.modal-split-layout {
    display: flex;
    min-height: 500px;
}

.modal-accent-panel {
    flex: 0 0 35%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-right: 1px solid var(--current-border-color);
}

.modal-accent-panel i {
    font-size: 5rem;
    color: #0084FF;
    z-index: 5;
    filter: drop-shadow(0 0 15px rgba(0, 132, 255, 0.3));
}

.modal-content-panel {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title-premium {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    color: var(--current-text-color);
}

.modal-description-premium {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.85;
    font-weight: 300;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.benefit-pill {
    padding: 15px 22px;
    background: rgba(128, 128, 128, 0.04);
    border: 1px solid var(--current-border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.benefit-pill:hover {
    background: rgba(0, 132, 255, 0.08);
    border-color: #0084FF;
    transform: translateY(-3px);
}

.benefit-pill i {
    color: #0084FF;
    font-size: 1.25rem;
}

.benefit-pill span {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.modal-cta-premium {
    background: #0084FF;
    color: #fff !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 132, 255, 0.3);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.modal-cta-premium:hover {
    background: #006bce;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 132, 255, 0.4);
}

@media (max-width: 991px) {
    .modal-split-layout { flex-direction: column; }
    .modal-accent-panel { min-height: 200px; border-right: none; border-bottom: 1px solid var(--current-border-color); }
    .modal-content-panel { padding: 40px; }
    .modal-title-premium { font-size: 2rem; }
    .benefits-grid { grid-template-columns: 1fr; }
}

