/* ==========================================================================
   IKER MAXIMILIANO · ÁLBUM DIGITAL · DISCO NIGHT
   Premium Glassmorphism & Neon Cyan Theme
   ========================================================================== */

:root {
    --bg-dark: #05030f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.5);
    
    --silver: #ffffff;
    --silver-glow: rgba(255, 255, 255, 0.7);
    --silver-dim: rgba(255, 255, 255, 0.65);
    
    --blue-accent: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.5);
    
    --text-main: rgba(255, 255, 255, 0.92);
    --text-dim: rgba(255, 255, 255, 0.52);
    --border-cyan: rgba(0, 229, 255, 0.22);
    --border-silver: rgba(255, 255, 255, 0.22);
    
    --serif: 'Playfair Display', Georgia, serif;
    --script: 'Great Vibes', cursive;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --color-maestro: var(--cyan);
    --accent-color: var(--cyan);
    --text-color: var(--text-main);
    --bg-color: var(--bg-dark);
    --card-bg: var(--bg-card);
    
    --color-comentario-maestro: var(--cyan);
    --color-comentario-bg: rgba(12, 8, 32, 0.9);
    --color-comentario-border: var(--border-cyan);
    --color-comentario-titulo: #ffffff;
}

/* --- ESTILO BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* ── COSMIC BACKGROUND & CANVAS ── */
.cosmos-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
      radial-gradient(1000px 700px at 15% 10%, rgba(59, 130, 246, 0.2), transparent 65%),
      radial-gradient(900px 700px at 85% 25%, rgba(0, 229, 255, 0.18), transparent 65%),
      radial-gradient(950px 800px at 50% 95%, rgba(255, 255, 255, 0.1), transparent 65%),
      var(--bg-dark);
}

#starfield-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.container {
    width: 92%;
    max-width: 800px;
    margin: 0 auto;
}

/* ── TARJETAS GLASSMORPHIC ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: 24px;
    padding: 24px;
    box-shadow: inset 0 0 25px rgba(0, 229, 255, 0.04), 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.main-header {
    position: relative;
    height: 75vh; 
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('boda.jpg');
    background-size: cover;
    background-position: center 20%; 
    z-index: 1;
    opacity: 1;
}

.hero-gradient {
    position: absolute;
    bottom: -2px; left: 0; width: 100%;
    height: 70%; 
    background: linear-gradient(to top, 
      #05030f 15%,         
      rgba(5, 3, 15, 0.75) 45%,  
      rgba(5, 3, 15, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-bottom: 40px; 
    width: 100%;
}

.badge-premium {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    border: 1px solid var(--border-cyan);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--cyan-glow);
}

.chrome-text {
    background: linear-gradient(180deg, #ffffff 0%, #d7eeff 16%, #9fb6c9 38%, #ffffff 50%, #7e8a99 60%, #cfe6fb 80%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)) drop-shadow(0 0 20px rgba(120,200,255,0.4));
}

.neon-white {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 16px rgba(0, 229, 255, 0.7), 0 0 30px rgba(59, 130, 246, 0.5);
}

.hero-title {
    font-family: var(--serif);
    font-size: 1.5em;
    margin-top: 20px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--script);
    font-size: clamp(3.8rem, 15vw, 6.2rem);
    line-height: 0.95;
    margin: 10px 0;
}

.event-date {
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ── BARRA DE ESTADÍSTICAS ── */
.stats-bar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap !important;
    width: 92%;
    max-width: 480px;
    margin: -14px auto 25px !important;
    padding: 12px 16px !important;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(0, 229, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: var(--text-dim);
    text-align: center;
    flex: 1 1 0px;
    min-width: 0;
}

.stat-item .icon { 
    width: 14px; 
    height: 14px; 
    fill: var(--cyan); 
    filter: drop-shadow(0 0 5px var(--cyan-glow));
    margin-bottom: 2px;
}

.stat-number {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.stat-label { 
    font-size: 0.55rem; 
    font-weight: 600; 
    color: var(--text-dim); 
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── BARRA DE DESCARGA QR ── */
.qr-download-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 10px 0 30px;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-cyan);
    border-radius: 16px;
    text-decoration: none;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.qr-download-bar:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-2px);
}

.icon-qr { width: 18px; height: 18px; stroke: currentColor; }

/* ── TABS NAVEGACIÓN ── */
.tabs-nav {
    display: flex;
    padding: 6px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-cyan) !important;
    border-radius: 40px !important;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tab-button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 5px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dim);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--cyan), #3b82f6) !important;
    color: #03121a;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.tab-button:hover:not(.active) {
    color: #ffffff;
    text-shadow: 0 0 10px var(--cyan);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

/* ── BARRA CAMBIO DE VISTA ── */
.view-mode-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-cyan);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn svg { width: 14px; height: 14px; fill: currentColor; }

.view-btn.active {
    border-color: var(--cyan);
    color: #03121a;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.view-btn:hover:not(.active) {
    border-color: var(--cyan);
    color: #ffffff;
    background: rgba(0, 229, 255, 0.08);
}

/* ── GALERÍA DE FOTOS ── */
.gallery-grid.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
}

