/**
 * GALLERY LIGHTBOX - Estilos para lightbox de galerías normales
 * Diseño limpio inspirado en Google Photos
 */

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gallery-lightbox.active {
    display: block;
    opacity: 1;
}

/* Overlay oscuro */
.gallery-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

/* Header */
.gallery-lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 20px 15px 20px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.gallery-lightbox-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gallery-lightbox-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-align: center;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-lightbox-counter {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-lightbox-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.gallery-lightbox-user-info i {
    font-size: 0.875rem;
}

.gallery-lightbox-user-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.gallery-lightbox-user-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.gallery-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.gallery-lightbox-close i {
    font-size: 1.5rem;
}

/* Content */
.gallery-lightbox-content {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    bottom: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: visible;
}

.gallery-lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Loader simple - posicionado en el contenedor */
.gallery-lightbox-loader {
    position: absolute;
    top: 86px;
    right: 36px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.gallery-lightbox-loader.active {
    opacity: 1;
}

.gallery-lightbox-loader i {
    font-size: 1.5rem;
    color: white;
    animation: lightboxSpin 1s linear infinite !important;
}

@keyframes lightboxSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navegación */
.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox-nav i {
    font-size: 2rem;
}

.gallery-lightbox-prev {
    left: 20px;
}

.gallery-lightbox-next {
    right: 20px;
}

/* Acciones superiores (info y más opciones) */
.gallery-lightbox-top-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.gallery-lightbox-top-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-lightbox-top-action:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.gallery-lightbox-top-action i {
    font-size: 0.9375rem;
}

/* Acciones en el borde inferior de la imagen */
.gallery-lightbox-actions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.gallery-lightbox-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-lightbox-action:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.gallery-lightbox-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-lightbox-action i {
    font-size: 1.125rem;
}

/* Spinner giratorio en botones de acción */
.gallery-lightbox-action i.rotating,
.gallery-lightbox-action i.ri-loader-4-line {
    animation: rotating 1s linear infinite !important;
    display: inline-block;
}

/* Contador de likes */
.gallery-lightbox-action {
    position: relative;
}

.like-counter,
.comment-counter {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(0, 0, 0, 0.7);
    animation: likeCounterPop 0.3s ease;
}

.comment-counter {
    background: #3b82f6;
}

@keyframes likeCounterPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Animación de rotación para loader */
@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 1s linear infinite;
}

/* Thumbnails */
.gallery-lightbox-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 10;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    /* NO usar justify-content: center aquí para que el scroll funcione */
    
    /* Scrollbar personalizado */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery-lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.gallery-lightbox-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.gallery-lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-lightbox-thumbnails-track {
    display: flex;
    gap: 8px;
    height: 60px;
    align-items: center;
    /* Padding para permitir centrar la primera y última foto */
    padding: 0 calc(50vw - 50px);
    margin: 0 auto;
}

.gallery-lightbox-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-lightbox-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-lightbox-thumbnail.active {
    opacity: 1;
    border-color: white;
    transform: scale(1.05);
}

.gallery-lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    filter: blur(0);
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .gallery-lightbox-header {
        height: 100px;
        padding: 0 15px 20px 15px;
    }
    
    .gallery-lightbox-title {
        font-size: 0.8125rem;
        max-width: 250px;
    }
    
    .gallery-lightbox-counter {
        font-size: 0.6875rem;
    }
    
    .gallery-lightbox-close {
        width: 40px;
        height: 40px;
        left: 15px;
        right: auto;
    }
    
    .gallery-lightbox-close i {
        font-size: 1.25rem;
    }
    
    .gallery-lightbox-content {
        top: 60px;
        bottom: 120px;
        padding: 10px;
    }
    
    .gallery-lightbox-image {
        border-radius: 4px;
    }
    
    .gallery-lightbox-loader {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
    
    .gallery-lightbox-loader i {
        font-size: 1.25rem;
    }
    
    /* Ocultar botones de navegación en mobile (solo swipe) */
    .gallery-lightbox-nav {
        display: none !important;
    }
    
    .gallery-lightbox-footer {
        bottom: 70px;
        gap: 0.375rem;
        padding: 0.375rem;
    }
    
    .gallery-lightbox-action {
        width: 34px;
        height: 34px;
    }
    
    .gallery-lightbox-action i {
        font-size: 0.95rem;
    }
    
    .gallery-lightbox-thumbnails {
        height: 70px;
        padding: 8px 15px;
    }
    
    .gallery-lightbox-thumbnail {
        width: 54px;
        height: 54px;
    }
}

/* Responsive - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-lightbox-nav {
        width: 48px;
        height: 48px;
    }
    
    .gallery-lightbox-nav i {
        font-size: 1.75rem;
    }
}

/* Animaciones de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gallery-lightbox.active .gallery-lightbox-header,
.gallery-lightbox.active .gallery-lightbox-footer,
.gallery-lightbox.active .gallery-lightbox-thumbnails {
    animation: slideUp 0.3s ease;
}

.gallery-lightbox.active .gallery-lightbox-image {
    animation: fadeIn 0.3s ease;
}


/* Wrapper de imagen para marca de agua */
.gallery-lightbox-image-wrapper {
    position: relative;
    display: inline-block;
}

/* Marca de agua en lightbox */
.gallery-lightbox-image-wrapper .watermark-overlay {
    position: absolute;
    z-index: 10;
}

.watermark-lightbox {
    transition: opacity 0.3s ease;
}

/* Modal de información de foto */
.photo-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10006;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-info-modal.active {
    opacity: 1;
}

.photo-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.photo-info-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: calc(100% - 32px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.photo-info-modal.active .photo-info-content {
    transform: scale(1);
}

.photo-info-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-info-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.photo-info-close i {
    font-size: 1.25rem;
}

.photo-info-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.photo-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.photo-info-item:hover {
    background: #f0f1f3;
}

.photo-info-item > i {
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
}

.photo-info-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.photo-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photo-info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #333;
    word-break: break-all;
}

/* Estadísticas de la foto */
.photo-info-stats {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.photo-info-stats-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.photo-info-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.photo-info-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #333;
    transition: all 0.2s ease;
}

.photo-info-stat-item.clickable {
    cursor: pointer;
}

.photo-info-stat-item.clickable:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.photo-info-stat-item .stat-arrow {
    margin-left: auto;
    font-size: 1rem;
    color: #999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-info-stat-item.clickable:hover .stat-arrow {
    opacity: 1;
}

.photo-info-stat-item i {
    font-size: 1rem;
    color: #667eea;
}

.photo-info-stat-item i.ri-heart-fill {
    color: #ef4444;
}

/* Modal de usuarios (likes/descargas) */
.stat-users-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-users-modal.active {
    opacity: 1;
}

.stat-users-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.stat-users-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.stat-users-modal.active .stat-users-content {
    transform: scale(1);
}

.stat-users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.stat-users-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-users-title i {
    font-size: 1.25rem;
    color: #667eea;
}

.stat-users-title i.ri-heart-fill {
    color: #ef4444;
}

.stat-users-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.stat-users-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.stat-users-close:hover {
    background: #e5e5e5;
}

.stat-users-close i {
    font-size: 1.25rem;
    color: #666;
}

.stat-users-list {
    padding: 12px;
    max-height: calc(70vh - 70px);
    overflow-y: auto;
}

.stat-users-loading,
.stat-users-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    gap: 12px;
}

