/* ==========================================================================
   ESTILOS PARA EL MURO SOCIAL - MIS EVENTOS PRO
   ========================================================================== */

/* ÍNDICE:
   1. Importaciones y Variables Globales
   2. Encabezado y Textos (Novios)
   3. Carrusel Superior
   4. Galería de Fotos (Grid)
   5. Efectos y Animaciones (Nueva foto)
   6. Botones (Principales y Secundarios) - Estilo iOS
   7. Barra Flotante Inferior
   8. Modales y Lightbox (Pantalla Completa)
========================================================================== */

/* ==========================================
   1. IMPORTACIONES Y ESTILOS GLOBALES
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa; 
    padding-bottom: 90px !important; 
}

/* ==========================================
   2. ENCABEZADO Y TEXTOS (NOVIOS)
========================================================================== */
.titulo-evento {
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.img-novios {
    width: 80px; 
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nombres-novios {
    font-weight: 800;
    color: #2c3e50;
    font-size: 1.6rem; 
    line-height: 1.1; 
    margin-bottom: 0px;
}

.bienvenida {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   3. CARRUSEL SUPERIOR
========================================================================== */
.foto-carrusel {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    cursor: pointer;
    filter: brightness(0.95);
    transition: all 0.3s;
}

.foto-carrusel:hover {
    filter: brightness(1.05);
    transform: scale(1.02);
}

.badge-top-reciente {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffd700;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid #ffd700;
    z-index: 10;
    backdrop-filter: blur(5px); 
}

/* ==========================================
   4. GALERÍA DE FOTOS (GRID)
========================================================================== */
.contenedor-foto {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.foto-muro {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    filter: brightness(0.95); 
}

.foto-muro:hover {
    transform: scale(1.04) translateY(-3px);
    filter: brightness(1.1); 
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
    z-index: 2;
}

/* ==========================================
   5. EFECTOS Y ANIMACIONES (NUEVA FOTO)
========================================================================== */
.badge-nueva {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ffd700, #ffa500); 
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: pulso 2s infinite;
}

.resaltar-nueva {
    border: 3px solid #ffd700;
    animation: brillo 2s infinite;
}

@keyframes pulso {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes brillo {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
}

/* ==========================================
   6. BOTONES GLOBALES (Estilo iOS)
========================================================================== */
.btn-principal {
    background-color: #2c3e50;
    color: white;
    border-radius: 14px; /* Estilo iOS cuadrado pero suave */
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

.btn-principal:hover {
    background-color: #1a252f;
    color: white;
    transform: translateY(-2px);
}

.btn-secundario {
    background-color: #ffffff;
    color: #2c3e50;
    border: 2px solid #e2e8f0;
    border-radius: 14px; /* Estilo iOS cuadrado pero suave */
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secundario:hover {
    border-color: #2c3e50;
    background-color: #f8fafc;
    transform: translateY(-2px);
}

/* ==========================================
   7. BARRA FLOTANTE INFERIOR (Menú App)
========================================================================== */
.barra-flotante {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Cambiamos el 0.90 por 0.40 para hacerlo mucho más transparente */
    background: rgba(255, 255, 255, 0.40); 
    /* Aumentamos el blur a 15px para un efecto cristal esmerilado más fuerte */
    backdrop-filter: blur(15px); 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05); /* Sombra un poco más suave */
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 15px; 
}
/* ==========================================
   8. MODALES Y LIGHTBOX (PANTALLA COMPLETA)
========================================================================== */
.modal-backdrop.show {
    opacity: 0.98;
    background-color: #000000; 
}

#imagenLightbox {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    max-height: 90vh !important;
    width: 100%;
    object-fit: contain;
}

/* --- BOTÓN CERRAR (X) --- */
.btn-cerrar-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060; 
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cerrar-modal:hover {
    background: black;
    transform: scale(1.1);
}

/* --- BOTÓN DESCARGAR --- */
.btn-descargar-modal {
    position: fixed;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%); 
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    border-radius: 30px; /* Este lo dejamos redondo porque es un botón flotante individual */
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 1060; 
    transition: all 0.2s;
}

.btn-descargar-modal:hover {
    background: #ffffff;
    color: #000;
    transform: translateX(-50%) scale(1.05); 
}