@media (min-width: 768px) {
    .gallery-grid.mode-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-container {
    position: relative;
    width: 100%;
}

/* Scroll lateral en Story con sombras cósmicas oscuras */
.gallery-container.mode-single-active::before,
.gallery-container.mode-single-active::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-container.mode-single-active::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, rgba(5, 3, 21, 0) 100%);
}

.gallery-container.mode-single-active::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, rgba(5, 3, 21, 0) 100%);
}

.gallery-grid.mode-single {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 10px 45px 25px !important;
    margin: 0 auto;
    max-width: 480px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-grid.mode-single::-webkit-scrollbar {
    display: none;
}

.gallery-image-item {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-cyan);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.mode-grid .gallery-image-item { 
    aspect-ratio: 1/1; 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.mode-grid .gallery-image-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--cyan);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3);
}

.mode-single .gallery-image-item {
    flex: 0 0 85%;
    max-width: 360px;
    scroll-snap-align: center;
    aspect-ratio: 3/4;
    opacity: 0.35;
    transform: scale(0.92);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.mode-single .gallery-image-item.active-story {
    opacity: 1;
    transform: scale(1);
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.gallery-image-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}

.mode-single .item-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 16px 16px;
    background: linear-gradient(to top, rgba(5, 3, 15, 0.95) 0%, rgba(5, 3, 15, 0.35) 60%, transparent 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-single .gallery-image-item.active-story .item-overlay-info {
    opacity: 1;
}

.mode-single .item-overlay-info .story-title {
    font-weight: 700;
    font-size: 0.95em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.mode-single .item-overlay-info .story-subtitle {
    font-size: 0.78em;
    color: var(--cyan);
    font-weight: 500;
}

.story-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px 0 10px;
}

.story-dot {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-dot.active {
    width: 32px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
}

/* ── BOTONES DE LA APLICACIÓN ── */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    border: none;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: #03121a;
    background: linear-gradient(90deg, var(--cyan), #82f9ff);
    box-shadow: 0 0 20px var(--cyan-glow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px var(--cyan);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-block;
    padding: 0.78rem 1.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.download-section {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

/* ── FORMULARIOS Y ELEMENTOS DE ENTRADA ── */
.section-title {
    font-family: var(--serif);
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.modal-subtitle {
    font-size: 0.78rem !important;
    color: var(--text-dim) !important;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
}

input[type="text"], input[type="password"], textarea {
    font-family: inherit;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-cyan);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
    font-size: 0.88em;
    outline: none;
    color: #ffffff; 
    transition: all 0.2s ease;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* Selector de color para dedicatorias */
.color-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0 20px;
}

.color-option {
    cursor: pointer;
}

.color-option input[type="radio"] {
    display: none;
}

.color-box {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-box.lightpink { background: rgba(244, 63, 94, 0.4); border-color: rgba(244, 63, 94, 0.8); }
.color-box.lightgreen { background: rgba(34, 197, 94, 0.4); border-color: rgba(34, 197, 94, 0.8); }
.color-box.lightblue { background: rgba(59, 130, 246, 0.4); border-color: rgba(59, 130, 246, 0.8); }
.color-box.black { background: rgba(15, 23, 42, 0.8); border-color: rgba(255, 255, 255, 0.4); }

.color-option input[type="radio"]:checked + .color-box {
    transform: scale(1.18);
    box-shadow: 0 0 15px #ffffff;
    border-color: #ffffff;
}

/* ── DEDICATORIAS EN REJILLA ── */
.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.note-item, .note-preview {
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.note-item:hover {
    transform: translateY(-4px);
}

.note-item.lightpink, .note-preview.lightpink {
    background: rgba(244, 63, 94, 0.07);
    border-color: rgba(244, 63, 94, 0.35);
    color: #ffe4e6;
    box-shadow: inset 0 0 15px rgba(244, 63, 94, 0.08), 0 5px 20px rgba(244, 63, 94, 0.15);
}

.note-item.lightgreen, .note-preview.lightgreen {
    background: rgba(34, 197, 94, 0.07);
    border-color: rgba(34, 197, 94, 0.35);
    color: #f0fdf4;
    box-shadow: inset 0 0 15px rgba(34, 197, 94, 0.08), 0 5px 20px rgba(34, 197, 94, 0.15);
}

.note-item.lightblue, .note-preview.lightblue {
    background: rgba(59, 130, 246, 0.07);
    border-color: rgba(59, 130, 246, 0.35);
    color: #eff6ff;
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.08), 0 5px 20px rgba(59, 130, 246, 0.15);
}

.note-item.black, .note-preview.black {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.note-name {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.75;
    display: block;
    margin-bottom: 8px;
}

.note-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
}

#note-preview-section {
    margin-bottom: 20px;
}

/* ── REPRODUCTOR DE AUDIOS Y NOTAS DE VOZ ── */
.voice-card-cta {
    text-align: center;
    padding: 30px 20px !important;
}

.voice-cta-btn {
    margin: 15px auto 0;
    max-width: 280px;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 25px;
}

.audio-card {
    padding: 20px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-cyan) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4) !important;
}

.audio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.audio-uploader strong {
    color: var(--cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.audio-date {
    font-size: 0.65rem;
}

.audio-player {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

/* ── MODAL GRABACIÓN DE VOZ ── */
.voice-modal-box {
    max-width: 420px !important;
    width: 95%;
    padding: 28px !important;
    border-radius: 24px !important;
}

.voice-recorder-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.voice-status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-cyan);
}

.mic-record-button {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.mic-record-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px var(--cyan);
}

.mic-record-button.recording {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    animation: micPulse 1.2s infinite alternate;
}

@keyframes micPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
    100% { transform: scale(1.12); box-shadow: 0 0 30px rgba(239, 68, 68, 0.9); }
}

.mic-icon-svg {
    width: 28px;
    height: 28px;
}

.voice-timer {
    font-size: 1.1em;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.voice-status-label {
    font-size: 0.78em;
    color: var(--text-dim);
    text-align: center;
}

.voice-preview-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-cyan);
    padding: 16px;
    border-radius: 14px;
    text-align: center;
}

.preview-title {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.voice-action-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.voice-action-row button {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

/* ── MODALES Y DIÁLOGOS EMERGENTES ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 3, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 26px; color: var(--text-dim); cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #ffffff;
}

.upload-area {
    border: 2px dashed var(--border-cyan);
    background: rgba(255, 255, 255, 0.01);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.04);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

#file-name-display {
    font-size: 0.82em;
    color: var(--text-dim);
}

#image-preview-container {
    margin-bottom: 15px;
}

#image-preview img {
    border-radius: 12px;
    border: 1px solid var(--border-cyan);
}

/* ── CONTENEDOR FLOTANTE MÚSICA DE FONDO ── */
.music-control-container {
    position: fixed;
    bottom: 1.4rem;
    right: 1.4rem;
    z-index: 350;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.music-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cyan);
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--cyan-glow);
}

#music-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #3b82f6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    transition: transform 0.2s;
}

#music-btn:hover {
    transform: scale(1.1);
}

/* ── BOTÓN FLOTANTE SUBIR FOTO ── */
.floating-action-btn {
    position: fixed;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 350;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: #007bff; /* Azul original */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.5px;
}

.floating-action-btn:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
    background: #0056b3;
}