.stat-users-loading i,
.stat-users-empty i {
    font-size: 2rem;
}

.stat-users-empty p {
    margin: 0;
    font-size: 0.9375rem;
}

.stat-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.stat-user-item:hover {
    background: #f8f9fa;
}

.stat-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e5e5;
}

.stat-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-user-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #333;
}

.stat-user-date {
    font-size: 0.75rem;
    color: #999;
}

.photo-info-copyright {
    text-align: center;
    font-size: 0.6875rem;
    color: #999;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
    .photo-info-content {
        padding: 20px;
        max-width: none;
        width: calc(100% - 32px);
    }
    
    .photo-info-content h3 {
        font-size: 1.125rem;
        margin-bottom: 16px;
    }
    
    .photo-info-item {
        padding: 10px;
        gap: 10px;
    }
    
    .photo-info-item > i {
        font-size: 1.25rem;
    }
    
    .photo-info-label {
        font-size: 0.6875rem;
    }
    
    .photo-info-value {
        font-size: 0.875rem;
    }
}

/* Dropdown de más opciones */
.photo-options-dropdown {
    position: fixed;
    z-index: 10006;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 6px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.photo-options-dropdown.active {
    opacity: 1;
    transform: translateY(0);
}

.photo-option-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
}

.photo-option-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.photo-option-item:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.98);
}

.photo-option-item > i {
    font-size: 1.125rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.photo-option-item > span {
    white-space: nowrap;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .photo-options-dropdown {
        min-width: 180px;
        padding: 4px;
    }
    
    .photo-option-item {
        padding: 9px 10px;
        gap: 8px;
        font-size: 0.8125rem;
    }
    
    .photo-option-item > i {
        font-size: 1rem;
    }
}

/* Modal de reporte */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.75);
}

.report-modal.active {
    opacity: 1;
}

.report-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: calc(100% - 32px);
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: auto;
}

.report-modal.active .report-modal-content {
    transform: scale(1);
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.report-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.report-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-modal-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.report-modal-close i {
    font-size: 1.25rem;
}

.report-form {
    padding: 20px;
}

.report-form-group {
    margin-bottom: 16px;
}

.report-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.report-form-group select,
.report-form-group input,
.report-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.report-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

.report-form-group select:focus,
.report-form-group input:focus,
.report-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.report-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.report-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.report-form-actions button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e5e5e5;
}

.btn-submit {
    background: #667eea;
    color: white;
}

.btn-submit:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .rotating {
    animation: rotating 1s linear infinite;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .report-modal-content {
        width: calc(100% - 24px);
        max-height: 95vh;
    }
    
    .report-modal-header {
        padding: 16px 16px 12px 16px;
    }
    
    .report-modal-header h3 {
        font-size: 1.125rem;
    }
    
    .report-form {
        padding: 16px;
    }
    
    .report-form-group {
        margin-bottom: 14px;
    }
    
    .report-form-group label {
        font-size: 0.8125rem;
    }
    
    .report-form-group select,
    .report-form-group input,
    .report-form-group textarea {
        padding: 12px 10px;
        font-size: 0.9375rem;
    }
    
    .report-form-group select {
        padding: 14px 36px 14px 12px;
        font-size: 1rem;
        min-height: 48px;
        background-size: 14px;
        background-position: right 14px center;
    }
    
    /* Mejorar el tamaño de las opciones en mobile */
    .report-form-group select option {
        padding: 12px;
        font-size: 1rem;
    }
    
    .report-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .report-form-actions button {
        padding: 13px 16px;
        font-size: 0.9375rem;
        min-height: 48px;
    }
}

/* Modal de confirmación de reporte */
.report-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-success-modal.active {
    opacity: 1;
}

.report-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.report-success-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 32px 24px 24px 24px;
    width: calc(100% - 48px);
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.report-success-modal.active .report-success-content {
    transform: scale(1);
}

.report-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-radius: 50%;
    animation: successPop 0.5s ease 0.2s both;
}

.report-success-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.report-success-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.report-success-content p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.btn-success-ok {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-success-ok:active {
    transform: translateY(0);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .report-success-content {
        padding: 28px 20px 20px 20px;
        max-width: 320px;
    }
    
    .report-success-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }
    
    .report-success-icon i {
        font-size: 2rem;
    }
    
    .report-success-content h3 {
        font-size: 1.25rem;
    }
    
    .report-success-content p {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }
    
    .btn-success-ok {
        padding: 11px 16px;
        font-size: 0.875rem;
    }
}

/* Modal de donación */
.donate-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donate-modal.active {
    opacity: 1;
}

.donate-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.donate-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 48px 28px 32px 28px;
    width: calc(100% - 48px);
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.donate-modal.active .donate-modal-content {
    transform: scale(1);
}

.donate-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.donate-modal-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.donate-modal-close i {
    font-size: 1.25rem;
}

.donate-modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.donate-description {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.donate-qr-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.donate-qr-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: block;
}

.btn-download-qr {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-download-qr:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.btn-download-qr:active {
    transform: scale(0.95);
}

.btn-download-qr i {
    font-size: 1.25rem;
}

.donate-thanks {
    font-size: 1.125rem;
    font-weight: 600;
    color: #667eea;
    margin: 0;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .donate-modal-content {
        padding: 44px 20px 28px 20px;
        max-width: 340px;
    }
    
    .donate-modal-content h3 {
        font-size: 1.125rem;
        margin-bottom: 10px;
    }
    
    .donate-description {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }
    
    .donate-qr-image {
        max-width: 240px;
    }
    
    .btn-download-qr {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }
    
    .btn-download-qr i {
        font-size: 1.125rem;
    }
    
    .donate-thanks {
        font-size: 1rem;
    }
}

/* Modal de versión cartoon */
.cartoon-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cartoon-modal.active {
    opacity: 1;
}

.cartoon-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.cartoon-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 48px 28px 28px 28px;
    width: calc(100% - 48px);
    max-width: 700px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-height: 90vh;
    overflow-y: auto;
}

.cartoon-modal.active .cartoon-modal-content {
    transform: scale(1);
}

.cartoon-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.cartoon-modal-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.cartoon-modal-close i {
    font-size: 1.25rem;
}

.cartoon-modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.cartoon-description {
    font-size: 0.9375rem;
    color: #666;
    margin: 0 0 24px 0;
}

