/* PÁGINA DE GALERÍAS - ESTILOS MODULARES */

.galerias-page-body {
    background: #f9fafb;
    overflow-x: hidden;
    max-width: 100vw;
}

.galerias-page-main {
    min-height: 100vh;
    padding-top: 70px;
    padding-bottom: 80px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* BLOQUES INTERACTIVOS WRAPPER */
.bloques-interactivos-wrapper {
    width: 100%;
    margin: 2rem 0;
    background: transparent;
}

@media (max-width: 768px) {
    .bloques-interactivos-wrapper {
        margin: 1.5rem 0;
    }
}

/* COLECCIONES HEADER */
.colecciones-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 2rem 1rem 2rem;
}

.colecciones-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.title-accent {
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 2px;
}

/* Contenedor con flechas de navegación */
.colecciones-scroll-wrapper {
    position: relative;
}

.colecciones-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.colecciones-scroll::-webkit-scrollbar {
    height: 6px;
}

.colecciones-scroll::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.colecciones-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.colecciones-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Flechas de navegación estilo Disney+ - Modernas y pequeñas */
.colecciones-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.colecciones-nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%) scale(1.1);
}

.colecciones-nav-arrow.visible {
    display: flex;
}

.colecciones-nav-arrow.left {
    left: 8px;
}

.colecciones-nav-arrow.right {
    right: 8px;
}

.colecciones-nav-arrow i {
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 600;
}

.colecciones-nav-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

/* COLECCIÓN ITEM */
.coleccion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.coleccion-item:hover {
    transform: translateY(-2px);
}

.coleccion-item.active .coleccion-icon-wrapper {
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.coleccion-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.coleccion-icon-wrapper.has-image {
    padding: 0;
}

.coleccion-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    overflow: hidden;
}

.coleccion-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.coleccion-nombre {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coleccion-item.active .coleccion-nombre {
    color: #1f2937;
    font-weight: 600;
}

/* Badge de nuevo contenido - verde y mitad afuera */
.coleccion-new-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    border: 2.5px solid white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
    animation: newContentPulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes newContentPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* LOADING STATE */
.colecciones-loading {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.coleccion-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
}

.skeleton-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    width: 70px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* CONTENIDO DE GALERÍAS */
.galerias-content {
    padding: 2rem 0;
}

/* Contenedor principal de galerías */
#galeriasContent {
    width: 100%;
    min-height: 50vh;
    position: relative;
    overflow: visible; /* Permitir scroll normal */
    transition: opacity 0.2s ease;
    isolation: isolate; /* Crear nuevo contexto de apilamiento */
}

/* Animación de carga al cambiar de vista */
#galeriasContent.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Asegurar que cada vista sea independiente */
#galeriasContent > * {
    width: 100%;
    clear: both;
}

.galerias-content .container {
    max-width: 1400px;
    padding: 0 2rem;
}

/* VISTA DE COLECCIÓN */
.coleccion-header-page {
    margin-bottom: 2rem;
}

.btn-back {
    display: none;
}

.coleccion-info {
    margin-bottom: 0;
    text-align: center;
}

