/* ==========================================================================
   1. PANTALLA DE CARGA / PRELOADER ADAPTADO
   ========================================================================== */
#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0F172A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

#intro-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-svg {
    width: 120px;
    height: 120px;
}

.svg-path-draw {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.svg-core {
    transform-origin: center;
    transform: scale(0);
    animation: corePulse 1.5s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        glowBlink 2s 2s infinite ease-in-out;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes corePulse {
    to {
        transform: scale(1);
    }
}

@keyframes glowBlink {
    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(2, 132, 199, 0.4));
        opacity: 0.9;
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(234, 88, 12, 0.6));
        opacity: 1;
    }
}

/* ==========================================================================
   2. CONFIGURACIÓN GENERAL Y LIENZO DE TRABAJO
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #F8F9FA;
}

.split-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 1s 0.2s ease, transform 1s 0.2s ease;
    background-color: #F8F9FA;
}

.split-container.visible {
    opacity: 1;
    transform: scale(1);
}

.split-side {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    cursor: pointer;
}

.content {
    z-index: 10;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0F172A;
}

.brand-logo {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 360px;
    display: flex;
    justify-content: center;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.04));
}

.brand-logo img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
}

.content p {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    letter-spacing: -0.1px;
    color: #475569;
}

.btn-enter {
    display: inline-block;
    padding: 0.95rem 2.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   3. LADO IZQUIERDO: ANDINATEL (Predominio Blanco con Azul Claro)
   ========================================================================== */
.side-left-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: filter 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(8px 0 10px rgba(15, 23, 42, 0.08));
}

.side-left {
    left: 0;
    align-items: flex-start;
    background: linear-gradient(135deg, #FFFFFF 60%, #E0F2FE 100%);
    clip-path: polygon(0 0, 64% 0, 36% 100%, 0% 100%);
    pointer-events: auto;
}

.side-left .content {
    margin-left: 6%;
}

.side-left .btn-enter {
    background: #0284C7;
    color: #FFFFFF;
    border: 1px solid #0284C7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

/* ==========================================================================
   4. LADO DERECHO: INNOVAPLAY (Predominio Blanco con Gris y Naranja)
   ========================================================================== */
.side-right {
    right: 0;
    align-items: flex-end;
    background: linear-gradient(135deg, #FFFFFF 65%, #F1F5F9 100%);
    z-index: 1;
}

.side-right .content {
    margin-right: 6%;
}

.side-right .btn-enter {
    background: #EA580C;
    color: #FFFFFF;
    border: 1px solid #EA580C;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.2);
}

/* ==========================================================================
   5. CONTROL INTERACTIVO DE SOMBRAS EN LA DIAGONAL (Hovers)
   ========================================================================== */
.split-container:has(.side-left:hover) .side-left {
    clip-path: polygon(0 0, 74% 0, 46% 100%, 0% 100%);
}

.split-container:has(.side-left:hover) .side-left-wrapper {
    filter: drop-shadow(10px 0 12px rgba(2, 132, 199, 0.45));
}

.split-container:has(.side-right:hover) .side-left {
    clip-path: polygon(0 0, 54% 0, 26% 100%, 0% 100%);
}

.split-container:has(.side-right:hover) .side-left-wrapper {
    filter: drop-shadow(-10px 0 12px rgba(234, 88, 12, 0.45));
}

.split-side:hover .brand-logo {
    transform: scale(1.02) translateY(-2px);
}

.side-left:hover .btn-enter {
    background: #0369A1;
    border-color: #dfe8edff;
    box-shadow: 0 10px 20px rgba(3, 105, 161, 0.3);
}

.side-right:hover .btn-enter {
    background: #C2410C;
    border-color: #C2410C;
    box-shadow: 0 10px 20px rgba(194, 65, 12, 0.3);
}