.cartoon-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.cartoon-image-box {
    flex: 1;
    max-width: 280px;
    position: relative;
}

.cartoon-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cartoon-preview {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: block;
}

.cartoon-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #667eea;
}

.cartoon-loading i {
    font-size: 2rem;
}

.cartoon-loading span {
    font-size: 0.875rem;
    font-weight: 500;
}

.cartoon-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.5rem;
}

.cartoon-actions {
    display: flex;
    justify-content: center;
}

.btn-cartoon-download {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cartoon-download:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-cartoon-download:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-cartoon-download i {
    font-size: 1.125rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .cartoon-modal-content {
        padding: 44px 20px 24px 20px;
        max-width: none;
    }
    
    .cartoon-modal-content h3 {
        font-size: 1.25rem;
    }
    
    .cartoon-description {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }
    
    .cartoon-comparison {
        flex-direction: column;
        gap: 16px;
    }
    
    .cartoon-image-box {
        max-width: 100%;
    }
    
    .cartoon-divider {
        transform: rotate(90deg);
    }
    
    .cartoon-loading {
        min-height: 180px;
    }
    
    .btn-cartoon-download {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }
}

/* Modal de opciones de impresión */
.print-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.print-options-modal.active {
    opacity: 1;
}

.print-options-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.print-options-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 32px 32px 32px;
    width: calc(100% - 48px);
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.print-options-modal.active .print-options-content {
    transform: scale(1);
}

.print-options-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.print-options-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.print-options-close i {
    font-size: 1.25rem;
}

.print-options-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.print-options-description {
    font-size: 1rem;
    color: #666;
    margin: 0 0 32px 0;
}

.print-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.print-option-card {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 32px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.print-option-card:hover {
    background: #fff;
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.print-option-card:active {
    transform: translateY(-2px);
}

.print-option-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.print-option-icon i {
    font-size: 2rem;
    color: white;
}

.print-option-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.print-option-card p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Toast de confirmación */
.print-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10005;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.print-toast.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.print-toast i {
    font-size: 1.25rem;
    color: #43e97b;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .print-options-content {
        padding: 24px 16px 16px 16px;
        max-width: none;
        border-radius: 12px;
    }
    
    .print-options-content h3 {
        font-size: 1.125rem;
        margin-bottom: 4px;
    }
    
    .print-options-description {
        font-size: 0.8125rem;
        margin-bottom: 16px;
    }
    
    .print-options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .print-option-card {
        padding: 16px 14px;
        gap: 6px;
        border-radius: 10px;
    }
    
    .print-option-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }
    
    .print-option-icon i {
        font-size: 1.25rem;
    }
    
    .print-option-card h4 {
        font-size: 0.9375rem;
    }
    
    .print-option-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .print-toast {
        padding: 16px 24px;
        font-size: 0.9375rem;
        max-width: calc(100% - 48px);
    }
    
    .print-toast i {
        font-size: 1rem;
    }
}

/* Modal de selección de tamaño de foto */
.print-size-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.print-size-modal.active {
    opacity: 1;
}

.print-size-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.print-size-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px 24px 24px 24px;
    width: calc(100% - 48px);
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.print-size-modal.active .print-size-content {
    transform: scale(1);
}

.print-size-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.print-size-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.print-size-close i {
    font-size: 1.25rem;
}

.print-size-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
    text-align: center;
}

.print-size-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
}

.print-size-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.print-size-card {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.print-size-card:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.print-size-card.selected {
    background: #f0f4ff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.print-size-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.print-size-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.print-size-label {
    font-size: 0.8125rem;
    color: #6b7280;
}

.print-size-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #10b981;
}

.print-quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 10px;
}

.print-quantity-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.print-quantity-section label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
}

.print-quantity-section input {
    width: 70px;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.print-quantity-section input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.print-total-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-total-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
}

.print-total-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #667eea;
}

.print-size-actions {
    display: flex;
    gap: 10px;
}

