
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #EBF7FD;
    --secondary-color: #EE2722;
    --secondary-hover: #C81D19;
    --accent-color: #FFD166;
    --dark-color: #102B60;
    --background-color: #d6effe;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--background-color);
    background-image:
        radial-gradient(ellipse 95% 55% at 0% 100%, #b8e3fc 0%, #c9ebfd 48%, transparent 49%),
        radial-gradient(ellipse 85% 50% at 100% 0%, #e8f7ff 0%, #dcf2ff 55%, transparent 56%);
}

header {
    background: #ccebfd;
    padding: 18px 30px;
    border-bottom: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(16, 43, 96, 0.05);
}

.cabecera {
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.identidad {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo {
    width: 125px;
    height: auto;
    border-radius: 50%;
    display: block;
}

.nombre-institucional {
    text-align: center;
}

.identidad h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.1;
}

.etiqueta-prekinder {
    display: table;
    margin: 5px auto;
    padding: 2px 18px;
    border-radius: 25px;
    background: var(--secondary-color);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.identidad p {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

.boton-inscripcion,
.boton-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 22px;
    border-radius: 30px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.boton-inscripcion:hover,
.boton-principal:hover {
    background: var(--secondary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 39, 34, 0.28);
}

.boton-inscripcion svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 65px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 55px;
}

.bienvenida {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
}

.bienvenida-texto {
    flex: 1;
    min-width: 0;
    transform: translateY(-35px);
}

.subtitulo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.bienvenida-texto h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    margin: 15px 0 22px;
}

.bienvenida-texto p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.carrusel {
    position: relative;
    width: 58%;
max-width: 650px;
flex-shrink: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px;
    border: 6px solid var(--accent-color);
    box-shadow: 0 12px 30px rgba(16, 43, 96, 0.14);
}

.carrusel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

.carrusel img.activa {
    opacity: 1;
    animation: acercamiento 5s linear forwards;
}
.carrusel img.saliendo {
    opacity: 0;
    animation: acercamiento 5s linear forwards;
}

@keyframes acercamiento {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.nosotros {
    width: 100%;
    max-width: 900px;
    padding: 45px 35px;
    border-radius: 28px;
    background: rgba(169, 218, 248, 0.45);
    border: 2px solid #b5e1fc;
    text-align: center;
    box-shadow: 0 8px 24px rgba(16, 43, 96, 0.06);
}

.nosotros h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 22px;
}

.nosotros p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.nosotros p:last-child {
    margin-bottom: 0;
}

.programas {
    width: 100%;
    text-align: center;
}

.programas h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 8px;
}

.programas-intro {
    font-size: 1.15rem;
    margin-bottom: 35px;
}

.aulas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.aula {
    background: #b8e2fb;
    border: 2px solid #b5e1fc;
    border-top: 6px solid var(--accent-color);
    border-radius: 25px;
    padding: 35px 25px;
    box-shadow: 0 8px 22px rgba(16, 43, 96, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.aula:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(16, 43, 96, 0.14);
}

.aula-icono img {
    width: 85px;
    height: 85px;
    object-fit: cover;
}
.aula-icono {
    display: block;
    font-size: 3rem;
    margin-bottom: -20px;
}

.aula h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.7rem;
}

.aula h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 5px 0 15px;
}

.aula p {
    font-size: 1rem;
    line-height: 1.7;
}

footer {
    background: #ccebfd;
    color: var(--dark-color);
    text-align: center;
    padding: 22px;
    border-top: 4px solid var(--secondary-color);
}

.whatsapp-flotante,
.facebook-flotante {
    position: fixed;
    bottom: 35px;
    left: 35px;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff1018;
    color: white;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.2s ease;
}

.whatsapp-flotante:hover,
.facebook-flotante:hover {
    transform: scale(1.08);
}

.whatsapp-flotante svg,
.facebook-flotante svg {
    width: 44px;
    height: 44px;
}

.facebook-flotante {
    bottom: 125px;
}

.facebook-flotante svg {
    width: 58px;
    height: 58px;
}

.ventana-inscripcion {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    border: 4px solid var(--accent-color);
    border-radius: 25px;
    background: var(--background-color);
    color: var(--dark-color);
    box-shadow: 0 15px 40px rgba(16, 43, 96, 0.25);
}

.ventana-inscripcion::backdrop {
    background: rgba(16, 43, 96, 0.55);
    backdrop-filter: blur(4px);
}

.ventana-inscripcion h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 10px;
}

.ventana-inscripcion p {
    text-align: center;
    margin-bottom: 25px;
}

.cerrar-ventana {
    position: absolute;
    top: 8px;
    right: 15px;
    border: none;
    background: transparent;
    color: var(--dark-color);
    font-size: 28px;
    cursor: pointer;
}

#form-inscripcion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#form-inscripcion label {
    font-weight: bold;
}

#form-inscripcion input,
#form-inscripcion select {
    width: 100%;
    padding: 12px;
    border: 2px solid #b5e1fc;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--dark-color);
    font-size: 1rem;
}

#form-inscripcion button {
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: var(--secondary-color);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

#form-inscripcion button:hover {
    background: var(--secondary-hover);
}

.ventana-aula {
    max-width: 580px;
    font-family: 'Fredoka', sans-serif;
}

.ventana-aula .imagen-aula {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.ventana-aula p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.ventana-aula ul {
    padding-left: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.ventana-aula .imagen-referencial {
    font-size: 0.75rem;
    font-style: italic;
}

.ventana-contacto {
    max-width: 650px;
}

.mapa-contacto {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 280px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.ventana-contacto .contacto-botones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (max-width: 1000px) {
    .cabecera {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 15px;
    }

    .identidad {
        flex-direction: column;
    }

    .identidad h1 {
        font-size: 2rem;
    }

    nav {
        gap: 12px;
    }

    main {
        padding: 40px 20px;
    }

    .bienvenida {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

       .carrusel {
        width: 100%;
        max-width: 400px;
    }

    .aulas {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
   nav {
    gap: 8px 12px;
}

nav a {
    font-size: 0.8rem;
}

nav .boton-inscripcion {
    padding: 8px 12px;
}

     .bienvenida-texto h2 {
        font-size: 2rem;
    }

    .bienvenida-texto p {
        font-size: 1rem;
    }

    .ventana-inscripcion {
        padding: 25px;
    }

    .ventana-aula h2 {
        font-size: 1.6rem;
    }

 .whatsapp-flotante,
.facebook-flotante {
    width: 54px;
    height: 54px;
    left: auto;
    bottom: 90px;
}

.facebook-flotante {
    right: 85px;
}

.whatsapp-flotante {
    right: 15px;
}
    .whatsapp-flotante svg,
    .facebook-flotante svg {
        width: 32px;
        height: 32px;
    }
.carrusel {
    width: 100%;
    height: 300px;
    aspect-ratio: auto;
} 
}