.coleccion-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.coleccion-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* BUSCADOR DE COLECCIÓN */
.coleccion-search-wrapper {
    margin-top: 1.25rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.coleccion-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.coleccion-search-container:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.coleccion-search-icon {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-right: 0.75rem;
    transition: color 0.3s ease;
}

.coleccion-search-container:focus-within .coleccion-search-icon {
    color: #8b5cf6;
}

.coleccion-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #1f2937;
    background: transparent;
    font-family: 'Inter', sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.coleccion-search-input:focus {
    outline: none;
    box-shadow: none;
}

.coleccion-search-input::placeholder {
    color: #9ca3af;
}

.coleccion-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.coleccion-search-clear:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.coleccion-search-clear i {
    font-size: 1rem;
    color: #6b7280;
}

.coleccion-search-results {
    margin-top: 0.75rem;
    padding: 0.625rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideDown 0.3s ease;
}

.coleccion-search-results.no-results {
    background: #fef2f2;
    border-color: #fecaca;
}

.search-results-text {
    font-size: 0.875rem;
    color: #166534;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coleccion-search-results.no-results .search-results-text {
    color: #991b1b;
}

.search-results-text i {
    font-size: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ocultar galerías en búsqueda */
.search-hidden {
    display: none !important;
}

/* BLOQUES */
.bloque-section {
    margin-bottom: 3rem;
}

.bloque-header {
    margin-bottom: 1.5rem;
}

.bloque-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bloque-ultimas-galerias .bloque-title {
    margin-bottom: 0;
}

.btn-ver-todas {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #8b5cf6;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    width: fit-content;
}

.btn-ver-todas:hover {
    color: #7c3aed;
    transform: translateX(2px);
}

.btn-ver-todas i {
    font-size: 0.75rem;
}

.bloque-title-wrapper {
    width: 100%;
}

.bloque-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.bloque-description {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   ÚLTIMAS GALERÍAS AGREGADAS
======================================== */
.bloque-ultimas-galerias {
    margin-bottom: 0.5rem;
}

/* Reducir espacio entre últimas galerías y el siguiente bloque */
.bloque-ultimas-galerias + .container {
    margin-top: -1.5rem;
}

.ultimas-galerias-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.ultima-galeria-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.ultima-galeria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ultima-galeria-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #f3f4f6;
}

.ultima-galeria-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ultima-galeria-card:hover .ultima-galeria-image img {
    transform: scale(1.05);
}

.ultima-galeria-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.ultima-galeria-placeholder i {
    font-size: 2rem;
    color: #d1d5db;
}

.ultima-galeria-info {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ultima-galeria-titulo {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ultima-galeria-contador {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.ultima-galeria-contador i {
    font-size: 0.9375rem;
    color: #9ca3af;
}

.ultima-galeria-contador .counter-label {
    color: #9ca3af;
}

/* Badge de Tribu Colab en últimas galerías */
.ultima-galeria-badge-tribu {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    z-index: 2;
}

.ultima-galeria-badge-tribu i {
    font-size: 0.75rem;
}

/* Badge de galería privada en últimas galerías */
.ultima-galeria-badge-privada {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.ultima-galeria-badge-privada i {
    font-size: 0.7rem;
}

/* Badge de galería solo para registrados en últimas galerías */
.ultima-galeria-badge-registrados {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.ultima-galeria-badge-registrados i {
    font-size: 0.7rem;
}

/* Badge de galería premium en últimas galerías */
.ultima-galeria-badge-premium {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

.ultima-galeria-badge-premium i {
    font-size: 0.7rem;
}

/* Estilo para galería solo-registrados (clickeable) */
.ultima-galeria-card.ultima-galeria-solo-registrados {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Galería bloqueada por temporizador */
.ultima-galeria-card.ultima-galeria-locked {
    cursor: not-allowed;
    position: relative;
}

.ultima-galeria-card.ultima-galeria-locked .ultima-galeria-image img {
    filter: grayscale(50%) brightness(0.7);
}

.ultima-galeria-timer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: white;
    z-index: 3;
}

.ultima-galeria-timer-overlay i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.ultima-galeria-timer-countdown {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ========================================
   GRID CLÁSICO
======================================== */
.galerias-grid.grid-clasico {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* GALERÍA CARD */
.galeria-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.galeria-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.galeria-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* Aspect ratio 3:2 */
    overflow: hidden;
    background: #f3f4f6;
}

.galeria-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-card:hover .galeria-image {
    transform: scale(1.03);
}

.galeria-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.galeria-placeholder i {
    font-size: 3rem;
    color: #d1d5db;
}

.galeria-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
    z-index: 1;
}

.galeria-badge.especial {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
}

.galeria-badge.temporal {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 2px 8px rgba(250, 112, 154, 0.4);
    animation: temporalPulse 2s ease-in-out infinite;
}

.galeria-badge.categoria-badge {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

@keyframes temporalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.galeria-badge i {
    font-size: 0.875rem;
}

/* Contador de fotos en esquina inferior derecha */
.galeria-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    z-index: 1;
}

.galeria-counter i {
    font-size: 1rem;
}

.galeria-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.galeria-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.galeria-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer con metadata */
.galeria-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.galeria-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.galeria-meta-item i {
    font-size: 0.9375rem;
    color: #9ca3af;
}

.galeria-meta-item span {
    line-height: 1.4;
}

/* EMPTY STATE */
.galerias-empty {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.galerias-empty i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.galerias-empty h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.galerias-empty p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.btn-back-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-back-inline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ========================================
   CARRUSEL HORIZONTAL
======================================== */
.carrusel-container {
    position: relative;
    width: 100%;
}

.carrusel-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carrusel-scroll::-webkit-scrollbar {
    display: none;
}

.galeria-carrusel-item {
    flex: 0 0 320px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-carrusel-item:hover {
    transform: translateY(-2px);
}

.galeria-carrusel-image {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
}

.galeria-carrusel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-carrusel-item:hover .galeria-carrusel-image img {
    transform: scale(1.03);
}

/* Contador en esquina inferior derecha */
.galeria-carrusel-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    z-index: 2;
}

.galeria-carrusel-counter .stat-item {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Título dentro de la imagen (desktop) */
.galeria-carrusel-info-desktop {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

.galeria-carrusel-info-desktop h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Título debajo de la imagen (mobile) - oculto en desktop */
.galeria-carrusel-info-mobile {
    display: none;
}

/* Botones de navegación juntos arriba a la derecha */
.carrusel-nav-buttons {
    position: absolute;
    top: -50px;
    right: 0;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carrusel-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.carrusel-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.carrusel-btn i {
    font-size: 1.25rem;
    color: #374151;
}

/* Botón prev oculto al inicio */
.carrusel-prev {
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   MOSAICO PINTEREST
======================================== */
.galerias-grid.mosaico-pinterest {
    column-count: 3;
    column-gap: 1rem;
}

.galeria-mosaico-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
    width: 100%;
    position: relative;
}

.galeria-mosaico-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.galeria-mosaico-image {
    position: relative;
    width: 100%;
    background: #f3f4f6;
}

.galeria-mosaico-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-mosaico-item:hover .galeria-mosaico-image img {
    transform: scale(1.03);
}

/* Overlay con info */
.galeria-mosaico-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 2;
}

.galeria-mosaico-info {
    flex: 1;
    min-width: 0;
}

.galeria-mosaico-titulo {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.galeria-mosaico-fecha {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: block;
}

.galeria-mosaico-counter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.galeria-mosaico-counter i {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ========================================
   LISTA DETALLADA (Carrusel Horizontal)
======================================== */
.lista-detallada-container {
    position: relative;
    width: 100%;
}

.lista-detallada-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lista-detallada-scroll::-webkit-scrollbar {
    display: none;
}

.lista-detallada-scroll .galeria-card {
    flex: 0 0 320px;
    min-width: 320px;
}

/* Botón Ver Más */
.ver-mas-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-ver-mas:hover {
    background: #f9fafb;
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.ver-mas-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.galeria-grid-item,
.galeria-mosaico-wrapper {
    transition: opacity 0.3s ease;
}

/* Wrapper del mosaico - debe ocupar todo el ancho de la columna */
.mosaico-pinterest .galeria-mosaico-wrapper {
    display: block;
    width: 100%;
    break-inside: avoid;
}

/* SPINNER EN CONTADOR */
.counter-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.counter-spinner i {
    font-size: inherit;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.counter-value {
    transition: opacity 0.3s ease;
}

/* SKELETON LOADING */
.galeria-card.skeleton {
    pointer-events: none;
}

.galeria-card.skeleton .skeleton-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.galeria-card.skeleton .galeria-title,
.galeria-card.skeleton .galeria-description {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent !important;
    border-radius: 4px;
    user-select: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .galerias-page-main {
        padding-top: 60px;
        padding-bottom: 0;
    }
    
    .colecciones-header {
        top: 60px;
        padding: 2.5rem 1rem 1rem 1rem;
    }
    
    .colecciones-title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    /* Ocultar flechas en mobile */
    .colecciones-nav-arrow {
        display: none !important;
    }
    
    .galerias-content .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Botón volver oculto en mobile */
    .btn-back {
        display: none !important;
    }
    
    .colecciones-scroll {
        gap: 1rem;
    }
    
    .coleccion-item {
        min-width: 70px;
    }
    
    .coleccion-icon-wrapper {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }
    
    .coleccion-icon-wrapper i {
        font-size: 1.75rem;
    }
    
    .coleccion-nombre {
        font-size: 0.7rem;
        max-width: 70px;
    }
    
    /* Bloques en mobile */
    .bloque-section {
        margin-bottom: 2.5rem;
    }
    
    .bloque-title {
        font-size: 1.5rem;
    }
    
    .bloque-description {
        font-size: 0.875rem;
        max-width: 85%;
    }
    
    /* Título del bloque de últimas galerías más pequeño en mobile */
    .bloque-ultimas-galerias .bloque-title {
        font-size: 1.25rem;
    }
    
    /* Título de colección más pequeño en mobile */
    .coleccion-title {
        font-size: 1.75rem;
    }
    
    .coleccion-description {
        font-size: 0.9375rem;
    }
    
    /* Buscador de colección en mobile */
    .coleccion-search-wrapper {
        margin-top: 0.5rem;
        max-width: 100%;
    }
    
    .coleccion-search-container {
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }
    
    .coleccion-search-icon {
        font-size: 1.125rem;
        margin-right: 0.625rem;
    }
    
    .coleccion-search-input {
        font-size: 0.9375rem;
    }
    
    .coleccion-search-clear {
        width: 26px;
        height: 26px;
    }
    
    .coleccion-search-clear i {
        font-size: 0.9375rem;
    }
    
    .coleccion-search-results {
        margin-top: 0.625rem;
        padding: 0.5rem 0.875rem;
        border-radius: 10px;
    }
    
    .search-results-text {
        font-size: 0.8125rem;
    }
    
    .search-results-text i {
        font-size: 0.9375rem;
    }
    
    /* Últimas galerías en mobile - scroll horizontal */
    .ultimas-galerias-grid {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #d1d5db #f3f4f6;
        padding-bottom: 0.5rem;
    }
    
    .ultimas-galerias-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .ultimas-galerias-grid::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 2px;
    }
    
    .ultimas-galerias-grid::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 2px;
    }
    
    .ultima-galeria-card {
        flex: 0 0 160px;
        min-width: 160px;
    }
    
    .ultima-galeria-image {
        padding-top: 100%;
    }
    
    .ultima-galeria-info {
        padding: 0.625rem;
    }
    
    .ultima-galeria-titulo {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }
    
    .ultima-galeria-contador {
        font-size: 0.75rem;
    }
    
    /* Grid Clásico en mobile - 2 COLUMNAS COMPACTAS */
    .galerias-grid.grid-clasico {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    .galeria-card {
        border-radius: 8px;
        width: 100%;
        margin: 0;
    }
    
    .galeria-image-wrapper {
        padding-top: 100%; /* Cuadrado perfecto */
    }
    
    .galeria-content {
        padding: 0.5rem;
    }
    
    .galeria-title {
        font-size: 0.8125rem;
        margin-bottom: 0.125rem;
        -webkit-line-clamp: 2;
        line-height: 1.2;
    }
    
    .galeria-description {
        display: none; /* Ocultar descripción en mobile */
    }
    
    .galeria-footer {
        gap: 0.25rem;
        padding-top: 0.375rem;
        border-top: none;
    }
    
    .galeria-meta-item {
        font-size: 0.6875rem;
    }
    
    .galeria-meta-item i {
        font-size: 0.75rem;
    }
    
    .galeria-badge {
        top: 0.375rem;
        right: 0.375rem;
        padding: 0.1875rem 0.375rem;
        font-size: 0.625rem;
        border-radius: 4px;
    }
    
    .galeria-counter {
        bottom: 0.375rem;
        right: 0.375rem;
        padding: 0.1875rem 0.375rem;
        font-size: 0.6875rem;
        border-radius: 4px;
    }
    
    .galeria-counter i {
        font-size: 0.75rem;
    }
    
    .galeria-title {
        font-size: 1rem;
    }
    
    .galeria-description {
        font-size: 0.8125rem;
    }
    
    /* Carrusel en mobile */
    .carrusel-nav-buttons {
        display: none;
    }
    
    .galeria-carrusel-item {
        flex: 0 0 280px;
    }
    
    .galeria-carrusel-image {
        height: 200px;
        margin-bottom: 0;
    }
    
    .carrusel-scroll {
        gap: 1rem;
        scrollbar-width: thin;
        scrollbar-color: #d1d5db #f3f4f6;
    }
    
    .carrusel-scroll::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    
    .carrusel-scroll::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 2px;
    }
    
    .carrusel-scroll::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 2px;
    }
    
    /* En mobile: ocultar título desktop y mostrar título mobile */
    .galeria-carrusel-info-desktop {
        display: none !important;
    }
    
    .galeria-carrusel-info-mobile {
        display: block !important;
        padding: 0.5rem 0.25rem 0 0.25rem;
    }
    
    .galeria-carrusel-info-mobile h3 {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #1f2937;
        margin: 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* En mobile: contador dentro de la imagen */
    .galeria-carrusel-counter {
        top: auto !important;
        bottom: 0.75rem !important;
        right: 0.75rem !important;
    }
    
    /* Mosaico en mobile - Grid 2x2 */
    .galerias-grid.mosaico-pinterest {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        column-count: unset;
    }
    
    .galeria-mosaico-item {
        margin-bottom: 0;
        border-radius: 10px;
    }
    
    .galeria-mosaico-image img {
        aspect-ratio: 1;
        object-fit: cover;
        height: 100%;
    }
    
    .galeria-mosaico-overlay {
        padding: 0.5rem;
    }
    
    .galeria-mosaico-titulo {
        font-size: 0.8125rem;
        -webkit-line-clamp: 1;
    }
    
    .galeria-mosaico-fecha {
        font-size: 0.625rem;
    }
    
    .galeria-mosaico-counter {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .galeria-mosaico-counter i {
        font-size: 0.75rem;
    }
    
    /* Botón Ver Más en mobile */
    .ver-mas-container {
        margin-top: 1.5rem;
    }
    
    .btn-ver-mas {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Lista Detallada en mobile */
    .lista-detallada-scroll {
        gap: 1rem;
        scrollbar-width: thin;
        scrollbar-color: #d1d5db #f3f4f6;
    }
    
    .lista-detallada-scroll::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    
    .lista-detallada-scroll::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 2px;
    }
    
    .lista-detallada-scroll::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 2px;
    }
    
    .lista-detallada-scroll .galeria-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Últimas galerías en tablet */
    .ultimas-galerias-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Grid Clásico en tablet */
    .galerias-grid.grid-clasico {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    /* Carrusel en tablet */
    .galeria-carrusel-item {
        flex: 0 0 350px;
    }
    
    .carrusel-nav-buttons {
        top: -45px;
    }
    
    /* Mosaico en tablet */
    .galerias-grid.mosaico-pinterest {
        column-count: 3;
        column-gap: 1rem;
    }
    
    /* Lista en tablet */
    .lista-detallada-scroll .galeria-card {
        flex: 0 0 300px;
        min-width: 300px;
    }
}

@media (min-width: 1400px) {
    /* Grid Clásico en pantallas grandes - mantener 3 columnas */
    .galerias-grid.grid-clasico {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Carrusel en pantallas grandes */
    .galeria-carrusel-item {
        flex: 0 0 450px;
    }
    
    .galeria-carrusel-image {
        height: 280px;
    }
    
    /* Mosaico en pantallas grandes */
    .galerias-grid.mosaico-pinterest {
        column-count: 3;
        column-gap: 1.25rem;
    }
    
    /* Lista en pantallas grandes */
    .lista-detallada-scroll .galeria-card {
        flex: 0 0 350px;
        min-width: 350px;
    }
}


/* TEMPORIZADOR DE GALERÍA - MINIMALISTA */
.galeria-locked {
    cursor: default !important;
    opacity: 0.95;
}

.galeria-locked .galeria-image-wrapper {
    position: relative;
}

.galeria-timer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
    padding: 1.5rem;
}

.timer-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.timer-icon {
    font-size: 2.5rem;
    color: #fbbf24;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.timer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.timer-countdown {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.1em;
}

/* Responsive timer */
@media (max-width: 768px) {
    .galeria-timer-overlay {
        padding: 0.75rem;
    }
    
    .timer-content {
        gap: 0.5rem;
    }
    
    .timer-icon {
        font-size: 1.5rem;
    }
    
    .timer-title {
        font-size: 0.8125rem;
        line-height: 1.2;
    }
    
    .timer-countdown {
        font-size: 1rem;
    }
}


/* Badge temporal más pequeño en mosaico mobile */
@media (max-width: 768px) {
    .mosaico-pinterest .galeria-mosaico-item .galeria-badge.temporal {
        transform: scale(0.75);
        transform-origin: top right;
    }
}


/* Badge de Iniciar sesión */
.galeria-badge.login-required {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 2px 8px rgba(168, 237, 234, 0.4);
}

/* ============================================
   MODAL DE CLAVE PRIVADA
   ============================================ */

.modal-clave-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-clave-container {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 360px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-clave-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #999;
}

.modal-clave-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

.modal-clave-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-clave-icon i {
    font-size: 2rem;
    color: white;
}

.modal-clave-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.25rem;
}

.modal-clave-subtitle {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-clave-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-clave-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-clave-input-group i {
    position: absolute;
    left: 0.875rem;
    font-size: 1.125rem;
    color: #999;
    pointer-events: none;
}

.modal-clave-input {
    width: 100%;
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-clave-input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.modal-clave-input.error {
    border-color: #ff4757;
    animation: shake 0.5s ease;
}

.modal-clave-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: #fff5f5;
    border: 1px solid #ffebee;
    border-radius: 8px;
    color: #ff4757;
    font-size: 0.8125rem;
}

.modal-clave-error i {
    font-size: 1rem;
}

.modal-clave-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.modal-clave-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
}

.modal-clave-btn:active {
    transform: translateY(0);
}

.modal-clave-btn i {
    font-size: 1.125rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-clave-container {
        padding: 1.5rem;
        max-width: 340px;
    }
    
    .modal-clave-title {
        font-size: 1.25rem;
    }
    
    .modal-clave-icon {
        width: 56px;
        height: 56px;
    }
    
    .modal-clave-icon i {
        font-size: 1.75rem;
    }
}

/* ============================================
   SKELETONS MEJORADOS
   ============================================ */

/* Skeleton de colecciones */
.coleccion-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
}

.coleccion-skeleton .skeleton-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.coleccion-skeleton .skeleton-text {
    width: 70px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Skeleton de última galería */
.ultima-galeria-card.skeleton {
    pointer-events: none;
}

.ultima-galeria-card.skeleton .skeleton-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.ultima-galeria-card.skeleton .skeleton-text {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Skeleton general mejorado */
.skeleton-text {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    user-select: none;
}

/* Responsive skeletons */
@media (max-width: 768px) {
    .coleccion-skeleton .skeleton-icon {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }
    
    .coleccion-skeleton .skeleton-text {
        width: 60px;
        height: 10px;
    }
}


/* ============================================
   TAGS POPULARES
   ============================================ */

.popular-tags-section {
    margin-top: 0;
}

/* Espacio superior solo en desktop */
@media (min-width: 769px) {
    .popular-tags-section {
        margin-top: 2.5rem;
    }
}

/* Contenedor con flechas de navegación */
.popular-tags-container {
    position: relative;
}

.popular-tags-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

.popular-tags-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}

/* Flechas de navegación */
.tags-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.tags-nav-arrow:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.tags-nav-arrow.visible {
    display: flex;
}

.tags-nav-arrow.tags-nav-left {
    left: -12px;
}

.tags-nav-arrow.tags-nav-right {
    right: -12px;
}

.tags-nav-arrow i {
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 600;
}

.tags-nav-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

/* Tarjetas de tags */
.popular-tag-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
    min-width: 300px;
}

.popular-tag-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.popular-tag-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.popular-tag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-tag-card:hover .popular-tag-image img {
    transform: scale(1.05);
}

.popular-tag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.popular-tag-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.popular-tag-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.popular-tag-description {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-tag-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #8b5cf6;
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.popular-tag-count i {
    font-size: 1.1rem;
}

/* Tarjeta "Ver todas" */
.ver-todas-card {
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ver-todas-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.ver-todas-content {
    text-align: center;
    color: #111827;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.ver-todas-content i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    color: #8b5cf6;
}

.ver-todas-content h3 {
    font-size: 1.625rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: #111827;
}

.ver-todas-content p {
    font-size: 1.0625rem;
    margin: 0;
    font-weight: 500;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    /* Ocultar flechas en mobile */
    .tags-nav-arrow {
        display: none !important;
    }

    .popular-tag-card {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .popular-tag-image {
        height: 150px;
    }

    .popular-tag-content {
        padding: 0.875rem;
        gap: 0.25rem;
    }

    .popular-tag-name {
        font-size: 0.9375rem;
    }

    .popular-tag-description {
        font-size: 0.75rem;
    }

    .popular-tag-count {
        font-size: 0.8125rem;
        margin-top: 0.125rem;
    }

    .ver-todas-content {
        padding: 1.75rem;
    }

    .ver-todas-content i {
        font-size: 3rem;
    }

    .ver-todas-content h3 {
        font-size: 1.375rem;
    }

    .ver-todas-content p {
        font-size: 1rem;
    }
}


/* ============================================
   BLOQUE CTA MAPA DE FOTOS
   ============================================ */

.map-cta-section {
    padding: 2rem 0;
    background: transparent;
}

.map-cta-card {
    position: relative;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}

.map-cta-content {
    position: relative;
    z-index: 1;
    color: white;
}

.map-cta-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.map-cta-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.map-cta-icon i {
    font-size: 1.5rem;
    color: white;
}

.map-cta-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.map-cta-description {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
}

.map-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #8b5cf6;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #fef3c7;
}

.map-cta-button i:first-child {
    font-size: 1.25rem;
}

.map-cta-button i:last-child {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.map-cta-button:hover i:last-child {
    transform: translateX(4px);
}

.map-cta-decoration {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0.15;
    pointer-events: none;
}

.map-cta-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 1024px) {
    .map-cta-card {
        padding: 1.5rem 1.75rem;
    }
    
    .map-cta-title {
        font-size: 1.25rem;
    }
    
    .map-cta-description {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .map-cta-section {
        padding: 1.5rem 0;
    }
    
    .map-cta-card {
        padding: 1.5rem;
    }
    
    .map-cta-header {
        gap: 0.75rem;
        margin-bottom: 0.625rem;
    }
    
    .map-cta-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .map-cta-icon i {
        font-size: 1.25rem;
    }
    
    .map-cta-title {
        font-size: 1.125rem;
    }
    
    .map-cta-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .map-cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .map-cta-decoration {
        display: none;
    }
}

/* ============================================
   BANNER TRIBU COLAB
   ============================================ */

.tribu-colab-banner-section {
    padding: 1.5rem 0 2.5rem 0;
    background: transparent;
}

.tribu-colab-banner {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 27, 75, 0.35);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.tribu-banner-content {
    position: relative;
    z-index: 2;
}

.tribu-banner-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tribu-banner-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.tribu-banner-icon i {
    font-size: 1.625rem;
    color: white;
}

.tribu-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tribu-banner-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(90deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tribu-banner-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}

.tribu-banner-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem 0;
    max-width: 480px;
}

.tribu-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tribu-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

.tribu-banner-btn.primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.tribu-banner-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
}

.tribu-banner-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.tribu-banner-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.tribu-banner-btn i {
    font-size: 1.125rem;
}

/* Preview de galerías */
.tribu-banner-preview {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    align-self: stretch;
    align-items: center;
}

.tribu-preview-thumb {
    width: 115px;
    height: 115px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tribu-preview-thumb:hover {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tribu-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decoración */
.tribu-banner-decoration {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    pointer-events: none;
    overflow: hidden;
}

.tribu-deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.tribu-deco-circle:first-child {
    width: 200px;
    height: 200px;
    right: -60px;
    top: -40px;
}

.tribu-deco-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    right: 40px;
    bottom: -50px;
    border-color: rgba(236, 72, 153, 0.15);
}

.tribu-deco-dots {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 12px 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .tribu-colab-banner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .tribu-banner-preview {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .tribu-colab-banner-section {
        padding: 1rem 0 2rem 0;
    }
    
    .tribu-colab-banner {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .tribu-banner-header {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .tribu-banner-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .tribu-banner-icon i {
        font-size: 1.375rem;
    }
    
    .tribu-banner-title {
        font-size: 1.25rem;
    }
    
    .tribu-banner-subtitle {
        font-size: 0.8125rem;
    }
    
    .tribu-banner-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .tribu-banner-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .tribu-banner-btn {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
        border-radius: 10px;
    }
    
    .tribu-banner-btn i {
        font-size: 1rem;
    }
    
    .tribu-banner-preview {
        gap: 0.375rem;
    }
    
    .tribu-preview-thumb {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
    
    .tribu-banner-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .tribu-banner-preview {
        display: none;
    }
    
    .tribu-banner-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .tribu-banner-btn i {
        font-size: 0.875rem;
    }
}

/* ========================================
   FOOTER
======================================== */
.page-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 0.875rem 1rem;
    margin-top: 1rem;
    margin-bottom: 0; /* Sin espacio extra después del footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.footer-link {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: #4b5563;
    text-decoration: underline;
}

/* ========================================
   MODAL DE TÉRMINOS Y CONDICIONES
======================================== */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.terms-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terms-modal {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.terms-modal-overlay.active .terms-modal {
    transform: scale(1);
}

.terms-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.terms-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.terms-modal-close {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 1.25rem;
}

.terms-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.terms-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.terms-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.terms-update {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 0.75rem;
}

.terms-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.terms-section p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.terms-section ul li {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4b5563;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.terms-section ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #8b5cf6;
    font-weight: bold;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list li i {
    color: #8b5cf6;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Deshabilitar selección de texto en mobile */
    .galerias-page-body {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    .page-footer {
        padding: 0.5rem 1rem 55px 1rem; /* Reducido al mínimo */
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .footer-link {
        font-size: 0.8125rem;
    }

    .terms-modal {
        max-height: 80vh;
        border-radius: 12px;
    }

    .terms-modal-header {
        padding: 1rem;
    }

    .terms-modal-header h2 {
        font-size: 1.25rem;
    }

    .terms-modal-body {
        padding: 1rem;
    }

    .terms-section h3 {
        font-size: 1rem;
    }

    .terms-section h4 {
        font-size: 0.9375rem;
    }

    .terms-section p,
    .terms-section ul li {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .terms-modal-overlay {
        padding: 0.5rem;
    }

    .terms-modal {
        border-radius: 8px;
    }
}

/* ========================================
   BOTÓN ÚNETE AL EQUIPO (PEQUEÑO)
======================================== */
.unete-equipo-button-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
    margin: 0.5rem 0 0 0;
}

.unete-equipo-button-small:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.unete-equipo-button-small:active {
    transform: translateY(0);
}

.unete-equipo-button-small i:first-child {
    font-size: 1rem;
}

.unete-equipo-button-small i:last-child {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.unete-equipo-button-small:hover i:last-child {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .unete-equipo-button-small {
        font-size: 0.75rem;
        padding: 0.4375rem 0.75rem;
        gap: 0.375rem;
    }
    
    .unete-equipo-button-small i:first-child {
        font-size: 0.875rem;
    }
    
    .unete-equipo-button-small i:last-child {
        font-size: 0.75rem;
    }
}

/* Categorías en bloques mixtos */
.categoria-en-bloque {
    flex: 0 0 auto;
    min-width: 0;
}

.galerias-grid .categoria-en-bloque {
    width: 100%;
}

.popular-tag-placeholder {
    background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-tag-placeholder i {
    font-size: 3rem;
    color: #ec4899;
    opacity: 0.5;
}

/* Ajustes para grid clásico con categorías */
.grid-clasico .categoria-en-bloque {
    display: flex;
    flex-direction: column;
}

/* Ajustes para mosaico con categorías */
.mosaico-pinterest .categoria-en-bloque {
    display: flex;
    flex-direction: column;
}

/* CHECKBOX PARA PERMITIR DESCARGAS */
.permiso-option-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.permiso-option-checkbox:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.permiso-option-checkbox.active {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.permiso-option-checkbox input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8b5cf6;
    flex-shrink: 0;
}

.permiso-option-checkbox .permiso-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.permiso-option-checkbox .permiso-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.permiso-option-checkbox .permiso-info {
    flex: 1;
}

.permiso-option-checkbox .permiso-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.permiso-option-checkbox .permiso-description {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ========================================
   GALERÍAS DE AUDIO - Tarjetas estilo Spotify
   ======================================== */

/* Card de Audio */
.galeria-audio-card {
    position: relative;
}

.galeria-audio-card .galeria-image-wrapper {
    border-radius: 8px;
}

.galeria-audio-cover {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.galeria-audio-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

.galeria-audio-placeholder i {
    font-size: 3.5rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Badge de Audio */
.galeria-badge.audio-badge {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.4);
}

/* Contador de pistas */
.galeria-counter.audio-counter {
    background: rgba(29, 185, 84, 0.9);
}

.galeria-counter.audio-counter i {
    color: white;
}

/* Overlay de play */
.galeria-audio-play-overlay {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.galeria-audio-card:hover .galeria-audio-play-overlay {
    opacity: 1;
    transform: translateY(0);
}

.galeria-audio-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1db954;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.galeria-audio-play-btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.galeria-audio-play-btn i {
    margin-left: 2px; /* Ajuste visual para centrar el icono de play */
}

/* Meta de género */
.galeria-meta-item.audio-genre {
    color: #1db954;
}

.galeria-meta-item.audio-genre i {
    color: #1db954;
}

/* Hover effect especial para audio cards */
.galeria-audio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(29, 185, 84, 0.15);
}

.galeria-audio-card:hover .galeria-image {
    transform: scale(1.05);
}

/* Ocultar contador normal cuando hay overlay de play */
.galeria-audio-card:hover .galeria-counter.audio-counter {
    opacity: 0;
}

/* ========================================
   GALERÍAS DE AUDIO - Responsive
   ======================================== */
@media (max-width: 768px) {
    .galeria-audio-play-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    .galeria-audio-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .galeria-audio-card:hover .galeria-counter.audio-counter {
        opacity: 1;
    }
}

/* ========================================
   GALERÍAS DE VIDEO - Solo estilos visuales
   La estructura es IDÉNTICA a las tarjetas normales
   ======================================== */

/* Placeholder de video - fondo morado */
.galeria-video-placeholder {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%) !important;
}

.galeria-video-placeholder i {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Badge de Video */
.galeria-badge.video-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Contador de videos */
.galeria-counter.video-counter i {
    color: #a78bfa;
}

/* ========================================
   GALERÍAS DE AUDIO - Últimas Galerías
   ======================================== */
.ultima-galeria-card.ultima-galeria-audio {
    position: relative;
}

.ultima-galeria-card.ultima-galeria-audio .ultima-galeria-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.ultima-galeria-badge-audio {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.4);
    z-index: 2;
}

.ultima-galeria-badge-audio i {
    font-size: 0.8rem;
}

.ultima-galeria-audio-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.ultima-galeria-audio-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Contador de pistas en últimas galerías */
.ultima-galeria-card.ultima-galeria-audio .ultima-galeria-contador i {
    color: #1db954;
}


/* ========================================
   GALERÍAS DE VIDEO - Últimas Galerías
   ======================================== */
.ultima-galeria-card.ultima-galeria-video {
    position: relative;
}

.ultima-galeria-card.ultima-galeria-video .ultima-galeria-image {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.ultima-galeria-badge-video {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    z-index: 2;
}

.ultima-galeria-badge-video i {
    font-size: 0.8rem;
}

.ultima-galeria-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.ultima-galeria-video-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Play icon en últimas galerías de video */
.ultima-galeria-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.ultima-galeria-card.ultima-galeria-video:hover .ultima-galeria-video-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Contador de videos en últimas galerías */
.ultima-galeria-card.ultima-galeria-video .ultima-galeria-contador i {
    color: #8b5cf6;
}

/* Hover effect para video cards en últimas galerías */
.ultima-galeria-card.ultima-galeria-video:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}


/* ========================================
   GALERÍAS DE AUDIO - Carrusel y Mosaico
   ======================================== */

/* Carrusel de Audio */
.galeria-audio-carrusel .galeria-carrusel-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.galeria-audio-carrusel:hover {
    transform: translateY(-4px);
}

.galeria-audio-carrusel .galeria-carrusel-counter.audio-counter {
    background: rgba(29, 185, 84, 0.9);
}

.galeria-audio-carrusel .galeria-audio-play-overlay.carrusel-play {
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.galeria-audio-carrusel:hover .galeria-audio-play-overlay.carrusel-play {
    opacity: 1;
}

/* Mosaico de Audio */
.galeria-audio-mosaico .galeria-mosaico-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 200px;
}

.galeria-audio-mosaico:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(29, 185, 84, 0.15);
}

.galeria-audio-mosaico .galeria-mosaico-counter.audio-counter {
    background: rgba(29, 185, 84, 0.95);
    color: white;
}

.galeria-audio-mosaico .galeria-mosaico-counter.audio-counter i {
    color: white;
}

.galeria-audio-mosaico .galeria-audio-play-overlay.mosaico-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.galeria-audio-mosaico:hover .galeria-audio-play-overlay.mosaico-play {
    opacity: 1;
}

/* Placeholder de audio en mosaico */
.galeria-audio-mosaico .galeria-audio-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-audio-mosaico .galeria-audio-placeholder i {
    font-size: 3rem !important;
}

/* Responsive para carrusel y mosaico de audio */
@media (max-width: 768px) {
    .galeria-audio-carrusel .galeria-audio-play-overlay.carrusel-play,
    .galeria-audio-mosaico .galeria-audio-play-overlay.mosaico-play {
        opacity: 1;
    }
    
    .galeria-audio-carrusel .galeria-audio-play-btn,
    .galeria-audio-mosaico .galeria-audio-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}


/* ========================================
   GALERÍAS DE VIDEO - Carrusel y Mosaico
   ======================================== */

/* Cover de video - fondo cuando no hay portada */
.galeria-video-cover {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

/* Carrusel de Video - asegurar altura correcta */
.galeria-video-carrusel .galeria-carrusel-image {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.galeria-video-carrusel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.2);
}

/* =============================================
   MOSAICO DE VIDEO - Forzar ancho completo
   ============================================= */

/* FORZAR que la tarjeta ocupe todo el ancho de la columna */
.galeria-mosaico-item.galeria-video-mosaico {
    display: block !important;
    width: 100% !important;
}

.galeria-video-mosaico:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.15);
}

/* Placeholder de video - cuando NO hay imagen de portada */
.galeria-video-mosaico .galeria-video-placeholder {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.galeria-video-mosaico .galeria-video-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Placeholder de video en carrusel - altura completa */
.galeria-video-carrusel .galeria-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-video-carrusel .galeria-video-placeholder i {
    font-size: 3rem !important;
}

/* Contador de video */
.galeria-video-carrusel .galeria-carrusel-counter.video-counter,
.galeria-video-mosaico .galeria-mosaico-counter.video-counter {
    background: rgba(139, 92, 246, 0.9);
    color: white;
}

.galeria-video-carrusel .galeria-carrusel-counter.video-counter i,
.galeria-video-mosaico .galeria-mosaico-counter.video-counter i {
    color: white;
}

/* Play icon overlay para video en carrusel */
.galeria-video-carrusel .galeria-video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.galeria-video-carrusel:hover .galeria-video-play-overlay {
    opacity: 1;
}

.galeria-video-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.galeria-video-play-btn:hover {
    transform: scale(1.1);
    background: white;
}

/* Play icon overlay para video en mosaico */
.galeria-video-mosaico .galeria-video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.galeria-video-mosaico:hover .galeria-video-play-overlay {
    opacity: 1;
}

/* Responsive para video en carrusel y mosaico */
@media (max-width: 768px) {
    .galeria-video-carrusel .galeria-video-play-overlay,
    .galeria-video-mosaico .galeria-video-play-overlay {
        opacity: 1;
    }
    
    .galeria-video-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .galeria-video-mosaico .galeria-video-placeholder {
        min-height: 140px;
    }
}

/* ========================================
   GALERÍAS DE VIDEO - Grid Clásico
   ======================================== */

/* Card de video en grid clásico */
.galeria-video-card {
    position: relative;
}

.galeria-video-card .galeria-image-wrapper {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.galeria-video-card:hover {
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.2);
}

/* Placeholder de video en grid clásico */
.galeria-video-card .galeria-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.galeria-video-card .galeria-video-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Contador de video en grid clásico */
.galeria-video-card .galeria-counter.video-counter {
    background: rgba(139, 92, 246, 0.9);
}

.galeria-video-card .galeria-counter.video-counter i {
    color: white;
}


/* ========================================
   MAPA FULLSCREEN - MARCADORES DE AUDIO
   ======================================== */

/* Marcador de audio en el mapa */
.custom-audio-marker {
    background: transparent;
    border: none;
}

.audio-marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-marker-icon-wrapper {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    border: 3px solid white;
    transition: all 0.2s ease;
}

.audio-marker-icon-wrapper i {
    font-size: 1.25rem;
    color: white;
    z-index: 1;
}

.audio-marker-icon-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

/* Ondas de reproducción en el marcador */
.audio-marker-waves {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.audio-marker-waves span {
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 1px;
}

/* Marcador activo (reproduciéndose) */
.audio-marker-container.playing .audio-marker-icon-wrapper {
    animation: markerPulse 1.5s ease-in-out infinite;
}

.audio-marker-container.playing .audio-marker-icon-wrapper i {
    display: none;
}

.audio-marker-container.playing .audio-marker-waves {
    opacity: 1;
}

.audio-marker-container.playing .audio-marker-waves span {
    animation: markerWave 0.6s ease-in-out infinite;
}

.audio-marker-container.playing .audio-marker-waves span:nth-child(1) {
    animation-delay: 0s;
}
.audio-marker-container.playing .audio-marker-waves span:nth-child(2) {
    animation-delay: 0.15s;
}
.audio-marker-container.playing .audio-marker-waves span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes markerWave {
    0%, 100% { height: 6px; }
    50% { height: 16px; }
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.7); }
}

.audio-marker-pin {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #d97706;
    margin-top: -2px;
}

/* ========================================
   REPRODUCTOR DE AUDIO LIMPIO EN MAPA
   ======================================== */

.map-audio-player-clean {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-audio-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    text-align: center;
}

/* Controles del reproductor */
.map-audio-player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-audio-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f59e0b;
    border: none;
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.map-audio-play-btn:hover {
    background: #d97706;
    transform: scale(1.05);
}

.map-audio-play-btn:active {
    transform: scale(0.98);
}

.map-audio-play-btn i {
    line-height: 1;
}

/* Barra de progreso */
.map-audio-progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.map-audio-progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: visible;
}

.map-audio-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #f59e0b;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.map-audio-slider {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 16px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.map-audio-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* Link a galería */
.map-audio-gallery-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.map-audio-gallery-link:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.map-audio-gallery-link i:last-child {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.map-audio-gallery-link:hover i:last-child {
    transform: translateX(2px);
}


/* ========================================
   MAPA FULLSCREEN - ESTILOS BASE
   ======================================== */

.gallery-fullscreen-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-fullscreen-map-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gallery-fullscreen-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 10;
}

.gallery-fullscreen-map-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.gallery-fullscreen-map-title i {
    font-size: 1.25rem;
    color: #8b5cf6;
}

.gallery-fullscreen-map-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-fullscreen-map-close:hover {
    background: #e5e7eb;
}

.gallery-fullscreen-map-close i {
    font-size: 1.25rem;
    color: #6b7280;
}

/* Modal de foto/audio en el mapa */
.gallery-map-photo-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-map-photo-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.gallery-map-photo-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 10002;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-map-photo-modal.active {
    transform: translateY(0);
}

.gallery-map-photo-modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
}

.gallery-map-photo-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.gallery-map-photo-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-map-photo-modal-close i {
    font-size: 1.125rem;
    color: white;
}

.gallery-map-photo-modal-image {
    position: relative;
    padding: 1.25rem;
    padding-top: 1.5rem;
}

.gallery-map-photo-modal-image img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
}

.gallery-map-photo-modal-content {
    padding: 0.5rem 1.5rem 1.25rem;
}

.gallery-map-photo-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.125rem 0;
    line-height: 1.3;
}

/* Ubicación debajo del título del contexto */
.map-audio-context-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.375rem 0;
}

.map-audio-context-location i {
    color: #f59e0b;
    font-size: 0.875rem;
}

.gallery-map-photo-modal-description {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.gallery-map-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.8125rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.gallery-map-location-badge i {
    color: #8b5cf6;
}

.gallery-map-view-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #8b5cf6;
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.gallery-map-view-gallery-btn:hover {
    background: #7c3aed;
}

/* Marcadores de foto */
.custom-photo-marker {
    background: transparent;
    border: none;
}

.photo-marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-marker-image-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.photo-marker-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-marker-pin {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid white;
    margin-top: -3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Cluster markers */
.marker-cluster {
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
}

.marker-cluster div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.9);
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .gallery-map-photo-modal {
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        max-width: 420px;
        width: 90%;
        border-radius: 16px;
        max-height: 80vh;
    }
    
    .gallery-map-photo-modal.active {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .gallery-map-photo-modal::before {
        display: none;
    }
}


/* ========================================
   BADGE DE NUEVOS AUDIOS/CONTENIDO
   ======================================== */

/* Badge "Nuevo" para galerías con contenido reciente */
.galeria-badge-nuevo {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    z-index: 5;
    animation: pulseNuevo 2s ease-in-out infinite;
}

.galeria-badge-nuevo i {
    font-size: 0.7rem;
}

@keyframes pulseNuevo {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(238, 90, 36, 0.6);
    }
}

/* Badge nuevo en últimas galerías */
.ultima-galeria-badge-nuevo {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 2px 6px rgba(238, 90, 36, 0.4);
    z-index: 5;
    animation: pulseNuevo 2s ease-in-out infinite;
}

.ultima-galeria-badge-nuevo i {
    font-size: 0.6rem;
}

/* Badge nuevo en tarjetas de grid */
.galeria-card .galeria-badge-nuevo {
    top: 0.5rem;
    left: 0.5rem;
}

/* Badge nuevo en carrusel */
.galeria-carrusel-item .galeria-badge-nuevo {
    top: 8px;
    left: 8px;
}

/* Badge nuevo en mosaico */
.galeria-mosaico-item .galeria-badge-nuevo {
    top: 6px;
    left: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .galeria-badge-nuevo {
        padding: 2px 6px;
        font-size: 0.55rem;
        gap: 2px;
    }
    
    .galeria-badge-nuevo i {
        font-size: 0.6rem;
    }
    
    .ultima-galeria-badge-nuevo {
        padding: 2px 5px;
        font-size: 0.5rem;
    }
}