.btn-print-back,
.btn-print-next {
    flex: 1;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-print-back {
    background: #f5f5f5;
    color: #666;
}

.btn-print-back:hover {
    background: #e5e5e5;
}

.btn-print-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-print-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-print-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-print-back i,
.btn-print-next i {
    font-size: 1.125rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .print-size-content {
        padding: 20px 14px 14px 14px;
        max-width: none;
        border-radius: 12px;
        max-height: 95vh;
    }
    
    .print-size-content h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .print-size-description {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }
    
    .print-size-list {
        gap: 6px;
        margin-bottom: 14px;
    }
    
    .print-size-card {
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .print-size-title {
        font-size: 0.875rem;
    }
    
    .print-size-label {
        font-size: 0.6875rem;
    }
    
    .print-size-price {
        font-size: 0.9375rem;
    }
    
    .print-quantity-section {
        padding: 10px 12px;
        margin-bottom: 12px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .print-quantity-left {
        gap: 8px;
    }
    
    .print-quantity-section label {
        font-size: 0.75rem;
    }
    
    .print-quantity-section input {
        width: 55px;
        padding: 6px 8px;
        font-size: 0.8125rem;
    }
    
    .print-total-inline {
        gap: 6px;
    }
    
    .print-total-label {
        font-size: 0.6875rem;
    }
    
    .print-total-value {
        font-size: 0.875rem;
    }
    
    .print-size-actions {
        gap: 8px;
    }
    
    .btn-print-back,
    .btn-print-next {
        padding: 10px 14px;
        font-size: 0.8125rem;
    }
    
    .btn-print-back i,
    .btn-print-next i {
        font-size: 0.9375rem;
    }
}

/* Modal de información de entrega */
.print-delivery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.print-delivery-modal.active {
    opacity: 1;
}

.print-delivery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.print-delivery-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px 24px 24px 24px;
    width: calc(100% - 48px);
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.print-delivery-modal.active .print-delivery-content {
    transform: scale(1);
}

.print-delivery-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.print-delivery-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.print-delivery-close i {
    font-size: 1.25rem;
}

.print-delivery-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
    text-align: center;
}

.print-delivery-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
}

.print-delivery-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.print-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.print-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.print-form-group input,
.print-form-group textarea {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.print-form-group input:focus,
.print-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.print-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.print-order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.print-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
}

.print-summary-row span:last-child {
    font-weight: 600;
    color: #333;
}

.print-summary-total {
    padding-top: 8px;
    border-top: 2px solid #e5e7eb;
    font-size: 0.9375rem;
}

.print-summary-total span {
    color: #667eea;
    font-weight: 700;
}

.print-delivery-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn-delivery-back,
.btn-delivery-next {
    flex: 1;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-delivery-back {
    background: #f5f5f5;
    color: #666;
}

.btn-delivery-back:hover {
    background: #e5e5e5;
}

.btn-delivery-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-delivery-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-delivery-back i,
.btn-delivery-next i {
    font-size: 1rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .print-delivery-content {
        padding: 20px 14px 14px 14px;
        max-width: none;
        border-radius: 12px;
        max-height: 95vh;
    }
    
    .print-delivery-content h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .print-delivery-description {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }
    
    .print-delivery-form {
        gap: 12px;
    }
    
    .print-form-group {
        gap: 4px;
    }
    
    .print-form-group label {
        font-size: 0.75rem;
    }
    
    .print-form-group input,
    .print-form-group textarea {
        padding: 8px 10px;
        font-size: 0.875rem;
    }
    
    .print-form-group textarea {
        min-height: 50px;
    }
    
    .print-order-summary {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .print-summary-row {
        font-size: 0.75rem;
    }
    
    .print-summary-total {
        padding-top: 6px;
        font-size: 0.8125rem;
    }
    
    .print-delivery-actions {
        gap: 8px;
        margin-top: 2px;
    }
    
    .btn-delivery-back,
    .btn-delivery-next {
        padding: 10px 14px;
        font-size: 0.8125rem;
    }
    
    .btn-delivery-back i,
    .btn-delivery-next i {
        font-size: 0.9375rem;
    }
}

/* Modal de información de pago */
.print-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.print-payment-modal.active {
    opacity: 1;
}

.print-payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.print-payment-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px 24px 24px 24px;
    width: calc(100% - 48px);
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.print-payment-modal.active .print-payment-content {
    transform: scale(1);
}

.print-payment-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.print-payment-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.print-payment-close i {
    font-size: 1.25rem;
}

.print-payment-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
    text-align: center;
}

.print-payment-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
}

.print-qr-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.print-qr-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.btn-download-qr {
    position: absolute;
    bottom: 8px;
    right: calc(50% - 108px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-download-qr:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.btn-download-qr:active {
    transform: scale(0.95);
}

.btn-download-qr i {
    font-size: 1.125rem;
}

.print-payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 16px;
}

.print-payment-amount span:first-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.payment-amount-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.print-instructions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9375rem;
}

.instructions-header i {
    font-size: 1.125rem;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instructions-list li {
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.instructions-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #667eea;
    font-weight: 700;
}

.print-payment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-payment-back {
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f5f5f5;
    color: #666;
    flex-shrink: 0;
}

.btn-payment-back:hover {
    background: #e5e5e5;
}

.btn-payment-back i {
    font-size: 1rem;
}

.btn-payment-summary,
.btn-payment-confirm {
    flex: 1;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-payment-summary:hover,
.btn-payment-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-payment-summary:active,
.btn-payment-confirm:active {
    transform: translateY(0);
}

.btn-payment-summary i,
.btn-payment-confirm i {
    font-size: 1rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .print-payment-content {
        padding: 20px 14px 14px 14px;
        max-width: none;
        border-radius: 12px;
        max-height: 95vh;
    }
    
    .print-payment-content h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .print-payment-description {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }
    
    .print-qr-container {
        margin-bottom: 12px;
    }
    
    .print-qr-image {
        width: 160px;
        height: 160px;
    }
    
    .btn-download-qr {
        width: 32px;
        height: 32px;
        bottom: 6px;
        right: calc(50% - 86px);
    }
    
    .btn-download-qr i {
        font-size: 1rem;
    }
    
    .print-payment-amount {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .print-payment-amount span:first-child {
        font-size: 0.8125rem;
    }
    
    .payment-amount-value {
        font-size: 1rem;
    }
    
    .print-instructions {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .instructions-header {
        gap: 6px;
        margin-bottom: 8px;
        font-size: 0.8125rem;
    }
    
    .instructions-header i {
        font-size: 1rem;
    }
    
    .instructions-list {
        gap: 6px;
    }
    
    .instructions-list li {
        font-size: 0.75rem;
        padding-left: 18px;
    }
    
    .instructions-list li::before {
        left: 6px;
    }
    
    .print-payment-actions {
        gap: 8px;
    }
    
    .btn-payment-back {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
    
    .btn-payment-summary,
    .btn-payment-confirm {
        padding: 10px 14px;
        font-size: 0.8125rem;
    }
    
    .btn-payment-back i,
    .btn-payment-summary i,
    .btn-payment-confirm i {
        font-size: 0.9375rem;
    }
}

/* Modal de resumen del pedido */
.order-summary-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-summary-modal.active {
    opacity: 1;
}

.order-summary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.order-summary-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: calc(100% - 32px);
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.order-summary-modal.active .order-summary-content {
    transform: scale(1);
}

.order-summary-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.order-summary-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.order-summary-close i {
    font-size: 1.25rem;
}

.order-summary-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 20px 20px 8px 20px;
}

.order-summary-description {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    padding: 0 20px 20px 20px;
}

.order-summary-sections {
    padding: 0 20px 20px 20px;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.summary-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.summary-section-header i {
    font-size: 1.125rem;
    color: #667eea;
}

.summary-section-header span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.summary-photo-preview {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-photo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
}

.detail-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #666;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    text-align: right;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-top: 8px;
}

.summary-total span:first-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.summary-total-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.order-summary-actions {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px 20px;
}

.order-summary-actions button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-summary-back {
    background: #f5f5f5;
    color: #666;
}

.btn-summary-back:hover {
    background: #e5e5e5;
}

.btn-summary-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-summary-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-summary-confirm:active {
    transform: translateY(0);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .order-summary-content {
        width: calc(100% - 24px);
        max-height: 95vh;
    }
    
    .order-summary-content h3 {
        font-size: 1.125rem;
        padding: 14px 14px 4px 14px;
    }
    
    .order-summary-description {
        font-size: 0.75rem;
        padding: 0 14px 12px 14px;
    }
    
    .order-summary-sections {
        padding: 0 14px 14px 14px;
    }
    
    .summary-section {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .summary-section-header {
        margin-bottom: 8px;
    }
    
    .summary-section-header i {
        font-size: 0.9375rem;
    }
    
    .summary-section-header span {
        font-size: 0.75rem;
    }
    
    .summary-photo-preview {
        max-width: 150px;
    }
    
    .summary-details {
        gap: 6px;
    }
    
    .summary-detail-item {
        padding: 6px 8px;
    }
    
    .detail-label {
        font-size: 0.6875rem;
    }
    
    .detail-value {
        font-size: 0.75rem;
    }
    
    .summary-total {
        padding: 8px 10px;
        margin-top: 6px;
    }
    
    .summary-total span:first-child {
        font-size: 0.75rem;
    }
    
    .summary-total-value {
        font-size: 0.9375rem;
    }
    
    .order-summary-actions {
        padding: 0 14px 14px 14px;
        gap: 8px;
    }
    
    .order-summary-actions button {
        padding: 11px 14px;
        font-size: 0.8125rem;
    }
}

/* Modal de selección de tamaño de retablo */
.retablo-size-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.retablo-size-modal.active {
    opacity: 1;
}

.retablo-size-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.retablo-size-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: calc(100% - 32px);
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.retablo-size-modal.active .retablo-size-content {
    transform: scale(1);
}

.retablo-size-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.retablo-size-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.retablo-size-close i {
    font-size: 1.25rem;
}

.retablo-size-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 20px 20px 8px 20px;
}

.retablo-size-description-header {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    padding: 0 20px 20px 20px;
}

.retablo-size-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.retablo-size-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.retablo-size-card:hover {
    background: #f0f1f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.retablo-size-card.selected {
    background: #eef2ff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.retablo-size-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.retablo-size-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
}

.retablo-size-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
}

.retablo-size-description {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 2px;
}

.retablo-size-price {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    flex-shrink: 0;
    margin-left: 16px;
}

.retablo-total-section {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin: 0 20px 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.retablo-total-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
}

.retablo-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.retablo-size-actions {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px 20px;
}

.retablo-size-actions button {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-retablo-back {
    background: #f5f5f5;
    color: #666;
    flex-shrink: 0;
}

.btn-retablo-back:hover {
    background: #e5e5e5;
}

.btn-retablo-next {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-retablo-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-retablo-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .retablo-size-content {
        width: calc(100% - 24px);
        max-height: 95vh;
    }
    
    .retablo-size-content h3 {
        font-size: 1.25rem;
        padding: 16px 16px 6px 16px;
    }
    
    .retablo-size-description-header {
        font-size: 0.8125rem;
        padding: 0 16px 16px 16px;
    }
    
    .retablo-size-list {
        padding: 0 16px;
        gap: 10px;
        margin-bottom: 14px;
    }
    
    .retablo-size-card {
        padding: 12px;
        gap: 6px;
    }
    
    .retablo-size-info {
        gap: 2px;
    }
    
    .retablo-size-title {
        font-size: 0.9375rem;
    }
    
    .retablo-size-label {
        font-size: 0.75rem;
    }
    
    .retablo-size-description {
        font-size: 0.6875rem;
    }
    
    .retablo-size-price {
        font-size: 0.9375rem;
        margin-left: 12px;
    }
    
    .retablo-total-section {
        padding: 10px 14px;
        margin: 0 16px 14px 16px;
    }
    
    .retablo-total-label {
        font-size: 0.875rem;
    }
    
    .retablo-total-value {
        font-size: 1.125rem;
    }
    
    .retablo-size-actions {
        padding: 0 16px 16px 16px;
        gap: 10px;
    }
    
    .retablo-size-actions button {
        padding: 13px 16px;
        font-size: 0.875rem;
    }
}

/* Tags indicator */
.gallery-lightbox-tags-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    color: white;
    opacity: 0;
    transform: scale(0.8);
}

.gallery-lightbox-tags-indicator.show {
    opacity: 1 !important;
    transform: scale(1) !important;
    visibility: visible !important;
}

.gallery-lightbox-tags-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-lightbox-tags-indicator i {
    font-size: 1.1rem;
}

.gallery-lightbox-tags-indicator .tags-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(0, 0, 0, 0.75);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Tags popup */
.gallery-lightbox-tags-popup {
    position: absolute;
    bottom: 70px;
    left: 16px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10003;
    animation: tagsPopupSlideUp 0.2s ease;
}

@keyframes tagsPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-lightbox-tags-popup::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.tags-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.tags-popup-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.tags-popup-close {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.tags-popup-close:hover {
    background: #f3f4f6;
}

.tags-popup-close i {
    font-size: 1.1rem;
    color: #6b7280;
}

.tags-popup-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.tags-popup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.tags-popup-item:hover {
    background: #f3f4f6;
}

.tags-popup-item i {
    font-size: 1rem;
    color: #6b7280;
}

.tags-popup-item span {
    font-size: 0.9rem;
    color: #111827;
    flex: 1;
}

.tags-popup-item .verified-badge {
    color: #10b981;
    font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .gallery-lightbox-tags-indicator {
        bottom: 12px;
        left: 12px;
        padding: 6px 12px;
    }

    .gallery-lightbox-tags-popup {
        bottom: 60px;
        left: 12px;
        right: auto;
        width: auto;
        max-width: 250px;
        min-width: 180px;
        padding: 10px;
    }

    .tags-popup-header h4 {
        font-size: 0.85rem;
    }

    .tags-popup-item {
        padding: 6px 8px;
    }

    .tags-popup-item span {
        font-size: 0.85rem;
    }
}

/* ========================================
   METADATA INDICATOR & POPUP
======================================== */

/* Metadata indicator - posicionado debajo del indicador de personas */
.gallery-lightbox-metadata-indicator {
    position: absolute;
    bottom: 12px;
    left: 60px; /* Posicionado a la derecha del indicador de personas */
    background: rgba(139, 92, 246, 0.9); /* Color morado para diferenciarlo */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    color: white;
    opacity: 0;
    transform: scale(0.8);
}

/* Reposicionar cuando no hay etiquetas de personas */
.gallery-lightbox-metadata-indicator.no-person-tags {
    left: 12px; /* Tomar la posición del indicador de personas */
}

.gallery-lightbox-metadata-indicator.show {
    opacity: 1;
    transform: scale(1);
}

.gallery-lightbox-metadata-indicator:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-lightbox-metadata-indicator i {
    font-size: 1.1rem;
}

.gallery-lightbox-metadata-indicator .metadata-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #8b5cf6;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(139, 92, 246, 0.9);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
}

/* Metadata popup */
.gallery-lightbox-metadata-popup {
    position: absolute;
    bottom: 70px;
    left: 64px; /* Alineado con el indicador de metadata */
    background: white;
    border-radius: 10px;
    padding: 10px;
    width: max-content;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    z-index: 10003;
    animation: metadataPopupSlideUp 0.2s ease;
}

/* Ajustar posición del popup cuando el indicador está reposicionado */
.gallery-lightbox-metadata-indicator.no-person-tags ~ .gallery-lightbox-metadata-popup,
.gallery-lightbox-image-wrapper:has(.gallery-lightbox-metadata-indicator.no-person-tags) .gallery-lightbox-metadata-popup {
    left: 16px; /* Alineado con el indicador reposicionado */
}

@keyframes metadataPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-lightbox-metadata-popup::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.metadata-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.metadata-popup-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.metadata-popup-close {
    background: none;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.metadata-popup-close:hover {
    background: #f3f4f6;
}

.metadata-popup-close i {
    font-size: 1rem;
    color: #6b7280;
}

.metadata-popup-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.metadata-popup-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.metadata-popup-item:hover {
    background: #f3f4f6;
}

.metadata-popup-item i {
    font-size: 1rem;
    color: #8b5cf6;
}

.metadata-popup-item span {
    font-size: 0.9rem;
    color: #111827;
    flex: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .gallery-lightbox-metadata-indicator {
        bottom: 12px;
        left: 60px;
    }

    .gallery-lightbox-metadata-indicator.no-person-tags {
        left: 12px;
    }

    .gallery-lightbox-metadata-popup {
        bottom: 60px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* ========================================
   PARTICIPANTS INDICATOR & POPUP
======================================== */

/* Participants indicator - posicionado entre personas y metadata */
.gallery-lightbox-participants-indicator {
    position: absolute;
    bottom: 12px;
    left: 60px; /* Posicionado a la derecha del indicador de personas */
    background: rgba(16, 185, 129, 0.9); /* Color verde esmeralda */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    color: white;
    opacity: 0;
    transform: scale(0.8);
}

/* Reposicionar cuando no hay etiquetas de personas */
.gallery-lightbox-participants-indicator.no-person-tags {
    left: 12px;
}

.gallery-lightbox-participants-indicator.show {
    opacity: 1;
    transform: scale(1);
}

.gallery-lightbox-participants-indicator:hover {
    background: rgba(16, 185, 129, 1);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-lightbox-participants-indicator i {
    font-size: 1.1rem;
}

.gallery-lightbox-participants-indicator .participants-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(16, 185, 129, 0.9);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

/* Ajustar posición del metadata indicator cuando hay participantes */
.gallery-lightbox-participants-indicator.show ~ .gallery-lightbox-metadata-indicator {
    left: 108px; /* Mover metadata más a la derecha */
}

.gallery-lightbox-participants-indicator.show.no-person-tags ~ .gallery-lightbox-metadata-indicator {
    left: 60px;
}

/* Participants popup */
.gallery-lightbox-participants-popup {
    position: absolute;
    bottom: 70px;
    left: 64px;
    background: white;
    border-radius: 10px;
    padding: 8px;
    width: max-content;
    max-width: 240px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    z-index: 10003;
    animation: participantsPopupSlideUp 0.2s ease;
}

@keyframes participantsPopupSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-lightbox-participants-popup::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.participants-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.participants-popup-header h4 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 5px;
}

.participants-popup-header h4 i {
    color: #10b981;
    font-size: 0.85rem;
}

.participants-popup-close {
    background: none;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.participants-popup-close:hover {
    background: #f3f4f6;
}

.participants-popup-close i {
    font-size: 0.85rem;
    color: #6b7280;
}

.participants-popup-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.participants-popup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.participants-popup-item:hover {
    background: #f0fdf4;
}

.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

.participant-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.participant-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
}

.participant-type {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Mobile adjustments for participants */
@media (max-width: 768px) {
    .gallery-lightbox-participants-indicator {
        bottom: 12px;
        left: 60px;
    }

    .gallery-lightbox-participants-indicator.no-person-tags {
        left: 12px;
    }

    .gallery-lightbox-participants-indicator.show ~ .gallery-lightbox-metadata-indicator {
        left: 108px;
    }

    .gallery-lightbox-participants-indicator.show.no-person-tags ~ .gallery-lightbox-metadata-indicator {
        left: 60px;
    }

    .gallery-lightbox-participants-popup {
        bottom: 60px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
}


/* Contexto histórico overlay */
.gallery-lightbox-context-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox-context-indicator.visible {
    display: flex;
}

.gallery-lightbox-context-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6);
}

/* Location button */
.gallery-lightbox-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.4rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.625rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    align-self: flex-start;
}

.gallery-lightbox-location-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    border-color: rgba(139, 92, 246, 0.6);
    color: white;
}

.gallery-lightbox-location-btn i {
    font-size: 0.65rem;
}

/* Location map modal */
.gallery-location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-location-modal-overlay.active {
    opacity: 1;
}

.gallery-location-modal {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    will-change: transform, opacity;
}

.gallery-location-modal-overlay.active .gallery-location-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.gallery-location-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-location-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-location-modal-header h3 i {
    color: #8b5cf6;
    font-size: 1.5rem;
}

.gallery-view-all-map-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 2px solid #8b5cf6;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    color: #8b5cf6;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-view-all-map-btn:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.gallery-view-all-map-btn i {
    font-size: 0.875rem;
}

.gallery-location-modal-close {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-location-modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.gallery-location-modal-close i {
    font-size: 1.25rem;
    color: #374151;
}

/* Mapa en pantalla completa */
.gallery-fullscreen-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 100001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-fullscreen-map-overlay.active {
    opacity: 1;
}

.gallery-fullscreen-map-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,255,255,0));
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-fullscreen-map-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-fullscreen-map-title i {
    color: #8b5cf6;
    font-size: 1.5rem;
}

.gallery-fullscreen-map-close {
    background: white;
    border: 2px solid #e5e7eb;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-fullscreen-map-close:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.gallery-fullscreen-map-close i {
    font-size: 1.5rem;
    color: #374151;
}

/* Backdrop para el modal */
.gallery-map-photo-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-map-photo-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Mini modal para info de foto en el mapa - Desktop */
.gallery-map-photo-modal {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-map-photo-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Bottom sheet para mobile */
@media (max-width: 768px) {
    .gallery-map-photo-backdrop {
        background: transparent;
        pointer-events: none !important;
    }
    
    .gallery-map-photo-backdrop.active {
        pointer-events: none !important;
    }
    
    .gallery-map-photo-modal {
        position: fixed;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) !important;
        max-height: 55vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
        margin: 0 !important;
        pointer-events: all !important;
    }
    
    .gallery-map-photo-modal.active {
        transform: translateY(0) !important;
        pointer-events: all !important;
    }
    
    .gallery-map-photo-modal::before {
        content: '';
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
}

.gallery-map-photo-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery-map-photo-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.gallery-map-photo-modal-image {
    width: 100%;
    height: 200px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    position: relative;
}

.gallery-map-photo-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-map-location-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
    max-width: calc(100% - 140px);
}

.gallery-map-location-badge i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.gallery-map-location-badge span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-map-view-gallery-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-map-view-gallery-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-map-view-gallery-btn i {
    font-size: 0.8125rem;
}

.gallery-map-photo-modal-content {
    padding: 1rem;
    max-height: 150px;
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 768px) {
    .gallery-map-photo-modal-image {
        border-radius: 20px 20px 0 0;
        height: 180px;
        margin-top: 20px;
        flex-shrink: 0;
        padding: 0 1rem 1rem 1rem;
        background: white;
    }
    
    .gallery-map-photo-modal-content {
        max-height: none;
        flex: 1;
        overflow-y: auto;
        padding: 0 1rem 1.5rem 1rem;
    }
    
    .gallery-map-photo-modal-title {
        font-size: 1rem;
    }
    
    .gallery-map-photo-modal-description {
        font-size: 0.8125rem;
    }
}

.gallery-map-photo-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    word-wrap: break-word;
}

.gallery-map-photo-modal-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .gallery-view-all-map-btn {
        bottom: 15px;
        right: 15px;
        padding: 0.4rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .gallery-view-all-map-btn i {
        font-size: 0.8125rem;
    }
    
    .gallery-fullscreen-map-header {
        padding: 0.75rem;
    }
    
    .gallery-fullscreen-map-title {
        font-size: 1rem;
    }
    
    .gallery-fullscreen-map-close {
        width: 40px;
        height: 40px;
    }
    
    .gallery-map-photo-modal {
        bottom: 70px;
        max-width: 95%;
    }
    
    .gallery-map-photo-modal-image {
        height: 180px;
    }
}

/* Ocultar marcas de agua del mapa */
.leaflet-control-attribution {
    display: none !important;
}

.leaflet-bottom.leaflet-right {
    display: none !important;
}

/* Custom photo marker */
.custom-photo-marker {
    background: transparent !important;
    border: none !important;
}

.photo-marker-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: markerBounce 0.6s ease-out;
}

@keyframes markerBounce {
    0% { transform: translateY(-100px); opacity: 0; }
    60% { transform: translateY(10px); }
    80% { transform: translateY(-5px); }
    100% { transform: translateY(0); opacity: 1; }
}

.photo-marker-image-wrapper {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-marker-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    z-index: 1;
    pointer-events: none;
}

.photo-marker-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.photo-marker-pin {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid white;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    margin-top: -3px;
}

.gallery-lightbox-context-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-out, visibility 0s linear 0.2s;
    overflow-y: auto;
}

