/* Estilos generales */
body {
    margin: 0;
    background: linear-gradient(to right, #d6d6d6 0%, #f5f5f5 100%);
    color: #333;
}

/* Barra de navegación */
.navegacion {
    background-color: #121212;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navegacion ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.navegacion a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.navegacion a:hover {
    color: #ffbc2d;
}

/* Cabecera con fondo */
.cabecera {
    background-image: url('../img/fondo-cabecera.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}

.cabecera h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

.cabecera p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}


/* Sección de introducción */
.introduccion {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    color: white;
    overflow: hidden;
    z-index: 1;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 8px;
}

.introduccion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        #63d8fc 25%,
        #00ff95 50%,
        #6f00ff 75%,
        #63d8fc 100%
    );
    background-size: 400% 400%;
    animation: ondaDegradado 15s ease infinite;
    z-index: -1;
    opacity: 0.7;
}

@keyframes ondaDegradado {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.introduccion h2, .introduccion p {
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Galería */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    aspect-ratio: 3/4;
}

.tarjeta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-foto {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    transition: bottom 0.5s ease;
}

.tarjeta:hover .info-foto {
    bottom: 0;
}

.tarjeta:hover img {
    transform: scale(1.2);
}

/* Pie de página */
.pie-pagina {
    text-align: center;
    padding: 20px;
    background-color: #121212;
    color: white;
    margin-top: 40px;
}