@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');


body {
    
    margin: 0;
    padding: 0;
    color: #333;
}

/* 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: white;
    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;
}
.whatsapp-icon {
    width: 20px;
    height: auto; 
    vertical-align: middle;
    margin-right: 8px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fffdde;
    background-image: url("https://www.transparenttextures.com/patterns/swirl.png");
    background-size: cover;
}

section.intro {
    text-align: center;
    padding: 50px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    margin-bottom: 30px;
    border-radius: 10px;
    max-width: 1200px;
    margin: 30px auto;
}

section.intro h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

section.intro p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

section.talleres {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.taller {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    width: 45%;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.taller:hover {
    transform: scale(1.05);
}

.image-container {
    width: 40%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taller .info {
    padding: 20px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #0056b3;
}

.taller h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffcc00;
    font-family: 'Trebuchet MS', sans-serif;
}

.taller p {
    font-size: 1.1em;
    color: rgb(12, 0, 0);
}

@media (max-width: 768px) {
    .taller {
        width: 100%;
    }

    .image-container {
        width: 40%;
    }
}
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; 
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 50px;
        margin-bottom: 10px;
    }

    .school-info h1 {
        font-size: 1.5rem;
    }

    .school-motto {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li a {
        padding: 8px;
        font-size: 0.9rem;
    }

    .whatsapp-icon {
        width: 16px;
        margin-right: 5px;
    }

    section.intro {
        padding: 20px;
    }

    section.intro h1 {
        font-size: 2rem;
    }

    section.intro p {
        font-size: 1em;
    }

    section.talleres {
        flex-direction: column;
        align-items: center;
    }

    .taller {
        width: 90%;
        flex-direction: column;
    }

    .image-container {
        width: 100%;
    }

    .taller .info {
        width: 100%;
        padding: 10px;
    }

    .taller h2 {
        font-size: 1.5rem;
    }

    .taller p {
        font-size: 1rem;
    }

    footer {
        text-align: center;
    }

    .social-links img {
        width: 30px;
        height: 30px;
    }
}


@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .school-info h1 {
        font-size: 1.2rem;
    }

    .school-motto {
        font-size: 0.9rem;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 6px;
    }

    section.intro h1 {
        font-size: 1.8rem;
    }

    section.intro p {
        font-size: 0.9rem;
    }

    .taller h2 {
        font-size: 1.3rem;
    }

    .taller p {
        font-size: 0.9rem;
    }
}
/* 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;
    }

   
    .menu-toggle {
        display: none;
    }
}


.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;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        flex-direction: column;
    }
}