.gallery-lightbox-context-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.2s ease-in, visibility 0s linear 0s;
}

.gallery-lightbox-context-content {
    max-width: 800px;
    width: 100%;
    color: white;
    max-height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

.gallery-lightbox-context-content::-webkit-scrollbar {
    width: 8px;
}

.gallery-lightbox-context-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.gallery-lightbox-context-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.6);
    border-radius: 4px;
}

.gallery-lightbox-context-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

.gallery-lightbox-context-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.gallery-lightbox-context-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-lightbox-context-header i {
    font-size: 2rem;
    color: #a78bfa;
}

.gallery-lightbox-context-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.gallery-lightbox-context-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f3f4f6;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-context-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-lightbox-context-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    color: #c4b5fd;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.gallery-lightbox-context-link:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateX(4px);
    color: #e9d5ff;
}

.gallery-lightbox-context-link i {
    font-size: 1.2rem;
}

/* ========================================
   ENLACES SOCIALES EN CONTEXTO HISTÓRICO
======================================== */

.context-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.context-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.context-social-link:hover {
    background: var(--link-color, #8b5cf6);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: transparent;
}

.context-social-link i {
    font-size: 1.2rem;
}

/* Enlaces personalizados con texto */
.context-social-link-custom {
    width: auto;
    padding: 0 14px;
    border-radius: 21px;
    gap: 8px;
}

.context-social-link-custom span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   REPRODUCTOR DE AUDIO ESTILO WHATSAPP
   Diseño futurista y minimalista
======================================== */

.context-audio-player {
    margin: 1.5rem 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
}

.context-audio-player-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.context-audio-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.context-audio-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.context-audio-play-btn.playing {
    animation: audioPulse 1.5s ease-in-out infinite;
}

@keyframes audioPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(236, 72, 153, 0.6);
    }
}

