* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.split-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
}

.split-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.8s ease, opacity 0.6s ease;
    overflow: hidden;
    cursor: pointer;
    color: white;
    text-align: center;
}

/* Fondos */
.left-section {
    background: linear-gradient(135deg, #1E2A38, #2C2C2C);
}

.right-section {
    background: linear-gradient(135deg, #F4C6CC, #FDF4E6);
    color: #2C2C2C;
}

/* Contenido principal */
.section-content {
    z-index: 2;
    max-width: 500px;
    opacity: 0.9;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .section-content .logo img {
        width: 120px;
        margin-bottom: 1rem;
    }

    .section-content .title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-content .description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, transform 0.3s ease;
}

    .cta-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-4px);
    }

/* Títulos colapsados */
.collapsed-title {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    white-space: nowrap;
    pointer-events: none;
    color: white;
}

/* Texto colapsado por defecto (izquierda) */
.left-section .collapsed-title {
    color: white;
}

/* Texto colapsado en la derecha */
.right-section .collapsed-title {
    color: #2C2C2C; /* mismo tono de la paleta oscura */
}


/* Estado activo */
.split-section.active {
    flex: 9;
}

    .split-section.active .section-content {
        opacity: 1;
        transform: translateY(0);
    }

.split-section:not(.active) {
    flex: 1;
}

    .split-section:not(.active) .section-content {
        opacity: 0;
        pointer-events: none;
    }

    .split-section:not(.active) .collapsed-title {
        opacity: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
    }

/* Rotación solo en horizontal */
@media (min-width: 769px) {
    .split-container {
        flex-direction: row;
    }

    .split-section:not(.active) .collapsed-title {
        transform: translate(-50%, -50%) rotate(-90deg);
    }
}

/* Layout en móvil portrait */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .section-content .title {
        font-size: 1.5rem;
    }

    .section-content .description {
        font-size: 1rem;
    }

    .section-content .logo img {
        width: 90px;
    }
}


/* === Animaciones === */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    50% {
        transform: translateY(-80px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
}

/* Animación de elementos dentro de la sección activa */
.split-section.active .section-content .logo img {
    animation: fadeInUp 0.8s ease forwards;
}

.split-section.active .section-content .title {
    animation: fadeInUp 1s ease forwards;
}

.split-section.active .section-content .description {
    animation: fadeInUp 1.2s ease forwards;
}

.split-section.active .section-content .cta-button {
    animation: fadeInUp 1.4s ease forwards;
}

/* === Partículas === */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    animation: floatParticle 6s infinite ease-in-out;
}

/* Partículas claras en la izquierda */
.left-section .particle {
    background: rgba(255, 255, 255, 0.15);
}

/* Partículas oscuras en la derecha */
.right-section .particle {
    background: rgba(0, 0, 0, 0.15);
}