.floating-action-btn svg {
    fill: #ffffff;
    width: 20px;
    height: 20px;
}

#music-btn svg {
    width: 16px;
    height: 16px;
    fill: #03121a;
}

.equalizer {
    display: none;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
}

.music-playing .equalizer {
    display: flex;
}

.music-playing .i-play {
    display: none;
}

.eq-bar {
    width: 2.5px;
    background: #03121a;
    border-radius: 2px;
    animation: eqPulse 1s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 40%; animation-delay: 0.2s; }

@keyframes eqPulse {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* ── LIGHTBOX MEJORADO CON COMENTARIOS Y REACCIONES ── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 3, 15, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2);
}

.lightbox-img-box {
    position: relative;
    max-width: 88vw;
    max-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

#lightbox-image {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 12px;
}

#lightbox-uploader-display {
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.close-lightbox {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transition: all 0.25s ease;
}

.close-lightbox:hover {
    background: var(--cyan);
    color: #03121a;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(12, 8, 32, 0.85);
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    font-size: 2.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

.prev-btn:hover, .next-btn:hover {
    background: var(--cyan);
    color: #03121a;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 30px var(--cyan-glow);
}

.comments-list-box {
    width: 100%;
    max-width: 380px;
    max-height: 120px;
    overflow-y: auto;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.1);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.35;
    animation: fadeIn 0.4s ease forwards;
}

.comment-bubble strong {
    color: var(--cyan);
}

.reaction-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.react-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.react-btn:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.comment-trigger {
    width: auto;
    padding: 0 14px;
    color: #ffffff;
    font-size: 0.88rem;
    gap: 6px;
}

/* Contenedor de emojis flotantes */
#floating-emojis-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    bottom: 20px;
    font-size: 2.2rem;
    opacity: 0;
    transform: scale(0.5);
    animation: floatUpEmoji 1.8s ease-in-out forwards;
}

@keyframes floatUpEmoji {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(-300px) scale(1.4); opacity: 0; }
}

/* ── FOOTER DE LA APLICACIÓN ── */
.main-footer {
    text-align: center;
    padding: 3.5rem 1.5rem 6.5rem; /* Margen inferior extra por el botón flotante */
    border-top: 1px solid rgba(0, 229, 255, 0.12);
    margin-top: 60px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-icons a {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.08);
    border: 1.5px solid var(--cyan);
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--cyan);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.85);
}

.social-icons img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1); 
}

.social-icons a:hover img {
    filter: invert(0) brightness(0.1);
}

.privacy-link {
    margin-bottom: 12px;
}

.privacy-link a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.privacy-link a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--cyan);
}

.main-footer p {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.main-footer p a {
    text-decoration: none;
    color: var(--cyan);
    font-weight: 600;
    text-transform: lowercase;
}

/* ── ANIMACIONES GENERALES ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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