* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fb;
    color: #222;
}

.header {
    background-color: #0d47a1;
    color: white;
    padding: 15px 20px;
}

.contenedor-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

main {
    padding: 30px;
}

.banner {
    background: url('../img/banner.jpg') center/cover no-repeat;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.banner h1 {
    background-color: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 10px;
}

.seccion {
    margin-top: 40px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tarjeta {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
}

.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.formulario {
    max-width: 450px;
    background: white;
    margin: 30px auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.formulario h2 {
    margin-bottom: 20px;
    text-align: center;
}

.formulario input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 8px;
}

.formulario button {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #0d47a1;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.footer {
    margin-top: 40px;
    background-color: #0d47a1;
    color: white;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        background-color: #0d47a1;
        position: absolute;
        top: 70px;
        right: 20px;
        padding: 15px;
        border-radius: 10px;
    }

    .nav.activo {
        display: flex;
    }
}