:root{
    --blue-glow: rgba(0, 132, 255, .3);
    --red-glow: rgba(255, 0, 0, .3);
    --purple-glow: rgba(231, 0, 243, .3);
    --green-glow: rgba(27, 255, 0, 0);
    --white-glow: rgba(255,255,255,.4);
    --hero-gradient: linear-gradient(to right, #0040f0d0 1%,  #0245ff2d 60%, transparent 90%);
}
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
} 

.conocenos {
    background: url('/2025/assets/images/conocenos.jpg') no-repeat center calc(100% + 100px);
    background-size: auto;
}
.servicios {
    background: url('/2025/assets/images/servicios.jpg') no-repeat center center;
    background-size: auto;
}
.niveles {
    background: url('/2025/assets/images/niveles.jpg') no-repeat center center;
    background-size: auto;
}
.primaria {
    background: url('/2025/assets/images/primaria.jpg') no-repeat center center;
    background-size: auto;
}
.secundaria {
    background: url('/2025/assets/images/secundaria.jpg') no-repeat center center;
    background-size: auto;
}
.preparatoria {
    background: url('/2025/assets/images/preparatoria.jpg') no-repeat 100% calc(100% + 200px);
    background-size: auto;
}
.cambridge {
    background: url('/2025/assets/images/cambridge.jpg') no-repeat right calc(0% - 150px);
    background-size: auto;
}
.ubicacion {
    background: url('/2025/assets/images/ubicacion.jpg') no-repeat center center;
    background-size: auto;
}
.contacto {
    background: url('/2025/assets/images/contacto.jpg') no-repeat center center;
    background-size: auto;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    background-size: cover;
}

.hero-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 a{
    font-size: 50px;
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: var(--secondary-text-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 30px;
    margin: 0;
    padding: 0;
    color: var(--secondary-text-color);
}

.hero-links a{
    display: flex;
    flex-direction: row;
    font-size: 30px;
    margin: 0;
    padding: 0;
    color: var(--secondary-text-color);
    text-decoration: none;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes Resize {
    0% {
        transform: rotate(0deg);
        background-size: 25px 25px;
    }
    50% {
        transform: rotate(180deg);
        background-size: 20px 20px;
    }
    100% {
        transform: rotate(360deg);
        background-size: 25px 25px;
    }
}

/* Figuras decorativas */
.circle {
    position: absolute;
    background: var(--green-glow);
    border-radius: 50%;
    opacity: .5;
    animation: float 3s infinite alternate ease-in-out;
}

.circle.small { width: 100px; height: 100px; top: 10%; left: 20%;}
.circle.medium { width: 70px; height: 70px; bottom: 15%; right: 10%; }
.circle.large { width: 120px; height: 120px; top: 50%; left: 60%; }

.triangle {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--red-glow);
    opacity: 0.5;
    animation: float 4s infinite alternate ease-in-out;
}

.square {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 50px;
    height: 50px;
    background: var(--blue-glow);
    opacity: 0.6;
    animation: rotate 6s linear infinite;
}

.line {
    position: absolute;
    background: var(--purple-glow);
    opacity: 0.3;
}

.line.short {
    width: 80px;
    height: 5px;
    top: 30%;
    left: 40%;
    animation: rotate 6s linear infinite;
}

.line.long {
    width: 150px;
    height: 5px;
    bottom: 10%;
    right: 20%;
    animation: float 10s infinite alternate ease-in-out;
}

.hexagon {
    position: absolute;
    top: 35%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: var(--red-glow);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.5;
    animation: float 5s infinite alternate ease-in-out;
}

.dot-grid {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, var(--white-glow) 4px, transparent 2px);
    background-size: 25px 25px;
    animation: Resize 15s infinite alternate ease-in;
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-content h1 a{
        font-size: 30px;
    }
    .hero-links a{
        font-size: 20px;
    }
    .circle.small { width: 15px; height: 15px;}
    .circle.medium { width: 20px; height: 20px }
    .circle.large { width: 40px; height: 40px;}

    .triangle {
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 40px solid var(--red-glow);
    }

    .square {
        width: 30px;
        height: 30px;
    }

    .line.short {
        width: 50px;
        height: 3px;
        top: 30%;
        left: 50%;
    }

    .line.long {
        width: 120px;
        height: 3px;
        bottom: 10%;
        right: 10%;
    }

    .hexagon {
        width: 30px;
        height: 30px;
    }

    .dot-grid {
        width: 120px;
        height: 120px;
        top: 10%;
        left: -10%;
        background: radial-gradient(circle at center, var(--white-glow) 2px, transparent 1px);
        background-size: 1px 1px;
    }
    .preparatoria {
        background: url('/2025/assets/images/preparatoria.jpg') no-repeat calc(50% - 200px) calc(100% + 200px);
    }
}