@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: #0F2749; }
.portal-section.academia { background-color: #B01030; }

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

.image-header {
    width: 100%;
    height: 50%;
    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: white;
}

.badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    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: white;
    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: 5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1;
}

.main-description {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 500px;
}

.btn-main {
    position: relative;
    display: inline-block;
    padding: 22px 200px;
    background-color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    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: #0F2749; }
.academia .btn-main { color: #B01030; }

.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: 30px;
    left: 30px;
    z-index: 100;
    width: 55px;
    height: 55px;
    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);
}

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

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

@media (max-width: 1200px) {
    .main-title { font-size: 3.5rem; }
    .btn-main { padding: 22px 100px; }
}

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

    .main-split-viewport {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

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

    .central-divider { display: none; }

    .image-header { height: 300px; }

    .info-container {
        align-items: center;
        text-align: center;
        padding: 40px 10%;
    }

    .main-title { font-size: 3.5rem; }

    .btn-main {
        padding: 20px 0;
        width: 100%;
        max-width: 320px;
        font-size: 1.3rem;
    }

    .back-home-btn {
        position: absolute;
        top: 20px;
        left: 20px;
    }

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

    .footer-copyright p {
        white-space: normal;
        font-size: 12px;
        text-align: center;
        width: 100%;
    }
}

.btn-docente {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #1e3a8a;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    z-index: 999;
}

.btn-docente:hover {
    background-color: #2563eb;
}
