/* Reset básico para consistencia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales románticos */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #FFD1DC, #FF8A8A, #ffafbd, #FF8A8A);
    background-size: 400% 400%;
    animation: gradientDrift 15s ease infinite;
    color: #4B3F72; 
    line-height: 1.6;
    overflow-x: hidden; 
}

/* Animación de fondo */
@keyframes gradientDrift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid #FF8A8A;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 600;
    color: #E94E77;
    margin-bottom: 0.5rem;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

header p {
    font-size: 1.5rem;
    color: #4B3F72;
    font-family: 'Poppins', sans-serif;
}

/* --- ESTILOS DE GALERÍA --- */
.galeria {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cuadrículas */
.pagina-principal .galeria {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}
.pagina-recuerdo .galeria {
    grid-template-columns: repeat(5, 1fr);
}

.foto {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 100, 150, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.foto img,
.foto video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin-bottom: 1rem;
}

.foto p {
    font-size: 1.2rem;
    color: #5E4B73;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
}

.foto:hover {
    transform: scale(1.05) rotate(1.5deg);
    box-shadow: 0 8px 20px rgba(255, 100, 150, 0.4);
}

/* Botón de volver */
.volver {
    display: block;
    width: fit-content;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: #E94E77;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(233, 78, 119, 0.3);
}

.volver:hover {
    background-color: #c93b62; 
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(233, 78, 119, 0.5);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .pagina-principal .galeria,
    .pagina-recuerdo .galeria {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pagina-principal .galeria,
    .pagina-recuerdo .galeria {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
        gap: 1rem;
    }
    .pagina-principal .galeria {
        grid-template-columns: 1fr;
    }
    header { padding: 2rem 1rem; }
    header h1 { font-size: 2rem; }
    header p { font-size: 1rem; }
    .foto { padding: 0.5rem; }
    .foto p { font-size: 1rem; }
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #FFD6E0;
    color: #6E6E6E;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    border-top: 2px solid #FF8A8A;
}

/* --- ESTILOS PARA CORAZONES AL HACER CLIC --- */
.heart-particle {
  position: absolute;
  font-size: 2rem;
  color: #E94E77;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
  animation: floatUpAndFade 1.5s ease-out forwards;
}

@keyframes floatUpAndFade {
  0% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-100px) scale(0.5) rotate(15deg); }
}

/* --- ¡ESTILOS DE LIGHTBOX ANTIGUOS ELIMINADOS! --- */


/* --- ¡NUEVO ESTILO PARA basicLightbox! --- */
/* Esto asegura que la imagen no toque los bordes */
.lightbox-content-professional {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Cambia el cursor de las fotos de la galería */
.pagina-recuerdo .foto img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Efecto de zoom leve al pasar el mouse */
.pagina-recuerdo .foto img:hover {
  transform: scale(1.03); 
}
