/* Reset de márgenes y rellenos para todo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #808080, #ffffff, #000000);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* Estilo del header */
header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, #ff7f50, #ff6347);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 50px;
}

.titulo {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    font-family: 'Arial', sans-serif;
}

/* Estilo de la galería */
.galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas */
    gap: 20px;
    width: 100%;
    max-width: 900px;
}

.imagen {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.imagen img {
    width: 450px; /* Ancho de 450px */
    height: 200px; /* Alto de 200px */
    object-fit: cover; /* Asegura que la imagen se ajuste sin distorsión */
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Efecto de hover en las imágenes */
.imagen:hover img {
    transform: scale(1.1);
}

/* Estilos para el modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal:target {
    display: flex;
}

.modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    cursor: pointer;
    color: #000;
    text-decoration: none;
}

.cerrar:hover {
    background: #ff6347;
}
