/* --- Reseteo Básico y Estilos Globales --- */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
}

/* --- Fondo Animado (Efecto Mar) --- */
.background-sea {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Gradiente con tonos de azul claro para simular el agua */
    background: linear-gradient(300deg, #a2d2ff, #bde0fe, #cbf3f0);
    background-size: 200% 200%;
    animation: moveSea 18s ease infinite;
}

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

/* --- Contenedor Principal --- */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    box-sizing: border-box; /* Asegura que el padding no cause desbordamiento */
}

/* --- Header y Logo --- */
header .logo {
    max-width: 280px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); /* Sombra para resaltar el logo */
}

/* --- Sección de Contenido (Textos) --- */
.content h1 {
    font-size: 2.8rem;
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: 0;
}

.content p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Galería de Imágenes --- */
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en varias líneas */
}

.gallery-item {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin deformarse */
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Diseño Responsivo (Media Queries) --- */
@media (max-width: 900px) {
    .content h1 {
        font-size: 2.2rem;
    }

    .content p {
        font-size: 1.1rem;
    }
    
    .gallery {
        /* En pantallas medianas, mantenemos la fila pero con menos espacio */
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    header .logo {
        max-width: 200px;
    }

    .content h1 {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 1rem;
    }

    .gallery {
        flex-direction: column; /* Apila las imágenes verticalmente en móviles */
        gap: 2rem;
    }

    .gallery-item {
        width: 80vw; /* Usa el ancho de la pantalla para las imágenes */
        max-width: 280px; /* Pero con un máximo para no ser demasiado grande */
        height: 200px;
    }
}