/* --- 1. ESTILOS BASE (Móvil Primero) --- */
body {
    font-family: Verdana, sans-serif; 
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}


.cabecera {
    background-color: #fad201; 
    padding: 20px;
    text-align: center; 
    border-bottom: 5px solid #000;
}

.img-logo {
    width: 120px; 
    height: auto;
    border-radius: 10px; 
}

.texto-cabecera h1 {
    margin: 10px 0 5px 0;
    color: #000;
}

/* Menú de Navegación */
.menu {
    background-color: #000; 
}

.menu ul {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.menu li {
    border-bottom: 1px solid #333; 
}

.menu a {
    display: block; 
    padding: 15px;
    text-decoration: none;
    color: #fff; 
    text-align: center;
}

.menu a:hover {
    background-color: #333; 
    color: #fad201; 
}


.principal {
    padding: 20px;
}

.bloque {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px; 
    border: 1px solid #ddd;
}

/* Pie de página */
.pie {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.8em;
}

/* --- 2. RESPONSIVE --- */


@media (min-width: 768px) {
    
    /* 1. La cabecera se pone horizontal  */
    .cabecera {
        display: flex; 
        align-items: center; 
        justify-content: center;
        gap: 30px;
    }

    /* 2. El menú se pone horizontal */
    .menu ul {
        display: flex;
        justify-content: center; 
    }

    .menu li {
        border-bottom: none; 
    }

    .menu a {
        padding: 15px 30px;
    }
    
    
    .principal {
        display: flex;
        gap: 20px;
        max-width: 1000px;
        margin: 0 auto; 
    }
    
    .bloque {
        flex: 1; 
    }
}



.destacado {
    border-left: 5px solid #fad201; 
    background-color: #fffbe6; 
}

/* Para que las imágenes que pongas dentro de los textos se adapten al móvil */
.bloque img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
}



/* Para que las imágenes de la galería se ajusten */
.galeria-imagenes img {
    width: 100%;       
    max-width: 300px;  
    height: auto;
    margin: 10px;      
    border: 3px solid #000; 
}

/* Para que el formulario se vea bien en el móvil */
.campo {
    width: 100%;       
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.boton-enviar {
    background-color: #000;
    color: #fad201;    
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.boton-enviar:hover {
    background-color: #fad201;
    color: #000;
}


/* --- ESTILOS DE LA GALERÍA --- */

.galeria-imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px; 
    margin-top: 20px;
}

.galeria-imagenes img {
    width: 100%;       
    height: 250px;     
    object-fit: cover; 
    border-radius: 8px; 
    border: 3px solid #000; 
    box-shadow: 3px 3px 5px rgba(0,0,0,0.3); 
    transition: transform 0.3s ease; 
}

/* Efecto al pasar el ratón por encima */
.galeria-imagenes img:hover {
    transform: scale(1.05); 
    border-color: #fad201;  
    cursor: pointer;
}

/* --- ESTILOS GALERÍA 2 --- */


.galeria-imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.galeria-imagenes a {
    display: block; 
    text-decoration: none;
}

.galeria-imagenes img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #000;
    transition: transform 0.3s;
}

.galeria-imagenes img:hover {
    transform: scale(1.05);
    border-color: #fad201;
}



.lightbox {
    
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    text-align: center;
}

.lightbox:target {
    display: flex; 
    justify-content: center;
    align-items: center;
}

.imagen-grande {
    max-width: 90%;
    max-height: 85vh;
    border: 5px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px #000;
}

/* Botón de cerrar (la X) */
.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    font-weight: bold;
    color: #fad201;
    text-decoration: none;
}