/* Estilos de la página home */
        /* Logo styles - ensure no shadow */
        .logo,
        .logo-link,
        .logo-container {
            box-shadow: none !important;
            filter: none !important;
        }
        
        h1 { 
            color: var(--white); 
            font-size: 1.8rem; 
            margin: 0 0 15px 0; 
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        p { 
            color: var(--slate-300); 
            line-height: 1.6; 
            margin: 10px 0; 
        }
        .success { 
            color: var(--green-500); 
            font-weight: 600;
            background: rgba(16, 185, 129, 0.1);
            padding: 8px 12px;
            border-radius: 6px;
            border-left: 3px solid var(--green-500);
        }
        .ubicacion { 
            background: rgba(30, 41, 59, 0.8); 
            padding: 20px; 
            margin: 15px 0; 
            border-radius: 12px; 
            border-left: 4px solid var(--blue-500); 
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(59, 130, 246, 0.2);
        }
        .ubicacion h3 { 
            margin: 0 0 10px 0; 
            color: var(--white); 
            font-size: 1.2rem; 
            font-weight: 600;
        }
        .ubicacion p { 
            margin: 0 0 10px 0; 
            color: var(--slate-300); 
            font-size: 0.95rem; 
        }
        .ubicacion .coords { 
            font-size: 0.9rem; 
            color: var(--slate-400); 
            margin: 8px 0; 
            font-weight: 500;
        }
        .ubicacion .links { margin-top: 15px; }
        .ubicacion .links a { 
            color: var(--blue-500); 
            text-decoration: none; 
            margin-right: 15px; 
            font-size: 0.9rem; 
            font-weight: 500;
        }
        .stats { 
            background-color: #e9ecef; 
            padding: 15px; 
            border-radius: 8px; 
            margin: 20px 0; 
            text-align: center;
        }
        
        .collection-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .featured-art {
            margin: 30px 0;
            padding: 25px;
            background: rgba(30, 41, 59, 0.6);
            border-radius: 16px;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }
        .featured-art h2 {
            color: var(--white);
            font-size: 1.5rem;
            margin: 0 0 20px 0;
            text-align: center;
            font-weight: 700;
        }
        .art-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }
        .art-card {
            background: rgba(15, 23, 42, 0.8);
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }
        .art-preview {
            font-size: 3rem;
            margin-bottom: 15px;
            display: block;
        }
        .art-card h3 {
            color: var(--white);
            font-size: 1.1rem;
            margin: 0 0 10px 0;
            font-weight: 600;
        }
        .art-price {
            color: var(--green-500);
            font-size: 1.2rem;
            font-weight: 700;
            margin: 0 0 15px 0;
        }
        .marketplace-cta {
            text-align: center;
            margin-top: 20px;
        }
        .btn-medal {
            background: linear-gradient(45deg, #d97706, var(--amber-500), #d97706, var(--amber-500), #d97706);
            background-size: 300% 300%;
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.9rem;
            display: inline-block;
            text-align: center;
            width: 100%;
            font-weight: 600;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
            margin-top: 10px;
            animation: goldShimmer 3s ease-in-out infinite;
            position: relative;
            overflow: hidden;
        }
        .btn-medal::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.5s;
        }
        @keyframes goldShimmer {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }
        .actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 15px;
        }
        
        /* Estilos para labels específicos */
        #tituloUbicaciones {
            color: var(--white) !important;
        }
        
        
        .actions { margin-top: 10px; }
        
        .ver-detalles { 
            background: linear-gradient(135deg, var(--green-600) 0%, var(--green-500) 100%); 
            color: white; 
            padding: 12px 20px; 
            text-decoration: none; 
            border-radius: 8px; 
            font-size: 0.9rem; 
            display: inline-block;
            text-align: center;
            width: 100%;
            font-weight: 600;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
        }
        
        /* Contador de la colección */
        .medal-counter {
            background: linear-gradient(180deg, #45378a 0%, #2d1f7a 55%, #1f1170 100%);
            border-radius: 20px;
            padding: 22px 12px 26px 12px;
            margin: 0 auto 28px auto;
            max-width: 100%;
            text-align: center;
        }
        .medal-counter-title {
            color: #e6a90b;
            font-size: 1rem;
            font-weight: 700;
            margin: 0 0 18px 0;
        }
        .medal-stats {
            display: flex;
            align-items: stretch;
        }
        .medal-stat {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0 6px;
        }
        .medal-number {
            color: var(--white);
            font-size: 3rem;
            font-weight: 800;
            line-height: 1;
            margin: 0;
            font-variant-numeric: tabular-nums;
        }
        /* las dos cifras pesan igual; la de medallas se destaca solo con el color */
        .medal-number-gold {
            color: #e6a90b;
        }
        .medal-label {
            color: var(--gray-200);
            font-size: 0.75rem;
            font-weight: 500;
            line-height: 1.5;
            margin: 14px 0 0 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .medal-divider {
            width: 1px;
            background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
            flex: none;
        }
        
        /* Location Card Styles (mismo estilo que las tarjetas de la galería) */
        .ubicacion { 
            background: rgba(15, 23, 42, 0.9); 
            padding: 20px; 
            margin: 15px 0; 
            border-radius: 12px; 
            border-left: 4px solid var(--blue-800); 
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(30, 64, 175, 0.3);
            cursor: pointer;
        }
        .ubicacion h3 { 
            margin: 0 0 10px 0; 
            color: var(--white); 
            font-size: 1.2rem; 
            font-weight: 600;
        }
        .ubicacion p { 
            margin: 0 0 10px 0; 
            color: var(--slate-300); 
            font-size: 0.95rem; 
        }
        .ubicacion-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 15px;
        }
        
        .nearby-location-card .ubicacion-image {
            border-radius: 12px 12px 0 0;
            margin-bottom: 0;
            height: 120px;
            width: 100%;
            object-fit: cover;
        }
        .ubicacion-continent {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }
        
        /* Estilos específicos para tarjetas de ciudades cercanas */
        .nearby-location-card {
            background: var(--white);
            border-radius: 12px;
            padding: 0;
            margin: 0;
            backdrop-filter: blur(10px);
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            cursor: pointer;
            position: relative;
            box-shadow: none;
            overflow: hidden;
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
        }
        
        
        .nearby-location-card h3 {
            margin: 5px 0 10px 0;
            color: var(--slate-900);
            font-size: 1.2rem;
            font-weight: 600;
            padding: 0 20px;
        }
        
        .nearby-location-card p {
            margin: 0 0 10px 0;
            color: var(--slate-900);
            font-size: 0.95rem;
            padding: 0 20px;
        }
        
        .nearby-location-card .detail-label {
            font-size: 0.8rem;
            color: var(--gray-500);
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 0 20px;
            text-align: center;
        }
        
        .nearby-location-card .detail-value {
            color: var(--gray-500);
            padding: 0 20px;
            text-align: center;
        }
        
        .nearby-location-card .location-icon {
            color: var(--gray-500);
        }
        
        .nearby-location-card .ubicacion-details {
            padding: 15px 20px;
            text-align: center;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        /* CSS-Only Carousel Styles - Based on CSS-Tricks */
        .carousel {
            position: relative;
            width: 100%;
            max-width: 100%;
            margin: 20px 0;
            overflow: visible;
            border-radius: 12px;
            padding-bottom: 2rem;
        }
        
        .carousel__container {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            height: 370px;
        }
        
        .carousel__container::-webkit-scrollbar {
            display: none;
        }
        
        .carousel__slide {
            flex: 0 0 100%;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            box-sizing: border-box;
            height: 100%;
            display: flex;
        }
        
        .carousel__slide:before {
            content: '';
            display: none;
        }
        
        .carousel__navigation {
            position: absolute;
            bottom: 0.7rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            z-index: 10;
        }
        
        .carousel__nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--gray-300);
            border: none;
            cursor: pointer;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .carousel__nav-dot.active {
            background: var(--white);
            transform: scale(1.2);
        }
        
        /* Navigation arrows */
        .carousel::before,
        .carousel::after {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 3rem;
            height: 3rem;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 50%;
            z-index: 10;
            cursor: pointer;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
            opacity: 0.8;
        }
        
        .carousel::before {
            left: 1rem;
            content: '‹';
        }
        
        .carousel::after {
            right: 1rem;
            content: '›';
        }
        
        /* Counter reset */
        .carousel {
            counter-reset: item;
        }
        
        /* Smooth scroll behavior */
        html {
            scroll-behavior: smooth;
        }
        .continent-europe {
            background: var(--gray-300);
            color: var(--white);
        }
        .continent-asia {
            background: var(--gray-300);
            color: var(--white);
        }
        .continent-north-america {
            background: var(--gray-300);
            color: var(--white);
        }
        .continent-south-america {
            background: var(--gray-300);
            color: var(--white);
        }
        .continent-africa {
            background: var(--gray-300);
            color: var(--white);
        }
        .continent-oceania {
            background: var(--gray-300);
            color: var(--white);
        }
        .ubicacion .coords {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--slate-400);
            font-size: 0.9rem;
            margin-bottom: 15px;
        }
        .location-icon {
            width: 16px;
            height: 16px;
            opacity: 0.7;
        }
        .ubicacion-details {
            display: block;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px dashed rgba(59, 130, 246, 0.3);
        }
        .detail-item {
            text-align: center;
        }
        .detail-label {
            font-size: 0.8rem;
            color: var(--slate-400);
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .detail-value {
            font-size: 0.9rem;
            color: var(--white);
            font-weight: 600;
            word-break: break-all;
        }
        /* Link container styles */
        .ubicacion-link {
            display: block;
            text-decoration: none;
            color: inherit;
        }
        
        /* Current location specific styles - now using same format as nearby locations */
        
        .current-location-card {
            background: var(--white);
            border-radius: 12px;
            padding: 0;
            margin: 15px 0;
            backdrop-filter: blur(10px);
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            position: relative;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        
        
        .current-location-card .ubicacion-image {
            border-radius: 12px 12px 0 0;
            margin-bottom: 0;
            height: 200px;
            width: 100%;
            object-fit: cover;
        }
        
        .current-location-card h3 {
            margin: 15px 20px 10px 20px;
            color: var(--slate-900);
            font-size: 1.4rem;
            font-weight: 700;
        }
        
        .current-location-card p {
            margin: 0 20px 15px 20px;
            color: #4b5563;
            font-size: 1rem;
            line-height: 1.6;
        }
        
        .current-location-card .ubicacion-continent {
            align-self: flex-start;
        }
        
        .current-location-card .ubicacion-details {
            padding: 15px 20px;
            margin: 0;
            border-top: 1px solid var(--gray-200);
            display: flex;
            justify-content: space-around;
            gap: 20px;
        }
        
        .current-location-card .detail-item {
            flex: 1;
            text-align: center;
        }
        
        .current-location-card .detail-label {
            font-size: 0.8rem;
            color: var(--gray-500);
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .current-location-card .detail-value {
            color: var(--slate-900);
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .current-location-card .location-icon {
            color: var(--green-500);
        }
        
        .current-location-card .video-section {
            background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
            border: none;
            border-radius: 0;
            padding: 25px 20px;
            margin: 0;
            box-shadow: none;
        }
        
        .current-location-card .video-section::before {
            display: none;
        }
        
        .current-location-card .video-section h3 {
            color: var(--slate-900);
            font-size: 1.4rem;
            font-weight: 700;
            text-align: center;
            margin: 0 0 20px 0;
        }
        
        .current-location-card .video-section h4 {
            color: var(--gray-500);
            margin: 15px 0 0 0;
            font-size: 0.85rem;
            font-weight: 400;
            text-align: center;
        }
        
        .current-location-card .video-section video {
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        /* Standalone Video/Medal Section - Outside card */
        .video-section-standalone {
            background: var(--slate-800);
            border-radius: 12px;
            padding: 30px 25px;
            position: relative;
            overflow: visible;
            box-shadow: none;
            backdrop-filter: none;
            border: none;
            width: auto;
            height: auto;
            display: block;
            margin: 20px 0;
        }
        
        .video-section-standalone::before {
            display: none;
        }
        
        .video-section-standalone h3 {
            color: var(--white);
            font-size: 1.8rem;
            font-weight: 800;
            text-align: center;
            margin: 0 0 8px 0;
            position: relative;
            z-index: 2;
            text-shadow: none;
            letter-spacing: -0.5px;
            line-height: 1.2;
        }
        
        .video-section-standalone .subtitle {
            color: #fbbf24;
            font-size: 0.95rem;
            font-weight: 500;
            text-align: center;
            margin: 0 0 20px 0;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            z-index: 2;
        }
        
        .video-section-standalone h4 {
            color: var(--slate-400);
            margin: 15px 0 0 0;
            font-size: 0.85rem;
            font-weight: 400;
            text-align: center;
            font-style: italic;
            position: relative;
            z-index: 2;
        }
        
        .video-section-standalone video {
            width: 100%;
            height: 200px;
            border-radius: 0;
            margin: 0 auto;
            object-fit: contain;
            pointer-events: none;
            box-shadow: none;
            position: relative;
            z-index: 2;
            background: transparent;
        }
        
        .video-section-standalone .price-tag {
            display: inline-block;
            background: linear-gradient(135deg, var(--red-600) 0%, var(--red-500) 50%, var(--red-600) 100%);
            color: var(--white);
            font-size: 2.8rem;
            font-weight: 900;
            text-align: center;
            margin: 20px auto 5px auto;
            padding: 40px 50px;
            position: relative;
            z-index: 2;
            letter-spacing: -1px;
            box-shadow: 
                0 4px 20px rgba(220, 38, 38, 0.6),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
            transform: rotate(-5deg);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            clip-path: polygon(
                50% 0%, 55% 8%, 62% 5%, 65% 13%, 72% 12%, 73% 20%, 79% 21%, 78% 29%, 84% 31%, 81% 39%, 
                86% 42%, 82% 50%, 86% 58%, 81% 61%, 84% 69%, 78% 71%, 79% 79%, 73% 80%, 72% 88%, 65% 87%, 
                62% 95%, 55% 92%, 50% 100%, 45% 92%, 38% 95%, 35% 87%, 28% 88%, 27% 80%, 21% 79%, 22% 71%, 
                16% 69%, 19% 61%, 14% 58%, 18% 50%, 14% 42%, 19% 39%, 16% 31%, 22% 29%, 21% 21%, 27% 20%, 
                28% 12%, 35% 13%, 38% 5%, 45% 8%
            );
        }
        
        .video-section-standalone .cta-container {
            position: relative;
            z-index: 2;
            margin-top: 15px;
        }
        
        .video-section-standalone .btn-medal-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: var(--amber-500);
            color: var(--slate-900);
            padding: 16px 32px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.05rem;
            border: none;
            cursor: pointer;
            box-shadow: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
        }
        
        .video-section-standalone .price-badge {
            position: absolute;
            top: -25px;
            left: -40px;
            background: var(--red-600);
            color: var(--white);
            font-size: 1.2rem;
            font-weight: 900;
            padding: 10px;
            border-radius: 50%;
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
            border: 4px solid var(--red-500);
            transform: rotate(-15deg);
        }
        
        .current-location-card .ubicacion-info {
            margin: 0;
            padding: 25px 20px;
            border-top: none;
            background: var(--slate-800);
            border-radius: 0 0 12px 12px;
        }
        
        .current-location-card .ubicacion-info h4 {
            color: var(--white);
            font-size: 1rem;
            font-weight: 600;
            margin: 0 0 10px 0;
        }
        
        .current-location-card .ubicacion-info p {
            color: var(--slate-300);
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0 0 10px 0;
        }
        
        .current-location-card .ubicacion-info span {
            color: var(--slate-400);
            font-size: 0.9rem;
            font-style: italic;
        }
        
        /* Fix continent name display in mobile */
        .detail-value {
            text-transform: capitalize;
        }
        
        .location-banner {
            background: linear-gradient(135deg, var(--green-600) 0%, var(--green-500) 50%, #34d399 100%); 
            color: white; 
            padding: 20px; 
            border-radius: 12px; 
            margin: 20px 0; 
            text-align: center; 
            box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
            display: none;
            border: 1px solid rgba(16, 185, 129, 0.3);
            backdrop-filter: blur(10px);
        }
        .location-banner h3 { 
            margin: 0 0 10px 0; 
            color: white; 
            font-size: 1.2rem; 
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        .location-banner p { 
            margin: 0; 
            font-size: 0.95rem; 
            opacity: 0.95;
        }
        .location-error { 
            background: linear-gradient(135deg, var(--red-600) 0%, var(--red-500) 50%, #f87171 100%); 
            color: white; 
            padding: 20px; 
            border-radius: 12px; 
            margin: 20px 0; 
            text-align: center; 
            box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
            display: none;
            border: 1px solid rgba(239, 68, 68, 0.3);
            backdrop-filter: blur(10px);
        }
        .location-error h3 { 
            margin: 0 0 10px 0; 
            color: white; 
            font-size: 1.2rem; 
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        .location-error p { 
            margin: 0; 
            font-size: 0.95rem; 
            opacity: 0.95;
        }
        
        /* Dynamic Loader Styles */
        .location-loader {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 60vh;
            padding: 20px;
        }
        
        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(16, 185, 129, 0.2);
            border-top: 3px solid var(--green-500);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        /* Full Screen Location Loader - Now handled by base.html */
        
        /* Estilos para la sección de video integrada en la tarjeta de ubicación */
        .video-section {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(16, 185, 129, 0.2);
        }
        
        .video-section h4 {
            color: var(--green-500);
            margin: 15px 0 10px 0;
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
        }
        
        .video-section {
            background: var(--slate-800);
            border: 2px solid transparent;
            background-clip: padding-box;
            border-radius: 16px;
            padding: 20px;
            margin: 20px 0;
            position: relative;
            overflow: visible;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
        }
        
        .video-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, var(--amber-500), #fbbf24, var(--amber-500), #fbbf24, var(--amber-500));
            background-size: 300% 300%;
            border-radius: 16px;
            padding: 4px;
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
            animation: goldShimmer 4s ease-in-out infinite;
            z-index: 10;
        }
        
        .video-section h3 {
            color: var(--white);
            font-size: 1.8rem;
            font-weight: 700;
            text-align: center;
            margin: 20px 0 20px 0;
            position: relative;
        }
        
        
        .video-section h4 {
            color: #d97706;
            margin: 15px 0 10px 0;
            font-size: 0.9rem;
            font-weight: 400;
            text-align: center;
        }
        
        .video-section video {
            width: 100%;
            height: 280px;
            border-radius: 8px;
            margin-top: 10px;
            object-fit: contain;
            transform: scale(1.0);
            pointer-events: none;
        }
        
        
        .model-container {
            position: relative;
            width: 100%;
            max-width: 600px;
            height: 400px;
            margin: 0 auto;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: none;
            background: transparent;
        }
        
        .model-container model-viewer {
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 12px;
            background: transparent;
        }
        
        
        /* Two-column layout for location cards */
        .locations-grid {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 15px !important;
            margin: 20px 0 !important;
            max-width: 1600px !important;
            margin-left: auto !important;
            margin-right: auto !important;
            width: 100% !important;
            padding: 0 !important;
        }
        
        .locations-grid {
        }
        
        .location-card-link {
            text-decoration: none;
            color: inherit;
            display: block;
            width: 100%;
            cursor: pointer;
        }
        
        .location-card {
            position: relative;
            background: rgb(242, 242, 245);
            border-radius: 16px;
            overflow: hidden;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            height: fit-content;
            width: 100% !important;
            display: block !important;
        }
        
        /* El medio (webm y webp son cuadrados) reserva siempre su cuadrado, cargue o no: la tarjeta no cambia de alto
           al llegar el medio. Mientras carga se ve el rectángulo vacío (fade-in de la tarjeta, reglas en components.css) */
        .location-card .location-video-container {
            aspect-ratio: 1 / 1;
            height: auto;
        }

        /* Estilo especial para tarjetas cuando el usuario está dentro del radio */
        .location-card.user-location {
            border: none;
            box-shadow: none;
            background: rgb(242, 242, 245);
        }

        .location-card.user-location .location-continent-above,
        .location-card.user-location .location-continent {
            background: #c9c9c9;
            font-size: 0.9rem;
        }

        /* Cuando el usuario está en una ciudad, su tarjeta ocupa las dos columnas
           y se muestra arriba del resto */
        .location-card-link.user-location-link,
        .location-card-link:has(.location-card.user-location) {
            grid-column: 1 / -1;
            order: -1;
        }

        /* Ocultar la sección "Distance" / "You are here" en la tarjeta principal */
        .location-card.user-location .location-distance {
            display: none;
        }

        /* "You are in" arriba del nombre de la ciudad */
        .location-card.user-location .location-content h3::before {
            content: "You are in";
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            color: var(--gray-500);
            margin-bottom: 4px;
        }

        /* Botón "Buy medal" más angosto en la tarjeta principal */
        .location-card.user-location .btn-buy-medal-home {
            width: auto;
            padding-left: 50px;
            padding-right: 50px;
        }

        /* Video a su tamaño real, sin recorte ni reducción */
        .location-card.user-location .location-video-container {
            height: auto;
            display: flex;
            justify-content: center;
        }

        .location-card.user-location .location-video {
            width: auto;
            height: auto;
            max-width: 100%;
            object-fit: contain;
        }

        /* Nombre de la ciudad a 1.0 rem */
        .location-card.user-location .location-content h3 {
            font-size: 1.0rem;
        }


        .location-card.user-location .location-distance .distance-text {
            color: var(--green-500) !important;
            font-weight: 600;
        }
        
        .location-card .btn-buy-medal-home {
            background: var(--brand-green);
            color: white;
            padding: 10px 20px;
            border-radius: 999px;
            text-decoration: none;
            font-size: 0.9rem;
            display: inline-block;
            text-align: center;
            width: 100%;
            font-weight: 600;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            margin: 12px 0;
            border: none;
            cursor: pointer;
        }
        
        /* Quien ya tiene la medalla: violeta de la marca en vez del verde de compra */
        .location-card .btn-buy-medal-home.btn-view-medal-home {
            background: var(--violet-600);
        }

        .location-card .btn-buy-medal-home:active {
            transform: translateY(0);
        }
        
        
        .location-video-container {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: relative;
        }
        
        /* Ubicación riesgosa: signo de exclamación rojo en la esquina superior derecha */
        .risk-badge {
            position: absolute;
            top: 10px;
            right: 12px;
            z-index: 2;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--red-600);
            color: var(--white);
            font-size: 1rem;
            font-weight: 800;
            line-height: 26px;
            text-align: center;
        }

        /* Ubicación sancionada: alerta amarilla (si además es riesgosa, queda a la izquierda del rojo) */
        .sanction-badge {
            position: absolute;
            top: 10px;
            right: 12px;
            z-index: 2;
            width: 28px;
            height: 26px;
            display: block;
        }
        .sanction-badge.with-risk {
            right: 44px;
        }

        .location-continent-above {
            background: #c9c9c9;
            color: var(--gray-700);
            padding: 4px 8px;
            border-radius: 16px;
            font-size: 0.7rem;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin: 12px 0 8px 12px;
            display: inline-block;
        }
        
        .location-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .location-content {
            padding: 20px;
            text-align: center;
        }
        
        .location-continent {
            display: inline-block;
            background: var(--gray-100);
            color: var(--gray-700);
            padding: 4px 8px;
            border-radius: 16px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-bottom: 10px;
        }
        
        .location-card h3 {
            color: var(--gray-800);
            font-size: 1.0rem;
            font-weight: 600;
            margin: 0 0 5px 0;
            line-height: 1.2;
        }
        
        .location-country {
            color: var(--gray-500);
            font-size: 0.9rem;
            font-weight: 500;
            margin: 0;
            line-height: 1.2;
        }
        
        .location-distance {
            margin-top: 15px;
            text-align: center;
            margin-left: -15px;
            margin-right: -15px;
        }
        
        .distance-line {
            width: 100%;
            height: 1px;
            background: repeating-linear-gradient(
                to right,
                #d1d5db 0px,
                #d1d5db 1px,
                transparent 1px,
                transparent 4px
            );
            margin-bottom: 8px;
        }
        
        .distance-label {
            color: var(--gray-400);
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 4px;
        }
        
        .distance-text {
            color: var(--gray-500);
            font-size: 0.7rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .location-card p {
            color: var(--gray-500);
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0 0 20px 0;
        }
        
        .location-details {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .detail-label {
            font-size: 0.75rem;
            color: var(--gray-400);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }
        
        .detail-value {
            font-size: 0.9rem;
            color: var(--gray-700);
            font-weight: 600;
        }
        
        .location-link {
            display: inline-block;
            background: linear-gradient(135deg, var(--blue-500) 0%, #1d4ed8 100%);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }
        
        

        /* Botón redondo flotante (abajo a la derecha) */
        .fab-button {
            position: fixed;
            bottom: calc(84px + env(safe-area-inset-bottom, 0px));
            right: 16px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--violet-600);
            border: none;
            cursor: pointer;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(83, 66, 160, 0.4);
            transition: background 0.2s ease, transform 0.2s ease;
        }
        .fab-button:hover {
            background: var(--violet-700);
        }
        .fab-button:active {
            transform: scale(0.95);
        }

        /* Fondo oscurecido y difuminado al abrir el chat */
        .chat-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
            z-index: 999;
        }
        .chat-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        /* Ventana de chat */
        .chat-panel {
            position: fixed;
            right: 20px;
            bottom: 90px;
            width: calc(100% - 40px);
            max-height: calc(100vh - 130px);
            height: 460px;
            background: var(--white);
            border-radius: 20px;
            overflow: hidden;
            display: none;
            flex-direction: column;
            z-index: 1001;
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
        }
        .chat-panel.open {
            display: flex;
        }
        /* abierto: arriba de todo con un margen pequeño; top y height (la mitad de la pantalla) los fija el JS al abrir */
        html body .chat-panel.open {
            top: calc(env(safe-area-inset-top, 0px) + 12px);
            bottom: auto;
            max-height: none;
        }
        .chat-header {
            background: linear-gradient(180deg, var(--violet-900) 0%, var(--violet-600) 100%);
            color: var(--white);
            padding: 14px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 700;
            font-size: 1rem;
        }
        .chat-close {
            background: transparent;
            border: none;
            color: var(--white);
            font-size: 1.4rem;
            line-height: 1;
            cursor: pointer;
            padding: 0 4px;
        }
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: var(--white);
        }
        .chat-msg {
            max-width: 80%;
            padding: 8px 12px;
            border-radius: 16px;
            font-size: 0.9rem;
            line-height: 1.4;
            word-wrap: break-word;
        }
        .chat-msg.bot {
            align-self: flex-start;
            background: var(--gray-100);
            color: var(--gray-800);
            white-space: pre-line; /* respeta los saltos de línea de la respuesta (un paso por línea) */
        }
        .chat-msg.user {
            align-self: flex-end;
            background: #3b2d8f;
            color: var(--white);
        }
        .chat-form {
            display: flex;
            gap: 8px;
            padding: 10px;
            background: var(--gray-100);
        }
        .chat-input {
            flex: 1;
            min-width: 0;
            border: none;
            border-radius: 20px;
            padding: 10px 14px;
            font-size: 0.9rem;
            font-family: inherit;
            background: var(--white);
            color: var(--gray-800);
            outline: none;
        }
        .chat-msg.typing {
            color: var(--gray-500);
            letter-spacing: 2px;
        }
        .chat-msg.error {
            background: #fee2e2;
            color: #991b1b;
        }
        .chat-legal {
            margin: 0;
            padding: 0 12px 10px;
            background: var(--gray-100);
            color: var(--gray-400);
            font-size: 0.7rem;
            line-height: 1.3;
            text-align: center;
        }
        .chat-legal a {
            color: var(--gray-400);
            text-decoration: underline;
        }
        .chat-send {
            border: none;
            border-radius: 20px;
            padding: 0 16px;
            background: #3b2d8f;
            color: var(--white);
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
        }

        /* Menos espacio entre el header y la tarjeta de la colección en la home (reducido a la mitad) */
        .site-header {
            margin-bottom: 20px;
        }
        .container {
            padding-top: 7px;
        }

        /* Sin ubicación no hay distancia: se oculta el bloque en vez de repetir "NOT AVAILABLE" en cada tarjeta */
        .location-distance:has(.distance-na) {
            display: none;
        }

        /* Enlaces a todas las ciudades (para los buscadores): plegado y discreto al final de la lista */
        .all-locations {
            box-sizing: border-box;
            margin: 28px 12px 96px;
            padding: 14px 16px;
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-md);
            background: var(--gray-100);
        }
        .all-locations summary {
            color: var(--slate-700);
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
        }
        .all-locations-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px 14px;
            margin: 14px 0 0;
            padding: 0;
            list-style: none;
        }
        .all-locations-list a {
            color: var(--violet-600);
            font-size: 0.85rem;
            text-decoration: none;
        }