.context-audio-play-btn i {
    font-size: 1.25rem;
    margin-left: 2px;
}

.context-audio-play-btn.playing i {
    margin-left: 0;
}

.context-audio-waveform {
    flex: 1;
    height: 36px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.context-audio-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.3));
    border-radius: 8px;
    transition: width 0.1s linear;
    z-index: 1;
}

.context-audio-bars {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2px;
    position: relative;
    z-index: 2;
}

.context-audio-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.context-audio-player-inner:hover .context-audio-bar {
    background: rgba(255, 255, 255, 0.6);
}

.context-audio-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 40px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.context-audio-narrator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.context-audio-narrator i {
    color: #a78bfa;
    font-size: 0.9rem;
}

.context-audio-narrator span {
    font-weight: 500;
}

#contextAudioElement {
    display: none;
}

/* Responsive para audio player */
@media (max-width: 768px) {
    .context-audio-player {
        padding: 10px 14px;
    }
    
    .context-audio-play-btn {
        width: 40px;
        height: 40px;
    }
    
    .context-audio-play-btn i {
        font-size: 1.1rem;
    }
    
    .context-audio-waveform {
        height: 32px;
    }
    
    .context-audio-bar {
        width: 2px;
    }
    
    .context-audio-time {
        font-size: 0.75rem;
        min-width: 35px;
    }
}

