* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 5rem;
    position: relative;
    overflow-x: hidden;
}

/* --- FONDO BLANCO EN MOVIMIENTO --- */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: moveShapes 15s infinite alternate ease-in-out;
}

.shape1 {
    width: 500px;
    height: 500px;
    background: #fcd34d; /* Tono cálido dorado claro */
    top: -100px;
    left: -100px;
    animation-duration: 20s;
}

.shape2 {
    width: 600px;
    height: 600px;
    background: #fda4af; /* Tono cálido rojo/carmesí claro */
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape3 {
    width: 400px;
    height: 400px;
    background: #e0e7ff; /* Azul muy pálido para balancear */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes moveShapes {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(50px, 50px) scale(1); }
}

/* --- GALERÍA --- */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* Por encima del fondo animado */
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item {
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.gallery-item:first-child {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item {
    animation: fadeIn 0.8s ease forwards;
}

/* --- BOTÓN DE DESCARGA DORADO ANIMADO --- */
.download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    /* Gradiente Dorado */
    background: linear-gradient(135deg, #FFDF00 0%, #D4AF37 50%, #B8860B 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    text-decoration: none;
    z-index: 1000;
    /* Animación de latido (pulse) constante */
    animation: pulseGlow 2s infinite;
    transition: all 0.3s ease;
}

/* Efecto al pasar el cursor (Hover) */
.download-btn:hover {
    /* Cambia hacia el tono Rojo Carmesí al hacer hover */
    background: linear-gradient(135deg, #DC143C 0%, #900C3F 100%);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.6);
    transform: scale(1.1) translateY(-5px);
    animation: none; /* Pausa el pulse al hacer hover */
}

/* Definición de la animación de latido */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}
