/* ========================================
   UN DÍA COMO HOY - BLOQUE PÚBLICO
   Estilo retro, moderno y minimalista
======================================== */

.un-dia-como-hoy-block {
    width: 100%;
    padding: 2rem 0 0 0;
    background: transparent;
}

.un-dia-como-hoy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
}

/* Header del bloque */
.udch-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.udch-title {
    font-family: 'Pacifico', cursive;
    font-size: 2.25rem;
    font-weight: 400;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.udch-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

/* Contenido principal */
.udch-content {
    position: relative;
    overflow: hidden;
    /* Permitir scroll vertical en la página */
    touch-action: pan-y pinch-zoom;
}

.udch-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Permitir scroll vertical */
    touch-action: pan-y;
}

.udch-slide {
    min-width: 100%;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 0 0.5rem;
}

/* Contenedor de imagen + autor */
.udch-image-container {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
}

/* Imagen */
.udch-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.udch-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 16px;
}

/* Autor de la foto */
.udch-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    min-height: 1.25rem;
}

.udch-author i {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ========================================
   CINTA DE MINIATURAS
======================================== */
.udch-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.625rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.udch-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.udch-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.udch-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
}

.udch-thumbnail {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f3f4f6;
    opacity: 0.7;
}

.udch-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.udch-thumbnail.active {
    border-color: var(--thumb-color, #8b5cf6);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.udch-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge del año */
.udch-year-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Info del lado derecho */
.udch-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.udch-info-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.udch-info-leyenda {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* Indicadores de paginación */
.udch-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.udch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.udch-dot:hover {
    background: #9ca3af;
}

.udch-dot.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    width: 24px;
    border-radius: 4px;
}

/* Separador/Piso del bloque */
.udch-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.2) 20%, 
        rgba(236, 72, 153, 0.3) 50%, 
        rgba(139, 92, 246, 0.2) 80%, 
        transparent 100%
    );
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Estado vacío */
.udch-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #9ca3af;
}

.udch-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.udch-empty p {
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    .un-dia-como-hoy-block {
        padding: 1.5rem 0 0 0;
    }

    .un-dia-como-hoy-container {
        padding: 0 1rem 1rem;
    }

    .udch-title {
        font-size: 1.75rem;
    }

    .udch-date {
        font-size: 0.8125rem;
    }

    .udch-slide {
        flex-direction: column;
        gap: 1rem;
    }

    .udch-image-container {
        flex: none;
        width: 100%;
    }

    /* En mobile: imagen sin recorte, respeta proporción original */
    .udch-image-wrapper {
        border-radius: 12px;
    }

    .udch-image {
        max-height: 400px;
        border-radius: 12px;
    }

    .udch-author {
        margin-top: 0.375rem;
        font-size: 0.6875rem;
    }

    .udch-author i {
        font-size: 0.75rem;
    }

    /* Miniaturas en mobile */
    .udch-thumbnails {
        margin-top: 0.5rem;
        gap: 0.375rem;
    }

    .udch-thumbnail {
        width: 48px;
        height: 48px;
        border-radius: 6px;
    }

    .udch-info {
        padding: 0;
    }

    .udch-info-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .udch-info-leyenda {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .udch-year-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .udch-pagination {
        margin-top: 1rem;
    }

    /* Permitir scroll vertical en mobile */
    .udch-content {
        touch-action: pan-y pinch-zoom;
        overflow: visible;
    }

    .udch-slider {
        touch-action: pan-y;
    }

    .udch-separator {
        margin-top: 1rem;
    }
}

/* ========================================
   ANIMACIONES
======================================== */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.udch-slide.entering {
    animation: fadeInSlide 0.5s ease forwards;
}


/* ========================================
   BOTÓN DE PARTICIPANTE VINCULADO
======================================== */
.udch-participante-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.375rem 0.625rem 0.375rem 0.375rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    max-width: fit-content;
}

.udch-participante-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.4);
}

.udch-participante-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.udch-participante-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.udch-participante-avatar i {
    font-size: 0.75rem;
    color: white;
}

.udch-participante-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8b5cf6;
    white-space: nowrap;
}

.udch-participante-btn > i:last-child {
    font-size: 0.875rem;
    color: #8b5cf6;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .udch-participante-btn {
        margin-top: 0.75rem;
        padding: 0.3125rem 0.5rem 0.3125rem 0.3125rem;
    }
    
    .udch-participante-avatar {
        width: 22px;
        height: 22px;
    }
    
    .udch-participante-name {
        font-size: 0.75rem;
    }
}

/* ========================================
   BOTTOMSHEET DEL PARTICIPANTE
======================================== */
.udch-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.udch-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.udch-sheet {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

.udch-sheet-overlay.active .udch-sheet {
    transform: translateX(0);
}

/* Header del sheet */
.udch-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.udch-sheet-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.udch-sheet-title i {
    font-size: 1rem;
    color: #8b5cf6;
}

.udch-sheet-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.udch-sheet-close:hover {
    background: #8b5cf6;
    color: white;
}

.udch-sheet-close i {
    font-size: 1.25rem;
    color: inherit;
}

/* Body del sheet */
.udch-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
}

