@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    color: #333;
    font-family: 'Lobster', cursive;
}

/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


header {
    background-color: #6ca0dc; 
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    margin-right: 15px;
}

.school-info {
    display: flex;
    flex-direction: column;
}

.school-type {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 5px;
}

.school-name-container {
    display: flex;
    align-items: baseline;
}

.school-info h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: #1336d6;
    font-size: 2rem;
    margin-right: 15px; 
}

.school-motto {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #ffff99; 
    font-size: 1.2rem;
    white-space: nowrap; 
}


nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    
    font-family: 'Lobster', cursive;
    text-decoration: none;
    color: white;
    font-weight: 700;
    padding: 10px;
}

nav ul li a:hover {
    background-color: #3380ff; 
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3380ff; 
    top: 100%;
    left: 0;
    min-width: 150px;
    z-index: 1;
}

.dropdown-content li {
    display: block;
}

.dropdown-content li a {
    padding: 10px;
    color: white;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.slider-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.slider-title {
    position: absolute;
    bottom: 10px; 
    left: 50%; 
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5); 
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%; 
    height:435px; 
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slides img {
    width: 100%;
    max-height: 100%; 
    object-fit: contain; 
    display: block;
    margin: auto; 
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-nav button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}
footer {
    background-color: #64a2e0; 
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-info {
    max-width: 800px;
    margin: 0 auto;
}

.map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
}

.social-links img {
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    object-fit: cover; 
}

.social-links a:hover img {
    opacity: 0.8; 
}
.whatsapp-icon {
    width: 20px;
    height: auto; 
    vertical-align: middle;
    margin-right: 8px; 
}
/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #6ca0dc;
    }

    nav .nav-links.open {
        display: flex;
    }

    nav .nav-links li {
        width: 100%;
        text-align: center;
    }
}



@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0; 
        left: -100%; 
        width: 40%;
        height: 100%;
        background-color: #6ca0dc; 
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 20px; 
        padding-left: 15px; 
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3); 
    }

    nav.active {
        left: 0; 
        padding-top: 50px; 
    }

    .menu-toggle {
        margin-top: 10px; 
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    nav {
        position: static; 
        width: auto;
        height: auto;
        background-color: transparent; 
    }

    nav ul {
        flex-direction: row; 
        justify-content: flex-end; 
        gap: 20px;
    }

    nav ul li {
        display: inline-block; 
    }

    nav ul li a {
        padding: 10px 15px; 
        color: white;
    }

    nav ul li a:hover {
        background-color: #3380ff;
        border-radius: 5px;
    }

    /* Oculta el botón hamburguesa en pantallas grandes */
    .menu-toggle {
        display: none;
    }
}

/* Menu toggle (hamburguesa) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001; /* Por encima del menú */
}

.menu-toggle .bar {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Responsive: Mostrar menú hamburguesa en pantallas pequeñas */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        flex-direction: column;
    }
}



/* Estilos responsivos para los carruseles */
@media (max-width: 768px) {
    .slider {
        max-height: 300px; 
    }

    .slides img {
        width: auto; 
        height: 100%; 
        object-fit: contain; 
    }

    .slider-nav button {
        width: 30px; 
        height: 30px;
        padding: 5px;
        font-size: 0.8rem; 
    }

    .slider-container {
        grid-template-columns: 1fr; 
        gap: 10px; 
    }

    .slider-title {
        font-size: 1rem; 
        padding: 5px;
    }
}

/* Ajustes para pantallas ultra pequeñas */
@media (max-width: 768px) {
    .slides img {
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        margin: 0; 
        padding: 0; 
    }

    .carousel-item {
        display: flex;
        justify-content: center; 
        align-items: center; 
        height: 100%; 
        margin: 0; 
    }

    .slider {
        height: auto; 
        max-height: 100%; 
        padding: 0; 
        overflow: hidden; 
    }
}
