@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.main-split-viewport {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    background-color: #000;
}

.portal-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.portal-section.colegio {
    background-color: var(--azul-oscuro);
}

.portal-section.academia {
    background-color: var(--rojo-principal);
}

.central-divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
    z-index: 10;
    pointer-events: none;
}

.image-header {
    width: 100%;
    height: 45%;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.colegio .image-header {
    background-image: url('https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1200');
}

.academia .image-header {
    background-image: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1200');
}

.info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    color: var(--blanco);
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1;
}

.main-description {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 450px;
}

.btn-main {
    position: relative;
    display: inline-block;
    padding: 18px 150px;
    background-color: var(--blanco);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    text-align: center;
}

.colegio .btn-main {
    color: var(--azul-oscuro);
}
.academia .btn-main {
    color: var(--rojo-principal);
}

.btn-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.btn-main:hover::after {
    left: 100%;
    transition: all 0.6s ease;
}

.btn-main:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.back-home-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 100;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(-10deg) scale(1.1);
}

.academia .info-container {
    align-items: flex-end;
}

.academia .badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.academia .badge:hover {
    transform: translateX(-5px);
}

.academia .main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1;
}

.academia .main-description {
    max-width: 463px;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    line-height: 1.4;
    font-size: 1.15rem;
    margin-bottom: 35px;
}

.academia .btn-main {
    position: relative;
    display: inline-block;
    padding: 18px 150px;
    background-color: var(--blanco);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    text-align: center;
}

.academia .btn-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.academia .btn-main:hover::after {
    left: 100%;
    transition: all 0.6s ease;
}

.academia .btn-main:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.footer-copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

.footer-copyright p {
    color: var(--blanco);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

@media (max-width: 992px) {
    html, body {
        overflow-y: auto;
        height: auto;
    }

    .main-split-viewport {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .portal-section {
        height: auto;
        min-height: 65vh;
        padding-bottom: 60px;
    }

    .central-divider {
        display: none;
    }

    .image-header {
        height: 310px;
    }

    .info-container,
    .academia .info-container {
        padding: 40px 25px;
        align-items: center !important;
        text-align: center !important;
        flex: none;
    }

    .main-title,
    .academia .main-title {
        font-size: 2.8rem;
    }

    .main-description,
    .academia .main-description {
        max-width: 320px;
        font-size: 1.05rem;
        line-height: 1.5;
        margin: 0 auto 35px auto;
        opacity: 0.9;
        text-align: center !important;
    }

    .btn-main,
    .academia .btn-main {
        padding: 18px 0;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .back-home-btn {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.3);
    }

    .footer-copyright {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        padding: 25px;
        text-align: center;
        background: #000;
        width: 100%;
    }
}