/* Loading */
.udch-sheet-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: #9ca3af;
}

.udch-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: udchSpin 0.8s linear infinite;
}

@keyframes udchSpin {
    to { transform: rotate(360deg); }
}

/* Perfil */
.udch-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.udch-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.875rem;
    border: 3px solid #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.udch-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.udch-profile-avatar i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.9;
}

.udch-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem;
}

.udch-profile-alias {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 0.375rem;
}

.udch-profile-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.udch-profile-dates {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* Epitafio */
.udch-epitafio {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-left: 3px solid #8b5cf6;
    border-radius: 0 8px 8px 0;
    font-size: 0.9375rem;
    font-style: italic;
    color: #4b5563;
    line-height: 1.6;
}

.udch-epitafio i {
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    font-size: 1.25rem;
    color: #8b5cf6;
    opacity: 0.3;
}

/* Chips */
.udch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.udch-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #4b5563;
}

.udch-chip i {
    font-size: 0.875rem;
    color: #8b5cf6;
}

/* Descripción */
.udch-description {
    text-align: center;
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

/* Secciones */
.udch-section {
    margin-bottom: 1.25rem;
}

.udch-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.udch-section-title i {
    font-size: 0.9375rem;
    color: #8b5cf6;
}

.udch-section p {
    margin: 0;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.65;
}

/* Legado */
.udch-legacy {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    padding: 1rem;
    border-radius: 10px;
}

.udch-legacy .udch-section-title {
    border-bottom: none;
    padding-bottom: 0;
    color: #8b5cf6;
}

/* Obras */
.udch-obras-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.udch-obra-item {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.udch-obra-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.udch-obra-placeholder {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.udch-obra-placeholder i {
    font-size: 1.5rem;
    color: white;
    opacity: 0.7;
}

.udch-obra-info {
    padding: 0.5rem;
}

.udch-obra-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.udch-obra-year {
    font-size: 0.6875rem;
    color: #9ca3af;
}

/* Botón ver más obras */
.udch-ver-mas-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.udch-ver-mas-btn:hover {
    background: #e5e7eb;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.udch-ver-mas-btn i {
    font-size: 0.875rem;
}

.udch-sheet.memorial .udch-ver-mas-btn {
    background: #3d3d3d;
    border-color: #4d4d4d;
    color: #9ca3af;
}

.udch-sheet.memorial .udch-ver-mas-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* Spotify button */
.udch-spotify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: #1db954;
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: all 0.2s;
}

.udch-spotify-btn:hover {
    background: #1ed760;
    transform: translateY(-1px);
}

.udch-spotify-btn i:first-child {
    font-size: 1.25rem;
}

/* Redes sociales */
.udch-social-links {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.udch-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    font-size: 1.125rem;
    transition: all 0.2s;
}

.udch-social-link:hover {
    transform: translateY(-2px);
}

.udch-social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.udch-social-link.facebook {
    background: #1877f2;
}

.udch-social-link.twitter {
    background: #000;
}

.udch-social-link.youtube {
    background: #ff0000;
}

.udch-social-link.spotify {
    background: #1db954;
}

.udch-social-link.website {
    background: #8b5cf6;
}

/* ========================================
   MODO MEMORIAL
======================================== */
.udch-sheet-overlay.memorial .udch-sheet {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
}

.udch-sheet.memorial .udch-sheet-header {
    border-bottom-color: #3d3d3d;
}

.udch-sheet.memorial .udch-sheet-title {
    color: #9ca3af;
}

.udch-sheet.memorial .udch-sheet-title i {
    color: #d4af37;
}

.udch-sheet.memorial .udch-sheet-close {
    background: #3d3d3d;
    color: #9ca3af;
}

.udch-sheet.memorial .udch-sheet-close:hover {
    background: #d4af37;
    color: #1a1a1a;
}

.udch-sheet.memorial .udch-profile-avatar {
    border-color: #d4af37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.udch-sheet.memorial .udch-profile-name {
    color: #f5f5f5;
}

.udch-sheet.memorial .udch-profile-alias {
    color: #9ca3af;
}

.udch-sheet.memorial .udch-profile-type {
    background: #d4af37;
    color: #1a1a1a;
}

.udch-sheet.memorial .udch-profile-dates {
    color: #d4af37;
}

.udch-sheet.memorial .udch-epitafio {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #d4af37;
    color: #d1d5db;
}

.udch-sheet.memorial .udch-epitafio i {
    color: #d4af37;
}

.udch-sheet.memorial .udch-chip {
    background: #3d3d3d;
    color: #d1d5db;
}

.udch-sheet.memorial .udch-chip i {
    color: #d4af37;
}

.udch-sheet.memorial .udch-description {
    color: #d1d5db;
}

.udch-sheet.memorial .udch-section-title {
    color: #9ca3af;
    border-bottom-color: #3d3d3d;
}

.udch-sheet.memorial .udch-section-title i {
    color: #d4af37;
}

.udch-sheet.memorial .udch-section p {
    color: #d1d5db;
}

.udch-sheet.memorial .udch-legacy {
    background: rgba(212, 175, 55, 0.08);
}

.udch-sheet.memorial .udch-legacy .udch-section-title {
    color: #d4af37;
}

.udch-sheet.memorial .udch-obra-item {
    background: #3d3d3d;
}

.udch-sheet.memorial .udch-obra-title {
    color: #f5f5f5;
}

/* ========================================
   MOBILE - BOTTOMSHEET
======================================== */
@media (max-width: 768px) {
    .udch-sheet {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .udch-sheet-overlay.active .udch-sheet {
        transform: translateY(0);
    }

    .udch-sheet::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        z-index: 10;
    }

    .udch-sheet.memorial::before {
        background: #4d4d4d;
    }

    .udch-sheet-header {
        padding-top: 1.25rem;
    }

    .udch-profile-avatar {
        width: 80px;
        height: 80px;
    }

    .udch-profile-name {
        font-size: 1.125rem;
    }
}


/* ========================================
   BOTÓN DE GALERÍA EN IMAGEN
======================================== */
.udch-gallery-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: rgba(139, 92, 246, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 3;
}

.udch-gallery-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.udch-gallery-btn i {
    font-size: 0.875rem;
}

/* ========================================
   LIGHTBOX DE GALERÍA
======================================== */
.udch-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.udch-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.udch-lightbox {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.udch-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.udch-lightbox-counter {
    padding: 0.375rem 0.75rem;
    background: #8b5cf6;
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.udch-lightbox-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.udch-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.udch-lightbox-close i {
    font-size: 1.5rem;
    color: white;
}

.udch-lightbox-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.udch-lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.udch-lightbox-image {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.udch-lightbox-image-container .udch-lightbox-source {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.udch-lightbox-image-container .udch-lightbox-source i {
    font-size: 0.875rem;
}

.udch-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.udch-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.udch-lightbox-nav i {
    font-size: 1.5rem;
    color: white;
}

.udch-lightbox-nav.prev {
    left: 0;
}

.udch-lightbox-nav.next {
    right: 0;
}

.udch-lightbox-footer {
    margin-top: 0.75rem;
    text-align: center;
}

.udch-lightbox-caption {
    margin: 0;
    font-size: 0.9375rem;
    color: white;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .udch-lightbox {
        padding: 0.75rem;
    }

    .udch-lightbox-nav {
        display: none;
    }

    .udch-lightbox-image {
        max-height: 60vh;
    }

    .udch-gallery-btn {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.3125rem 0.5rem;
        font-size: 0.6875rem;
    }
}


/* ========================================
   DOCUMENTOS EN BOTTOMSHEET
======================================== */
.udch-documentos-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.udch-documento-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.2s;
}

.udch-documento-item:hover {
    background: #f3f4f6;
}

.udch-documento-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.udch-documento-icon i {
    font-size: 1.25rem;
    color: white;
}

.udch-documento-info {
    flex: 1;
    min-width: 0;
}

.udch-documento-titulo {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.udch-documento-tipo {
    font-size: 0.6875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.udch-documento-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    text-decoration: none;
}

.udch-documento-btn:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

/* Memorial mode */
.udch-sheet.memorial .udch-documento-item {
    background: #3d3d3d;
}

.udch-sheet.memorial .udch-documento-item:hover {
    background: #4d4d4d;
}

.udch-sheet.memorial .udch-documento-icon {
    background: linear-gradient(135deg, #d4af37 0%, #f5d77a 100%);
}

.udch-sheet.memorial .udch-documento-titulo {
    color: #f5f5f5;
}

.udch-sheet.memorial .udch-documento-btn {
    background: #2d2d2d;
    border-color: #4d4d4d;
    color: #9ca3af;
}

.udch-sheet.memorial .udch-documento-btn:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #1a1a1a;
}

/* ========================================
   VISOR DE DOCUMENTOS
======================================== */
.udch-doc-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.udch-doc-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.udch-doc-viewer {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.udch-doc-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.udch-doc-viewer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    min-width: 0;
}

.udch-doc-viewer-title i {
    font-size: 1.125rem;
    color: #8b5cf6;
    flex-shrink: 0;
}

.udch-doc-viewer-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.udch-doc-viewer-actions {
    display: flex;
    gap: 0.5rem;
}

.udch-doc-viewer-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    text-decoration: none;
}

.udch-doc-viewer-btn:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.udch-doc-viewer-btn.close {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.udch-doc-viewer-btn.close:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.udch-doc-viewer-btn i {
    font-size: 1.125rem;
}

.udch-doc-viewer-body {
    flex: 1;
    overflow: hidden;
}

.udch-doc-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.udch-doc-viewer-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.udch-doc-viewer-fallback i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.udch-doc-viewer-fallback p {
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

.udch-doc-viewer-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.udch-doc-viewer-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
    .udch-doc-viewer-overlay {
        padding: 0;
    }

    .udch-doc-viewer {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .udch-doc-viewer-header {
        padding: 0.75rem;
    }

    .udch-doc-viewer-title {
        font-size: 0.8125rem;
    }
}