/* ========================================
   DESKTOP: Ajustes para contexto histórico
   Evita scroll horizontal con fotos verticales
======================================== */
@media (min-width: 769px) {
    /* Imagen más grande en desktop - reducir márgenes */
    .gallery-lightbox-content {
        top: 80px;
        bottom: 100px;
        padding: 15px;
    }
    
    /* Header más compacto */
    .gallery-lightbox-header {
        height: 80px;
        padding-bottom: 10px;
    }
    
    /* Botón cerrar más pequeño */
    .gallery-lightbox-close {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
    
    .gallery-lightbox-close i {
        font-size: 1.2rem;
    }
    
    /* Botones de navegación (flechas) más pequeños */
    .gallery-lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .gallery-lightbox-nav i {
        font-size: 1.5rem;
    }
    
    /* Botones superiores (info, opciones) más pequeños y pegados a la imagen */
    .gallery-lightbox-top-actions {
        top: 85px;
        right: 20px;
        gap: 6px;
    }
    
    .gallery-lightbox-top-action {
        width: 28px;
        height: 28px;
    }
    
    .gallery-lightbox-top-action i {
        font-size: 0.85rem;
    }
    
    /* Botones de acción (like, comentar, compartir, etc.) más pequeños */
    .gallery-lightbox-action {
        width: 32px;
        height: 32px;
    }
    
    .gallery-lightbox-action i {
        font-size: 0.9rem;
    }
    
    .gallery-lightbox-actions {
        gap: 10px;
        bottom: 10px;
        left: 10px;
    }
    
    /* Footer (botones like, comentar, etc) más pegado a la imagen */
    .gallery-lightbox-footer {
        bottom: 95px;
    }
    
    /* Thumbnails más compactos */
    .gallery-lightbox-thumbnails {
        height: 70px;
        padding: 8px 15px;
    }
    
    .gallery-lightbox-context-overlay {
        align-items: flex-start;
        padding-top: 3rem;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    .gallery-lightbox-context-content {
        max-width: 550px;
        max-height: none;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .gallery-lightbox-context-text {
        font-size: 1rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .gallery-lightbox-context-header h3 {
        font-size: 1.35rem;
    }
    
    .gallery-lightbox-context-header i {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .context-social-links {
        gap: 8px;
    }
    
    .context-social-link {
        width: 38px;
        height: 38px;
    }
    
    .context-social-link i {
        font-size: 1.1rem;
    }
    
    .context-social-link-custom {
        padding: 0 12px;
        height: 36px;
    }
    
    .context-social-link-custom span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-lightbox-context-overlay {
        padding: 1rem;
    }
    
    .gallery-lightbox-context-content {
        padding: 0.5rem;
    }
    
    .gallery-lightbox-context-header h3 {
        font-size: 1.25rem;
    }
    
    .gallery-lightbox-context-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .gallery-lightbox-context-indicator {
        width: 36px;
        height: 36px;
        bottom: 12px;
        right: 12px;
        font-size: 1.1rem;
    }
}


/* ========================================
   SHORT DESCRIPTION DISPLAY
======================================== */

/* Botón flotante para agregar/editar descripción corta - Más pequeño y discreto */
.gallery-lightbox-description-btn {
    position: absolute;
    bottom: 60px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.85);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    opacity: 0;
    transform: scale(0.8);
}

.gallery-lightbox-description-btn.show {
    opacity: 1;
    transform: scale(1);
}

.gallery-lightbox-description-btn:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.4);
}

.gallery-lightbox-description-btn i {
    font-size: 0.9375rem;
}

/* Ajustar posición cuando existe contexto histórico */
.gallery-lightbox-description-btn.with-context {
    bottom: 100px; /* Posicionado arriba del botón de contexto histórico */
}

/* Display de descripción corta DENTRO de la imagen - Esquina inferior derecha */
.gallery-lightbox-description {
    position: absolute;
    bottom: 16px;
    right: 16px;
    max-width: 280px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 6px 10px;
    color: white;
    font-size: 0.6875rem;
    line-height: 1.35;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    z-index: 10;
    display: none; /* Oculto por defecto */
}

.gallery-lightbox-description .description-text {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
}

/* Vínculos a microperfiles en la descripción */
.description-microperfil-link {
    cursor: pointer;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.description-microperfil-link:hover {
    color: #93c5fd;
    opacity: 0.8;
}

/* Modal para agregar/editar descripción corta */
.short-description-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.short-description-modal.active {
    opacity: 1;
}

.short-description-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: calc(100% - 32px);
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.short-description-modal.active .short-description-modal-content {
    transform: scale(1);
}

.short-description-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.short-description-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.short-description-modal-header h3 i {
    color: #8b5cf6;
    font-size: 1.375rem;
}

.short-description-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.short-description-modal-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.short-description-modal-close i {
    font-size: 1.25rem;
}

.short-description-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.short-description-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.short-description-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.short-description-form-group label i {
    color: #8b5cf6;
    font-size: 1rem;
}

.short-description-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.short-description-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.short-description-char-count {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
}

.short-description-char-count.warning {
    color: #f59e0b;
}

.short-description-char-count.error {
    color: #ef4444;
}

.short-description-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.short-description-actions button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-description-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-description-cancel:hover {
    background: #e5e5e5;
}

.btn-description-save {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.btn-description-save:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-description-save:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-description-save i,
.btn-description-cancel i {
    font-size: 1rem;
}

/* Botón de eliminar descripción */
.btn-description-delete {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.btn-description-delete:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.btn-description-delete i {
    font-size: 0.9375rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .gallery-lightbox-description-btn {
        bottom: 60px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
    .gallery-lightbox-description-btn.with-context {
        bottom: 100px;
    }
    
    .gallery-lightbox-description-btn i {
        font-size: 0.875rem;
    }
    
    .gallery-lightbox-description {
        bottom: 12px;
        right: 12px;
        max-width: 220px;
        padding: 5px 8px;
        font-size: 0.625rem;
        border-radius: 6px;
    }
    
    .gallery-lightbox-description .description-text {
        -webkit-line-clamp: 2;
        line-height: 1.3;
    }
    
    .short-description-modal-content {
        padding: 20px;
        max-width: none;
        width: calc(100% - 24px);
    }
    
    .short-description-modal-header {
        margin-bottom: 14px;
    }
    
    .short-description-modal-header h3 {
        font-size: 1.125rem;
    }
    
    .short-description-modal-header h3 i {
        font-size: 1.25rem;
    }
    
    .short-description-form {
        gap: 14px;
    }
    
    .short-description-form-group label {
        font-size: 0.8125rem;
    }
    
    .short-description-textarea {
        min-height: 90px;
        padding: 10px;
        font-size: 0.875rem;
    }
    
    .short-description-char-count {
        font-size: 0.6875rem;
    }
    
    .short-description-actions {
        gap: 8px;
        flex-direction: column;
    }
    
    .short-description-actions button {
        padding: 13px 16px;
        font-size: 0.875rem;
    }
    
    .btn-description-delete {
        padding: 11px 14px;
        font-size: 0.8125rem;
        margin-top: 6px;
    }
}

/* Animación de entrada para la descripción - Desde la derecha */
@keyframes descriptionSlideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gallery-lightbox-description.show {
    animation: descriptionSlideIn 0.3s ease;
}

/* ============================================
   CATEGORY PREVIEW MODAL (Mobile only)
   ============================================ */

.category-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10010;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.category-preview-modal.active {
    opacity: 1;
    visibility: visible;
}

.category-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.category-preview-panel {
    position: relative;
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.category-preview-modal.active .category-preview-panel {
    transform: translateY(0);
}

.category-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.category-preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.category-preview-title i {
    color: #6366f1;
    font-size: 1.25rem;
}

.category-preview-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.category-preview-close:hover {
    background: #e2e8f0;
}

.category-preview-close i {
    font-size: 1.25rem;
    color: #64748b;
}

.category-preview-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.category-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: #64748b;
}

.category-preview-loading i {
    font-size: 2rem;
    color: #6366f1;
}

.category-preview-loading .rotating {
    animation: rotating 1s linear infinite;
}

.category-preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    color: #ef4444;
}

.category-preview-error i {
    font-size: 2rem;
}

.category-preview-description {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.category-preview-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    width: fit-content;
}

.category-preview-stats i {
    color: #6366f1;
}

.category-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.category-preview-photo {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.category-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-preview-photo-more .category-preview-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-preview-photo-overlay span {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.category-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.category-preview-btn i {
    font-size: 1.1rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .category-preview-panel {
        background: #1e293b;
    }
    
    .category-preview-header {
        border-bottom-color: #334155;
    }
    
    .category-preview-title {
        color: #f1f5f9;
    }
    
    .category-preview-close {
        background: #334155;
    }
    
    .category-preview-close:hover {
        background: #475569;
    }
    
    .category-preview-close i {
        color: #94a3b8;
    }
    
    .category-preview-description {
        color: #cbd5e1;
    }
    
    .category-preview-stats {
        background: #334155;
        color: #94a3b8;
    }
    
    .category-preview-photo {
        background: #334155;
    }
}
