* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: #090d16;
    color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Brillo sutil de fondo */
.bg-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(9, 13, 22, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    top: 20vh;
    left: calc(50% - 225px);
    pointer-events: none;
}

/* Frase superior estática con animación de desvanecimiento */
.top-banner {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(9, 13, 22, 0.9);
    padding: 14px 20px;
    z-index: 10;
    border-bottom: 1px solid rgba(244, 114, 182, 0.1);
    text-align: center;
}
.fade-text {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f472b6;
    text-shadow: 0 0 15px rgba(244, 114, 182, 0.4);
    opacity: 1;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
.fade-text.hidden {
    opacity: 0;
    transform: translateY(-4px);
}

/* Sección Principal / Hero */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.pixel-heart {
    font-size: 5.5rem;
    animation: heartbeat 1.2s infinite ease-in-out;
    filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.7));
    margin-bottom: 15px;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
    60% { transform: scale(1); }
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #f472b6, #c084fc, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
p.sub {
    color: #94a3b8;
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 25px;
}

/* Indicador de desplazamiento */
.scroll-prompt {
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}
.bounce-arrow {
    font-size: 1.2rem;
    color: #f472b6;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* APARTADO DE ÁLBUM DE FOTOS */
.gallery-section {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}
.gallery-title {
    text-align: center;
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 40px;
    font-weight: 700;
}
.gallery-title span {
    color: #f472b6;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.photo-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.photo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 114, 182, 0.6);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
}
.photo-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
}
.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.photo-card:hover .photo-wrapper img {
    transform: scale(1.08);
}
.photo-caption {
    padding: 15px;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 400;
}

/* ESTILOS DEL MODAL / LIGHTBOX FLOTANTE */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.92);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}
.modal.active {
    display: flex;
}
.modal-content {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 12px;
    border: 2px solid rgba(244, 114, 182, 0.4);
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.3);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
#modalCaption {
    margin-top: 15px;
    color: #f8fafc;
    font-size: 1.15rem;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.5);
}

/* --- PANTALLA DE CARGA FLOTANTE CON DIFUMINADO --- */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.spinner {
    width: 55px;
    height: 55px;
    border: 5px solid rgba(244, 114, 182, 0.2);
    border-top: 5px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#loading-overlay h2 {
    color: #f472b6;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(244, 114, 182, 0.4);
}

/* Corazoncitos flotantes dinámicos */
.floating-heart {
    position: fixed;
    color: rgba(244, 114, 182, 0.35);
    font-size: 1.4rem;
    animation: floatUp 6s linear infinite;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}
@keyframes floatUp {
    0% { transform: translateY(105vh) scale(0.7); opacity: 0; }
    30% { opacity: 0.9; }
    100% { transform: translateY(-10vh) scale(1.3); opacity: 0; }
}

/* --- BOTÓN FLOTANTE FIJO A LA DERECHA --- */
.floating-upload-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-upload-container.hidden {
    display: none !important;
}

.floating-upload-container .upload-button-style {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #e91e63 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.7) !important;
}

.floating-upload-container .upload-button-style:hover {
    background-color: #c2185b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.9) !important;
}

/* --- BURBUJA DE MENSAJE CORREGIDA Y CON FORMATO --- */
.upload-hint {
    display: none;
    position: absolute;
    bottom: 75px; 
    right: 0;
    width: 220px;
    background: #ec4899;
    color: white;
    padding: 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    z-index: 1001;
    animation: fadeIn 0.5s ease-out;
}

#closeHintBtn {
    margin-top: 10px;
    background: #ffffff;
    color: #ec4899;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: transform 0.2s;
}

#closeHintBtn:hover {
    transform: scale(1.05);
    background: #fce4ec;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}