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; 
}

/* Estilos del menú de navegación */
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: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slider h2 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.slider img {
    width: 100%;
    height: 855px;
    object-fit: cover;
}

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; 
}

/* Media queries para pantallas pequeñas */
@media (max-width: 768px) {
    /* General */
    body {
        padding: 10px;
    }

    .school-info h1 {
        font-size: 1.5rem;
    }

    .school-motto {
        font-size: 1rem;
    }

    /* Header */
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        height: 50px; 
    }

    .school-name-container h1 {
        font-size: 1.5rem; 
    }

    /* Navegación */
    nav ul {
        flex-direction: column;
        width: 100%; 
        gap: 10px; 
    }

    nav ul li a {
        text-align: left;
        padding: 10px 15px;
    }

    .dropdown-content {
        position: static; 
        width: auto;
    }

    /* Slider */
    .slider-container {
        grid-template-columns: 1fr; 
        gap: 10px; 
    }

    .slider img {
        height: 550px; 
        max-height: 700px; 
        object-fit: contain; 
    }

    .slider h2 {
        font-size: 1rem; 
    }

    /* Footer */
    footer {
        text-align: left; 
        padding: 15px;
    }

    .footer-info {
        font-size: 0.9rem; 
    }

    .map iframe {
        height: 200px; 
    }

    .social-links img {
        width: 30px; 
        height: 30px;
    }

    /* WhatsApp */
    .whatsapp-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    /* Menu hamburguesa */
  @media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        height: 50px; 
    }

    .school-name-container h1 {
        font-size: 1.5rem; 
    }

    nav ul {
        flex-direction: column;
        width: 100%; 
        gap: 10px; 
    }

    nav ul li a {
        text-align: left; 
        padding: 10px 15px;
    }

    .dropdown-content {
        position: static; 
        width: auto;
    }
}
@media (max-width: 768px) {
    .slider-container {
        grid-template-columns: 1fr; 
        gap: 10px; 
    }

    .slider img {
        height: 550px; 
        max-height: 700px; 
        object-fit: contain; 
    }

    .slider h2 {
        font-size: 1rem; 
    }
}
@media (max-width: 768px) {
    footer {
        text-align: left; 
        padding: 15px;
    }

    .footer-info {
        font-size: 0.9rem; 
    }

    .map iframe {
        height: 200px; 
    }

    .social-links img {
        width: 30px; 
        height: 30px;
    }
}
@media (max-width: 768px) {
    body {
        padding: 10px; 
    }

    .school-info h1 {
        font-size: 1.5rem; 
    }

    .school-motto {
        font-size: 1rem; 
    }
}



header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #6ca0dc;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}


.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001; 
}

.menu-toggle .bar {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Nav menu */
nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;
    background-color: #6ca0dc; 
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}

nav.active {
    left: 0;
}

/* Menu items */
.nav-menu {
    list-style: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-menu li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-menu li a:hover {
    color: #ffff99;
}

/* WhatsApp Icon */
.whatsapp-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}


@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;
    }

    
    .menu-toggle {
        display: none;
    }
}
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
        width: 100%; 
    }

    .slider-container {
        padding: 0;
    }

    .slider img {
        width: 100%; 
        height: auto; 
        display: block; 
        margin: 0; 
    }

    main {
        padding: 0; 
        margin: 0;
    }

    footer {
        padding: 15px; 
    }

    .map iframe {
        width: 100%; 
    }
}
@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; 
    }
}

}