/* CSS Document */
:root {
    --primary: #0066FF;
    --primary-rgb: 0, 102, 255;
    --secondary: #6C5CE7;
    --bg: #F5F7FA;
    --white: #FFFFFF;
    --dark: #1E293B;
    --gray-light: #E2E8F0;
    --gray-dark: #64748B;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Like Buttons Tokens */
    --like-bg-off: #ffebee;
    --like-heart-off: #ef4444;
    --like-text-off: #000000;
    --like-bg-on: #ef4444;
    --like-heart-on: #ffffff;
    --like-text-on: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    padding-bottom: 180px;
    transition: background 1s ease;
}

/* --- NIGHT MODE & STARS --- */
body.night-mode {
    --bg: #0B0E14;
}

body.night-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 20% 40%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 30% 10%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50% 50%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 70% 30%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 85% 75%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40% 80%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 15% 90%, #ffffff, rgba(0, 0, 0, 0));
    background-size: 600px 600px;
    opacity: 0.4;
    z-index: -3;
    pointer-events: none;
    animation: stars-twinkle 10s infinite alternate;
}

@keyframes stars-twinkle {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 0.5;
    }
}

body.night-mode header {
    background: rgba(15, 23, 42, 0.8);
}

body.night-mode .header-overlay {
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.9) 0%, rgba(11, 14, 20, 0) 100%);
}

body.night-mode #cityText,
body.night-mode #sectionTitle,
body.night-mode .location-info h2 {
    color: #FFFFFF !important;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 95px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
}

body.chat-view-active header {
    min-height: auto !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
}

body.chat-view-active .categories {
    padding-bottom: 5px !important;
}

.header-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 0.4;
    /* Slightly more visible but still background */
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.header-content {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.location-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.title-suffix {
    font-size: 0.8em;
}

.odometer-container {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF !important;
    padding: 0px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    color: #000000 !important;
    border: 1px solid #000000;
    /* Fine black border */
    font-size: 0.9rem;
    height: 26px;
    transition: transform 0.2s ease;
    -webkit-text-fill-color: #000000 !important;
}

.odometer-container.odo-paused {
    background: #FF0000 !important;
    border-color: #BD0000;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    animation: odo-blink 1s infinite alternate;
}

@keyframes odo-blink {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.7;
    }
}

.odometer-container.odo-compass {
    background: #28a745 !important;
    border-color: #218838;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.odo-value {
    font-variant-numeric: tabular-nums;
}

.odo-unit {
    font-size: 0.7rem;
    margin-left: 2px;
    color: var(--gray-dark);
    text-transform: uppercase;
}

#cityText {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.location-info {
    flex-grow: 1;
}

.gps-pill {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.categories {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 0 2px 0;
    width: 100%;
    margin: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    display: none;
}

/* --- BOTTOM NAV BAR --- */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 5%;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

body.night-mode .bottom-nav-bar {
    background: rgba(11, 14, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav-bar .search-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- SEARCH BOX --- */
.search-container {
    display: flex;
    gap: 8px;
    padding: 0;
    width: 100%;
}

.search-container input {
    flex-grow: 1;
    /* Campo elÃ¡stico */
    min-width: 0;
    /* Permitir encogimiento */
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gray-light);
    padding: 8px 12px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.85rem;
    height: 38px;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.search-container button {
    flex-shrink: 0;
    /* No se encogen */
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    white-space: nowrap;
}

.search-container button:active {
    transform: scale(0.95);
    background: #0052CC;
}

.search-container .btn-reset {
    background: #FF0000;
    border: none;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.search-container .btn-reset:active {
    transform: scale(0.95);
    background: #BD0000;
}

.search-container .btn-reset,
.search-container .btn-compass {
    flex-shrink: 0;
    /* No se encogen */
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
    transition: all 0.2s ease;
}

.search-container .btn-compass.active {
    background: #1e7e34;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-container .btn-compass:active {
    transform: scale(0.95);
    background: #218838;
}

.cat-btn {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    background: var(--like-bg-off);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 0 0 1.5px #FFFFFF;
}

.cat-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.cat-btn:hover::before {
    opacity: 1;
}

.cat-btn i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Colores individuales con gradientes premium */
.cat-btn:nth-child(1) {
    background: linear-gradient(135deg, #FF7676 0%, #D32F2F 100%);
}

.cat-btn:nth-child(2) {
    background: linear-gradient(135deg, #FFB347 0%, #F57C00 100%);
}

.cat-btn:nth-child(3) {
    background: linear-gradient(135deg, #FFEB3B 0%, #FBC02D 100%);
}

.cat-btn:nth-child(4) {
    background: linear-gradient(135deg, #81C784 0%, #388E3C 100%);
}

.cat-btn:nth-child(5) {
    background: linear-gradient(135deg, #4DD0E1 0%, #0097A7 100%);
}

.cat-btn:nth-child(6) {
    background: linear-gradient(135deg, #7986CB 0%, #303F9F 100%);
}

.cat-btn:nth-child(7) {
    background: linear-gradient(135deg, #BA68C8 0%, #7B1FA2 100%);
}

.cat-btn.active {
    background: #FFFFFF !important;
    color: #000000 !important;
    transform: translateY(0) scale(0.92);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #000000;
    z-index: 10;
}

.cat-btn.active i {
    filter: none;
}

@keyframes btn-breathe {

    0%,
    100% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
    }

    50% {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.5);
    }
}

.btn-like-mini {
    background: var(--like-bg-off) !important;
    color: var(--like-heart-off) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-like-mini.liked {
    background: var(--like-bg-on) !important;
    color: var(--like-heart-on) !important;
    border-color: var(--like-bg-on) !important;
}

.share-button {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0;
    background: linear-gradient(135deg, #FF80F9 0%, #C2185B 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.share-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    z-index: 1;
}

.share-button i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.share-button:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

/* --- MAIN CONTENT & CARDS --- */
.main-content {
    padding: 30px 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    animation: fadeInUp 0.6s ease backwards;
}

.card-re {
    border: 2px solid #28a745 !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Resaltado para Deep Linking */
.highlight-shared {
    animation: highlight-glow 1.5s ease-in-out 2;
    border: 2px solid var(--primary) !important;
    z-index: 10;
}

@keyframes highlight-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px 5px rgba(var(--primary-rgb), 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* --- PREMIUM CARD --- */
.card-premium {
    background: #030712;
    /* Pure dark background */
    border: 2px solid #fbbf24;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(251, 191, 36, 0.05);
}

/* Reflection / Shine Effect */
.card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.card-premium .card-image {
    height: 220px;
    position: relative;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
    /* Black text for maximum contrast on gold badge */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.6);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-premium .card-body {
    padding: 25px;
    position: relative;
    z-index: 6;
    background: #030712;
}

.card-premium .card-type {
    color: #fbbf24;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-premium .card-title {
    color: #FFFFFF;
    /* Pure white for title */
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
}

/* --- PERSONAJE CARD (DARK) --- */
.card-personaje {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.card-personaje .card-body {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.card-personaje .card-title {
    color: #FFFFFF !important;
}

.card-personaje .card-desc {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-personaje .card-desc.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.card-personaje .card-type {
    color: #94a3b8 !important;
    /* dimmed gray */
}

.card-personaje .card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.card-personaje .btn-sec {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

/* Eliminados overrides de btn-like para usar el estándar */
.card-personaje .btn-like-mini {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.card-personaje .status {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

.card-personaje .read-more-btn {
    color: #60a5fa !important;
    /* brighter blue for dark background */
}

/* --- RESTAURANTE CARD (ELEGANTE CENTRADO) --- */
.card-restaurant {
    background: #121214 !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-restaurant .card-info {
    width: 100%;
}

.card-restaurant .card-title {
    color: #d4af37 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-restaurant .card-type-label {
    display: block;
    font-size: 0.85rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
    font-weight: 600;
}

.card-restaurant .card-desc-premium {
    font-size: 0.95rem;
    color: #d1d1d6;
    line-height: 1.6;
    margin: 15px auto;
    font-style: italic;
    opacity: 0.95;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-restaurant .card-desc-premium.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.card-restaurant .read-more-btn {
    color: #fde047 !important;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: opacity 0.2s;
}

.card-restaurant .read-more-btn:hover {
    opacity: 0.8;
}

.card-restaurant .card-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.card-restaurant .card-image-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.card-restaurant .card-actions-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    text-decoration: none !important;
}

.card-restaurant .btn-gold-action {
    width: auto;
    min-width: 42px;
    padding: 0 10px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #fde047 50%, #d4af37 100%);
    color: #451a03;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b45309;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.card-restaurant .btn-like-gold {
    width: auto;
    min-width: 50px;
    padding: 0 16px;
    height: 42px;
    border-radius: 21px;
    background: var(--like-bg-off);
    color: var(--like-heart-off);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.card-restaurant .btn-gold-action::after,
.card-restaurant .btn-like-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

/* Shimmer effect removed for standardized like button */
.card-restaurant .btn-gold-action:hover::after {
    left: 100%;
}

.card-restaurant .btn-gold-action:hover,
.card-restaurant .btn-like-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.2);
}

.card-restaurant .btn-like-gold.liked {
    background: var(--like-bg-on);
    color: var(--like-heart-on);
    border-color: var(--like-bg-on);
}

.card-restaurant .like-count-gold {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--like-text-off);
}

.card-restaurant .btn-like-gold.liked .like-count-gold {
    color: var(--like-text-on);
}

.card-premium-bar {
    background: linear-gradient(145deg, #0f172a, #020617) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.bar-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
    flex-shrink: 0;
}

.bar-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.bar-city {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.bar-gps {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 8px;
    font-family: monospace;
}

.card-simple-hotel {
    background: #020617 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.simple-hotel-content {
    display: flex;
    height: 150px;
}

.simple-hotel-image {
    width: 140px;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.simple-hotel-body {
    flex-grow: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
}

.simple-hotel-title {
    width: 95%;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #FFFFFF !important;
}

.simple-hotel-meta {
    width: 90%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.simple-hotel-stars {
    display: flex;
}

.simple-hotel-city {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
}

.simple-hotel-footer {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.simple-hotel-actions {
    display: flex;
    align-items: center;
}

.simple-hotel-dist {
    position: static !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    font-size: 0.8rem !important;
    height: 38px;
    display: flex;
    align-items: center;
    border-radius: 10px !important;
    padding: 0 12px !important;
    white-space: nowrap;
}

.simple-hotel-dist.visited {
    background: #22C55E !important;
    color: #000000 !important;
}

.btn-booking {
    background: #0066FF;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

.btn-booking:active {
    transform: scale(0.95);
    background: #0052CC;
}

.btn-geo-simple {
    width: 38px;
    height: 38px;
    background: var(--like-bg-off);
    color: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-geo-simple:active {
    background: rgba(255, 255, 255, 0.2);
}

.btn-like-simple {
    background: var(--like-bg-off);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--like-heart-off);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-like-simple .like-count {
    color: var(--like-text-off);
}

.btn-like-simple.liked {
    background: var(--like-bg-on);
    color: var(--like-heart-on);
    border-color: var(--like-bg-on);
}

.btn-like-simple.liked .like-count {
    color: var(--like-text-on);
}

.btn-like-simple:active {
    transform: scale(0.9);
}

/* --- CAROUSEL STYLES --- */
.card-image.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 100 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    padding: 0 !important;
}

.carousel-btn i {
    font-size: 1.2rem !important;
    color: #ffffff !important;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: translateY(-50%) scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.carousel-btn.prev {
    left: 10px !important;
}

.carousel-btn.next {
    right: 10px !important;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 110;
    pointer-events: none;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #FFFFFF;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}


.card-premium .card-desc {
    color: #f1f5f9;
    /* Very light gray/white for description */
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 1;
    /* Ensure no transparency */
}

.card-premium .card-footer {
    border-top: 2px solid rgba(251, 191, 36, 0.2);
    background: #030712;
    margin: 0 -25px -25px;
    padding: 25px;
}

.btn-premium {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    /* Gold button */
    color: #000;
    /* Black text for contrast on gold */
    padding: 0 20px;
    height: 48px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.7);
    filter: brightness(1.2);
}

/* --- MYSTICAL MOON CARD --- */
.card-moon {
    background: linear-gradient(to bottom, #000000 0%, #0f172a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 380px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-moon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 20% 40%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 30% 10%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.2px 1.2px at 50% 50%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 70% 30%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 85% 75%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40% 80%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 15% 90%, #ffffff, rgba(0, 0, 0, 0));
    background-size: 200px 200px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: stars-twinkle 8s infinite alternate;
}

.moon-header,
.moon-body,
.moon-footer {
    position: relative;
    z-index: 1;
}

.moon-header {
    width: 100%;
}

.moon-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.moon-display {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.moon-icon {
    font-size: 5rem;
    line-height: 1;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.moon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: moon-pulse 4s infinite ease-in-out;
}

@keyframes moon-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%) rotate(30deg) translateY(100%); }
    100% { transform: translate(-50%, -50%) rotate(30deg) translateY(-100%); }
}

.moon-info {
    margin: 20px 0;
}

.moon-phase-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.moon-mystical-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 250px;
    margin: 0 auto;
}

.moon-footer {
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    width: 100%;
}

/* --- MYSTICAL ZODIAC CARD --- */
.card-zodiac {
    background: linear-gradient(to bottom, #000000 0%, #1e1b4b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 420px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-zodiac::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 15% 25%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.2px 1.2px at 35% 45%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 65% 15%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 85% 55%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 25% 85%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1.2px 1.2px at 55% 75%, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    background-size: 100% 100%;
    z-index: 0;
    animation: stars-twinkle 10s infinite alternate;
}

.zodiac-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.zodiac-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #a5b4fc;
    text-transform: uppercase;
}

.zodiac-symbol-top {
    font-size: 1.5rem;
    color: #a5b4fc;
    opacity: 0.8;
}

.zodiac-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1;
    width: 100%;
}

.zodiac-image-container {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(165, 180, 252, 0.4), rgba(168, 85, 247, 0.4));
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zodiac-fallback-symbol {
    position: absolute;
    font-size: 6rem;
    color: #f8fafc;
    opacity: 0.9;
    z-index: 1;
    text-shadow: 0 0 20px rgba(165, 180, 252, 0.5);
}

.zodiac-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    background-color: transparent;
    /* Permite ver el sÃ­mbolo si no hay imagen */
}

.zodiac-nebula {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    z-index: -1;
    animation: nebula-pulse 6s infinite ease-in-out;
}

@keyframes nebula-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.zodiac-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zodiac-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.zodiac-dates {
    font-size: 0.85rem;
    color: #a5b4fc;
    font-weight: 600;
    letter-spacing: 1px;
}

.zodiac-mystical-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-top: 10px;
}

.zodiac-footer {
    font-size: 0.75rem;
    color: #6366f1;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    width: 100%;
    z-index: 1;
}

.btn-premium:active {
    transform: translateY(0);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-nature-premium .card-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #030712;
}

.dist-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #FFFFFF;
    padding: 6px 14px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    font-size: 0.85rem;
    font-weight: 700;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dist-tag.visited,
.dist-tag-photo.visited,
.dist-tag-small.visited {
    background: #28a745 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    gap: 4px;
}

.privada-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff8c00;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-desc.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-top: -15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.read-more-btn:hover {
    opacity: 0.8;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.status.open {
    background: #DCFCE7;
    color: #166534;
}

.status.closed {
    background: #FEE2E2;
    color: #991B1B;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-main {
    background: var(--primary);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-main:hover {
    background: #0052CC;
}

.btn-sec {
    background: var(--gray-light);
    color: var(--dark);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sec:hover {
    background: #CBD5E1;
}

.btn-ruta {
    background: #22C55E;
    color: white;
    padding: 0 16px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-ruta:hover {
    background: #16A34A;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.4);
}

.btn-ruta:active {
    transform: translateY(0);
}

.btn-orange {
    background: #ff8c00 !important;
    color: white !important;
}

.btn-orange:hover {
    background: #e67e00 !important;
}

.btn-delete {
    background: #fee2e2;
    color: #ef4444;
}

.btn-delete:hover {
    background: #fecaca;
}

.btn-audio {
    background: rgba(108, 92, 231, 0.1);
    color: var(--secondary);
}

.btn-audio:hover {
    background: var(--secondary);
    color: white;
}

.btn-audio-mini {
    background: rgba(108, 92, 231, 0.1);
    color: var(--secondary) !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-audio-mini:hover {
    background: var(--secondary);
    color: white !important;
}

/* --- CONTRIBUTION MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-dark);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
    font-family: inherit;
    font-size: 0.9rem;
    background: #F1F5F9;
    color: var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit.btn-wa {
    background: #25D366;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-dark);
    cursor: pointer;
}

/* --- CARDS --- */
.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card-only-image {
    margin-bottom: 20px;
    background: #000 !important;
    /* Fondo negro solicitado */
}

.card-only-image .card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 320px;
    /* Fallback for browsers without aspect-ratio support */
    display: block;
    height: auto;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Burbuja de autor */
.author-bubble {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-align: center;
    backdrop-filter: blur(4px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- FACEBOOK REEL CARD --- */
.card-facebook {
    aspect-ratio: 9/16 !important;
    width: min(100%, calc(65vh * 9 / 16)) !important;
    height: auto !important;
    margin: 0 auto;
    background: #000;
}

.card-facebook .card-image {
    height: 100% !important;
    aspect-ratio: 9/16 !important;
    border-radius: var(--radius-lg);
    position: relative;
    background-size: cover;
}

.card-facebook .video-iframe-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-facebook .card-image.playing .facebook-overlay {
    opacity: 0;
}

/* --- LEGEND CARD (DARK TONE) --- */
.card-legend {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.card-legend .card-body {
    background: #0f172a !important;
    color: #f1f5f9 !important;
}

.card-legend .card-title {
    color: #f8fafc !important;
}

.card-legend .card-type {
    color: #94a3b8 !important;
}

.card-legend .card-desc {
    color: #cbd5e1 !important;
}

.card-legend .card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.card-legend .read-more-btn {
    color: #60a5fa !important;
}

.card-legend .btn-sec {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Usar estandar */

.card-legend .status {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.card-only-image .btn-like-photo {
    /* Positioned by flexbox in ui.js */
    z-index: 20;
}

/* --- AD CARDS --- */
.card-ad {
    background: var(--dark);
    color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--shadow);
}

.card-ad-paid {
    background: #f1f5f9;
    color: var(--dark);
    border: 1px solid var(--gray-light);
}

.card-ad-paid .ad-tag {
    background: var(--gray-dark);
}

.ad-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.ad-tag {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 700;
    width: fit-content;
}

.ad-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-desc.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

/* --- WEATHER CARD --- */
.card-weather {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    min-height: 180px;
    margin-bottom: 20px;
    grid-column: 1 / -1;
    width: 100%;
}

.weather-overlay {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.15), transparent);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.weather-tag {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.weather-city {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

.weather-body {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 10px 0;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-icon {
    font-size: 3rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-desc {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.weather-wind {
    font-size: 0.85rem;
    color: #94a3b8;
}

.weather-footer {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

/* --- SMALL CARDS --- */
.card-small {
    border-radius: var(--radius-md);
    background: var(--white);
    border-left: 4px solid var(--primary);
}

.card-small .card-body {
    padding: 15px;
}

.card-small .card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-small .card-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 12px;
}

.card-small .card-footer {
    padding-top: 12px;
}

.simple-hotel-dist {
    background: #FFFFFF;
    color: #000000;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.dist-tag-small {
    background: #FFFFFF;
    color: #000000;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* --- AUDIO PLAYER EVOLUTION (GLASS) --- */
.audio-player-bar {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.85);
    /* Slate 900 */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 16px;
    display: none;
    flex-direction: column;
    z-index: 2000;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.player-text-info {
    flex-grow: 1;
    overflow: hidden;
}

#audioTitle {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.player-times {
    font-size: 0.75rem;
    color: #94A3B8;
}

.btn-close-audio {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
}

.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.play-btn-main {
    background: var(--primary);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn-main:active {
    transform: scale(0.9);
}

.skip-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

.skip-btn:active {
    opacity: 1;
}

.player-progress-container {
    padding: 0 5px;
}

#seekSlider {
    width: 100%;
    height: 5px;
    background: var(--like-bg-off);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#seekSlider:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- MUSIC CARDS (Intercaladas) --- */
.card-music {
    background: linear-gradient(135deg, #1e1e2f 0%, #3a3a5a 100%);
    color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.music-banner {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.music-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(30, 30, 47, 0.8));
}

.card-music .music-body {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.card-music .music-info {
    flex-grow: 1;
}

.card-music h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-music p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
}

.btn-play-music {
    background: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.btn-play-music:active {
    transform: scale(0.85);
}

.btn-play-music i {
    font-size: 1.2rem;
}

.btn-play-music.playing {
    background: #ef4444;
    /* Rojo para el Stop */
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* --- MUSIC MINI PLAYER --- */
.music-mini-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 240px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    z-index: 2100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.m-player-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#musicTitle {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.m-controls {
    display: flex;
    gap: 12px;
}

.m-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .header-content {
        gap: 6px;
    }

    .location-info h2 {
        font-size: 1.1rem;
    }

    .odometer-container {
        font-size: 0.8rem;
        height: 24px;
        padding: 0 6px;
    }

    .gps-pill {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .cat-btn {
        height: 32px;
        font-size: 0.85rem;
    }

    /* Ocultar textos secundarios en botones de bÃºsqueda en mÃ³vil muy pequeÃ±o */
    .search-container button span {
        display: none;
    }

    .search-container button i {
        font-size: 1.1rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 15px 4%;
        gap: 20px;
    }
}

/* Tablet State */
@media (min-width: 601px) and (max-width: 1024px) {
    .header-content {
        max-width: 95%;
    }

    .main-content {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* Desktop State */
@media (min-width: 1025px) {
    .header-content {
        max-width: 1200px;
    }

    .main-content {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

/* --- 360 CARDS --- */
:root {
    --color-360: #9c27b0;
}

.card-360 {
    border: 2px solid var(--color-360);
    position: relative;
    overflow: hidden;
    background: #fdf4ff;
    /* Morado muy claro */
}

.card-360 .card-body {
    background: #fdf4ff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.card-360 .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-360:hover .card-image::after {
    opacity: 1;
}

.overlay-360 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(156, 39, 176, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- GEORUTA CARDS (AMPLIADAS) --- */
.card-georuta .card-image {
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 220px;
}

/* --- VIDEO CARDS (NUEVO) --- */
.card-video {
    border: 3px solid #ff0000 !important;
}

.card-video .card-image {
    height: 270px;
    /* Aumentado un 35% desde los 200px estÃ¡ndar */
}

.youtube-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 0, 0, 0.9);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.card:hover .youtube-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    color: #ff0000;
}

/* Modal de Video */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.video-container {
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-video {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para reproducciÃ³n en ficha */
.video-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 15;
    background: #000;
}

.card-image.playing {
    /* Mantenemos el tamaÃ±o pero ocultamos la imagen de fondo */
    background-image: none !important;
}

.card-image.playing .video-iframe-wrapper {
    display: block;
}

.card-image.playing .youtube-overlay {
    display: none;
}

.card-image.playing .dist-tag {
    display: none;
}

/* Specific override for Facebook Reel cards to KEEP distance tag while playing */
.card-facebook .card-image.playing .dist-tag {
    display: block !important;
}

.video-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- GPS LOADER SCREEN --- */
.gps-loader-overlay {
    position: fixed;
    top: 140px;
    /* Debajo del header */
    left: 0;
    width: 100%;
    height: calc(100% - 140px);
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    animation: fadeIn 0.3s ease-out;
}

.loader-tutorial-img {
    width: 85%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.gps-bubble {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
    position: relative;
    animation: gps-blink 1.5s infinite ease-in-out;
}

.gps-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
}

@keyframes gps-blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;

    }
}

/* --- NEW CONSOLIDATED CLASSES --- */

/* Like Buttons */
.btn-like {
    height: 42px;
    border-radius: 21px;
    padding: 0 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--like-bg-off);
    color: var(--like-heart-off);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-like.liked {
    background: var(--like-bg-on);
    color: white;
    border: 1px solid #ff1744;
}

.btn-like .like-count {
    font-size: 0.9em;
    color: black;
}

.btn-like.liked .like-count {
    color: white;
}

/* Photo Cards Special Layout */
.card-photo-layout {
    background: #000;
    border: none;
    box-shadow: none;
    padding: 15px;
}

.card-photo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    color: white;
}

.dist-tag-photo {
    background: #FFFFFF;
    color: #000000;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo Card Like Button */
.btn-like-photo-always {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--like-bg-off);
    color: var(--like-heart-off);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-like-photo-always.liked {
    background: var(--like-bg-on);
    color: var(--like-heart-on);
    border-color: var(--like-bg-on);
}

.btn-like-photo-always .like-count {
    color: var(--like-text-off);
}

.btn-like-photo-always.liked .like-count {
    color: var(--like-text-on);
}

/* Author Bubble */
.author-bubble-photo {
    margin-top: 10px;
    background: #e2e8f0;
    /* gris claro */
    color: #475569;
    /* gris oscuro */
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.author-bubble-photo i {
    color: #64748b;
    /* gris del icono un poco mÃ¡s suave */
}

/* Small Card Layout Extras */
.card-small-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.card-small .status-inline {
    float: none;
    display: inline-block;
    margin-left: 5px;
    padding: 2px 8px;
    font-size: 0.8em;
}

/* Ad and Ad-paid adjustments */
.ad-desc-container {
    padding: 10px 0 5px 0;
}

.ad-btn-full {
    width: 100%;
    justify-content: center;
}

.type-360 {
    color: var(--color-360, #9c27b0) !important;
}

.type-video {
    color: #ff0000 !important;
}

/* --- VENTANAS (Efecto Flip 3D) --- */
.card-ventana {
    display: flex;
    flex-direction: column;
}

.ventana-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
    cursor: pointer;
}

.ventana-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.ventana-container:hover .ventana-inner,
.ventana-container:active .ventana-inner {
    transform: rotateY(180deg);
}

.ventana-front,
.ventana-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.ventana-back {
    transform: rotateY(180deg);
}

.card-ventana .card-body {
    flex-grow: 1;
}

/* --- IAficha SPECIAL CARD --- */
.card-ia {
    background: #000 !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    color: white !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 136, 0.1);
}

.card-ia::after {
    content: 'IA';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    color: rgba(0, 255, 136, 0.03);
    font-weight: 900;
    pointer-events: none;
}

.card-ia-simple {
    padding: 12px 20px;
    min-height: auto;
}

.card-ia-simple .card-ia-header {
    margin-bottom: 8px;
}

.card-ia-simple .ia-fact {
    margin-bottom: 0;
    font-style: italic;
    color: #00ff88;
}

.card-ia-chat {
    min-height: 350px;
}

.ia-loading-fact {
    font-size: 0.85rem;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-ia-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ia-badge {
    background: #00ff88;
    color: #000;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
}

.ia-title {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #00ff88;
}

.ia-fact {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #efefef;
}

.ia-input-container {
    display: flex;
    gap: 8px;
    background: #1a1a1a;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #333;
}

.ia-input-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: white !important;
    padding: 8px 12px;
    outline: none;
    font-size: 0.9rem;
}

.btn-ia-send {
    background: #00ff88;
    color: #000;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-ia-send:active {
    transform: scale(0.9);
}

.ia-chat-container {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.ia-chat-container::-webkit-scrollbar {
    width: 4px;
}

.ia-chat-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.ia-message {
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: slideInChat 0.3s ease-out forwards;
    max-width: 85%;
    word-wrap: break-word;
}

.ia-message-user {
    align-self: flex-end;
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-right-radius: 2px;
}

.ia-message-ai {
    align-self: flex-start;
    background: rgba(0, 255, 136, 0.1);
    color: #1e293b;
    border-left: 3px solid #00ff88;
    border-bottom-left-radius: 2px;
}

.ia-typing {
    font-size: 0.8rem;
    color: #00ff88;
    margin-bottom: 5px;
    font-style: italic;
    animation: pulseIA 1.5s infinite;
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseIA {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* --- POINTS CARD (Gamification) --- */
.card-points {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: white;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-points::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.points-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.level-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

.points-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #94A3B8;
}

.points-body {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 24px;
}

.points-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 1px;
}

.points-divider {
    width: 1px;
    height: 40px;
    background: var(--like-bg-off);
}

.points-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #6C5CE7);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.next-level-text {
    font-size: 0.75rem;
    color: #64748B;
    text-align: center;
}

/* --- MONSTER CARD --- */
.card-monster {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.card-monster .card-body {
    padding: 15px;
    background: transparent;
}

.card-monster .card-title {
    color: white !important;
    font-size: 1.1rem;
    margin-bottom: 5px;
    margin-top: 5px;
}

.card-monster .card-type {
    color: var(--primary) !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-monster .card-desc {
    color: #cbd5e1 !important;
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
    display: block !important;
    -webkit-line-clamp: unset !important;
}

.card-image-monster {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
}

/* --- SINO CARDS (PREGUNTAS SÃ/NO) --- */
.card-sino {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.sino-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.sino-feedback {
    min-height: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sino-feedback .acierto {
    color: #4ade80;
    animation: sinoBounceIn 0.5s ease;
}

.sino-feedback .error {
    color: #f87171;
    animation: sinoHeadShake 0.5s ease;
}

.sino-actions {
    display: flex;
    gap: 15px;
    width: 100%;
}

.btn-sino {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
}

.btn-si {
    background: #22c55e;
    color: white;
}

.btn-no {
    background: #ef4444;
    color: white;
}

.btn-sino:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-sino:active:not(:disabled) {
    transform: translateY(0);
}

.btn-sino:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

@keyframes sinoBounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes sinoHeadShake {
    0% {
        transform: translateX(0);
    }

    12.5% {
        transform: translateX(-6px) rotateY(-20deg);
    }

    37.5% {
        transform: translateX(5px) rotateY(17deg);
    }

    62.5% {
        transform: translateX(-3px) rotateY(-10deg);
    }

    87.5% {
        transform: translateX(2px) rotateY(5deg);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- CALENDARIO DE EVENTOS --- */
.card-event {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.event-day {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.event-month {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    margin-top: 2px;
}

.event-time-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

.event-location {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-location i {
    color: #ef4444;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-days-info {
    font-size: 0.85rem;
    color: #334155;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 12px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.event-days-info i {
    color: #0066FF;
}

.card-event .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 8px 0;
}

.card-event .card-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* --- EVENTOS DE HOY HIGHLIGHT --- */
.card-event.event-today {
    border: 2px solid #ff0055 !important;
    position: relative;
    box-shadow: 0 15px 35px rgba(255, 0, 85, 0.25);
    background: #0f172a !important;
    /* Fondo muy oscuro premium */
    color: white;
}

.card-event.event-today .card-title {
    color: white !important;
}

.card-event.event-today .card-desc {
    color: #cbd5e1 !important;
}

.card-event.event-today .event-location {
    color: #94a3b8 !important;
}

.card-event.event-today .event-days-info {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.card-event.event-today .event-date-badge {
    background: #ff0055 !important;
}

.card-event.event-today .event-day,
.card-event.event-today .event-month {
    color: white !important;
}

.card-event.event-today .event-time-tag {
    background: #ff0055 !important;
    animation: pulse-today 2s infinite;
}

@keyframes pulse-today {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.card-calendar-link {
    transition: transform 0.3s ease;
}

.card-calendar-link:hover {
    transform: scale(1.02);
}

/* --- MUNICIPIO CARDS (DARK MODERN) --- */
.card-municipio {
    background: #0f172a !important;
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.municipio-bg-illustration {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transform: translateY(-50%);
}

.municipio-header,
.municipio-title,
.municipio-details,
.municipio-actions {
    position: relative;
    z-index: 2;
}

.card-municipio:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 0, 85, 0.3);
}

.municipio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.municipio-province {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.municipio-badge {
    font-size: 0.65rem;
    background: #ff0055;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
}

.municipio-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 5px 0;
    color: #f8fafc;
    letter-spacing: -0.5px;
}

.municipio-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: auto;
}

.m-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.m-detail i {
    color: #38bdf8;
    font-size: 0.9rem;
}

.municipio-actions {
    margin-top: 10px;
}

.btn-municipio-map {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-event .card-title {
    font-weight: 700;
    color: #1e293b;
    margin: 8px 0;
}

.card-event .card-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* --- EVENTOS DE HOY HIGHLIGHT --- */
.card-event.event-today {
    border: 2px solid #ff0055 !important;
    position: relative;
    box-shadow: 0 15px 35px rgba(255, 0, 85, 0.25);
    background: #0f172a !important;
    /* Fondo muy oscuro premium */
    color: white;
}

.card-event.event-today .card-title {
    color: white !important;
}

.card-event.event-today .card-desc {
    color: #cbd5e1 !important;
}

.card-event.event-today .event-location {
    color: #94a3b8 !important;
}

.card-event.event-today .event-days-info {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.card-event.event-today .event-date-badge {
    background: #ff0055 !important;
}

.card-event.event-today .event-day,
.card-event.event-today .event-month {
    color: white !important;
}

.card-event.event-today .event-time-tag {
    background: #ff0055 !important;
    animation: pulse-today 2s infinite;
}

@keyframes pulse-today {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.card-calendar-link {
    transition: transform 0.3s ease;
}

.card-calendar-link:hover {
    transform: scale(1.02);
}

/* --- MUNICIPIO CARDS (DARK MODERN) --- */
.card-municipio {
    background: #0f172a !important;
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.municipio-bg-illustration {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transform: translateY(-50%);
}

.municipio-header,
.municipio-title,
.municipio-details,
.municipio-actions {
    position: relative;
    z-index: 2;
}

.card-municipio:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 0, 85, 0.3);
}

.municipio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.municipio-province {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.municipio-badge {
    font-size: 0.65rem;
    background: #ff0055;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
}

.municipio-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 5px 0;
    color: #f8fafc;
    letter-spacing: -0.5px;
}

.municipio-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: auto;
}

.m-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.m-detail i {
    color: #38bdf8;
    font-size: 0.9rem;
}

.municipio-actions {
    margin-top: 10px;
}

.btn-municipio-map {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-municipio-map:hover {
    background: #ff0055;
    border-color: #ff0055;
    transform: scale(1.02);
}

/* Pulsating Marker for Routes */
.image-container-marker {
    position: relative;
    width: 100%;
}

.pulsating-marker {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #ef4444;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse-marker 2s infinite;
    z-index: 20;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@keyframes pulse-marker {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.9);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}


/* --- HISTORIA CARDS (GOLD PREMIUM) --- */
.card-historia {
    border: 1px solid #c5a059 !important;
    background: #1a0f0a !important;
    /* MarrÃ³n muy oscuro */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

.historia-header-gold {
    background: linear-gradient(135deg,
            #8a6d3b 0%,
            #c8a55d 25%,
            #7b5c27 50%,
            #c8a55d 75%,
            #6b4e1e 100%);
    padding: 3px 12px;
    text-align: center;
    border-bottom: 3px solid #8a6d3b;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.historia-header-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.3) 45%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.3) 55%,
            transparent 60%);
}

/* --- ELEGANT RESTAURANT REQUEST CARD --- */
.card-add-restaurant {
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 30px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.restaurant-request-premium-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.restaurant-request-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.premium-icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
    flex-shrink: 0;
}

.premium-icon-box i {
    font-size: 1.5rem;
    color: #000;
}

.header-text-group h3 {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 4px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.premium-badge-small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fbbf24;
    font-weight: 700;
    opacity: 0.9;
}

.premium-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.form-group-premium {
    margin-bottom: 18px;
    position: relative;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 15px;
    color: #fbbf24;
    font-size: 1rem;
    opacity: 0.8;
}

.input-icon-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 14px 14px 45px;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-icon-wrapper input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-icon-wrapper input::placeholder {
    color: #64748b;
}

.btn-submit-premium {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

.btn-submit-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.5);
}

.btn-submit-premium:active {
    transform: translateY(1px) scale(0.98);
}

.restaurant-success-msg {
    text-align: center;
    padding: 30px 10px;
    animation: premiumFadeIn 0.8s ease;
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restaurant-success-msg i {
    font-size: 4rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.restaurant-success-msg p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
}

@keyframes goldShine {
    0% {
        transform: translateX(-30%) translateY(-30%);
    }

    100% {
        transform: translateX(30%) translateY(30%);
    }
}

.historia-date {
    color: #4a3701;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 4px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.card-historia .card-body {
    padding: 15px 20px;
}


.card-historia .card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffaa00 !important;
    /* Amarillo anaranjado histÃ³rico */
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-historia .card-desc.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.prize-section-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fcf6ba 75%, #aa771c 100%);
    padding: 15px;
    text-align: center;
    border-radius: 16px;
    margin: 10px 0;
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.prize-section-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 45%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.3) 55%, transparent 60%);
    animation: goldShine 3s infinite ease-in-out;
    pointer-events: none;
}

/* Fichas de Naturaleza Premium - Verde Oscuro */
.card-nature-premium {
    background: #064e3b !important;
    /* Verde Esmeralda Muy Oscuro */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card-nature-premium:hover {
    transform: translateY(-5px);
}

.card-nature-premium .card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-nature-premium .card-body {
    padding: 24px;
}

.card-nature-premium .card-title {
    color: #ecfdf5;
    /* Verde menta muy claro */
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-nature-premium .card-type {
    display: block;
    color: var(--like-heart-off);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.card-nature-premium .card-desc {
    color: #d1fae5;
    /* Verde menta claro */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.card-nature-premium .card-desc.expanded {
    max-height: 2000px;
    mask-image: none;
    -webkit-mask-image: none;
}

.card-nature-premium .read-more-btn {
    background: var(--like-bg-off);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--like-heart-off);
    /* Verde esmeralda brillante */
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.card-nature-premium .read-more-btn i {
    transition: transform 0.3s;
}

.card-nature-premium .read-more-btn.active i {
    transform: rotate(180deg);
}

.card-nature-premium .read-more-btn.active i {
    transform: rotate(180deg);
}

.nature-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.btn-like-mini {
    background: var(--like-bg-off);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--like-heart-off);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-like-mini.liked {
    background: var(--like-bg-on);
    color: #fff;
    border-color: var(--like-heart-off);
}

.card-nature-premium .read-more-btn {
    margin: 0;
    height: auto;
    background: none;
    border: none;
    padding: 0;
}

.card-nature-premium .read-more-btn:hover {
    background: none;
    opacity: 0.8;
}

.card-nature-premium .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(6, 78, 59, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-historia .card-desc {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-historia .card-desc.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

/* History Section Styles */
body.history-mode {
    /* El degradado cubre todo el alto del documento de arriba a abajo */
    background: linear-gradient(to bottom, 
        #0f172a 0%,    /* Presente: Azul noche profundo */
        #1e1b4b 25%,   /* Edad Moderna: Azul violÃ¡ceo oscuro */
        #311024 50%,   /* Edad Media: BorgoÃ±a muy oscuro */
        #271c19 75%,   /* AntigÃ¼edad: MarrÃ³n sepia oscuro */
        #000000 100%   /* OrÃ­genes: Negro absoluto */
    ) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: scroll !important; /* Permite que el degradado cambie al hacer scroll */
    min-height: 100vh;
    color: #e2e8f0;
}
body.history-mode .main-content {
    background: transparent !important;
}
body.history-mode header {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
body.history-mode .location-info p,
body.history-mode #sectionTitle {
    color: #e2e8f0 !important;
}
body.history-mode .cat-btn {
    background: rgba(255,255,255,0.1) !important;
    color: #94a3b8 !important;
}
body.history-mode .cat-btn.active {
    background: #FFDF43 !important;
    color: #0f172a !important;
}
body.history-mode .card,
body.history-mode .card-historia,
body.history-mode .card-event {
    background-color: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}
body.history-mode .card-desc,
    background-position: center;
    position: relative;
}

.card-nature-premium .card-body {
    padding: 24px;
}

.card-nature-premium .card-title {
    color: #ecfdf5;
    /* Verde menta muy claro */
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-nature-premium .card-type {
    display: block;
    color: var(--like-heart-off);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.card-nature-premium .card-desc {
    color: #d1fae5;
    /* Verde menta claro */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.card-nature-premium .card-desc.expanded {
    max-height: 2000px;
    mask-image: none;
    -webkit-mask-image: none;
}

.card-nature-premium .read-more-btn {
    background: var(--like-bg-off);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--like-heart-off);
    /* Verde esmeralda brillante */
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.card-nature-premium .read-more-btn i {
    transition: transform 0.3s;
}

.card-nature-premium .read-more-btn.active i {
    transform: rotate(180deg);
}

.card-nature-premium .read-more-btn.active i {
    transform: rotate(180deg);
}

.nature-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.btn-like-mini {
    background: var(--like-bg-off);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--like-heart-off);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-like-mini.liked {
    background: var(--like-bg-on);
    color: var(--like-heart-on);
    border-color: var(--like-bg-on);
}

.card-nature-premium .read-more-btn {
    margin: 0;
    height: auto;
    background: none;
    border: none;
    padding: 0;
}

.card-nature-premium .read-more-btn:hover {
    background: none;
    opacity: 0.8;
}

.card-nature-premium .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(6, 78, 59, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-historia .card-desc {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-historia .card-desc.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

/* History Section Styles */
body.history-mode {
    /* El degradado cubre todo el alto del documento de arriba a abajo */
    background: linear-gradient(to bottom, 
        #0f172a 0%,    /* Presente: Azul noche profundo */
        #1e1b4b 25%,   /* Edad Moderna: Azul violÃ¡ceo oscuro */
        #311024 50%,   /* Edad Media: BorgoÃ±a muy oscuro */
        #271c19 75%,   /* AntigÃ¼edad: MarrÃ³n sepia oscuro */
        #000000 100%   /* OrÃ­genes: Negro absoluto */
    ) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: scroll !important; /* Permite que el degradado cambie al hacer scroll */
    min-height: 100vh;
    color: #e2e8f0;
}
body.history-mode .main-content {
    background: transparent !important;
}
body.history-mode header {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
body.history-mode .location-info p,
body.history-mode #sectionTitle {
    color: #e2e8f0 !important;
}
body.history-mode .cat-btn {
    background: rgba(255,255,255,0.1) !important;
    color: #94a3b8 !important;
}
body.history-mode .cat-btn.active {
    background: #FFDF43 !important;
    color: #0f172a !important;
}
body.history-mode .card,
body.history-mode .card-historia,
body.history-mode .card-event {
    background-color: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}
body.history-mode .card-desc,
body.history-mode .card-title {
    color: #f1f5f9 !important;
}
body.history-mode .btn-sec {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}


.reader-container {
    background: var(--bg-color, #f8f9fc);
    min-height: 100vh;
    width: 100%;
    position: absolute;
    top: 60px; /* Debajo de las pestañas */
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.reader-header-image {
    width: 100%;
    height: 30vh;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.reader-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-color, #f8f9fc) 0%, transparent 100%);
}

.reader-content {
    padding: 30px 20px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: var(--text-color, #334155);
    font-size: 1.1rem;
}

.reader-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--primary, #0066FF);
    margin-bottom: 10px;
    line-height: 1.2;
}

.reader-content .subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--gray, #64748b);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reader-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-light, #e2e8f0), transparent);
    margin: 30px 0;
}

.reader-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--text-color, #1e293b);
    margin: 35px 0 15px 0;
}

.reader-content p {
    margin-bottom: 20px;
}

.reader-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.reader-content li {
    margin-bottom: 10px;
}

.reader-content blockquote {
    border-left: 4px solid var(--primary, #0066FF);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--gray-dark, #475569);
    font-size: 1.2rem;
    line-height: 1.6;
}

.reader-content .info-box {
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.2);
    padding: 20px;
    border-radius: var(--radius-md, 12px);
    margin-top: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.reader-content .info-box p {
    margin-bottom: 10px;
}

.reader-content .info-box p:last-child {
    margin-bottom: 0;
}

.reader-footer-actions {
    padding: 40px 20px 100px;
    text-align: center;
}

.btn-reader-close {
    background: #FFDF43;
    color: #0f172a;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reader-loading, .reader-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    color: var(--gray, #64748b);
    font-family: 'Poppins', sans-serif;
    gap: 15px;
    padding: 20px;
    text-align: center;
}

.reader-error i {
    font-size: 3rem;
    color: #ef4444;
}

/* AnimaciÃ³n del punto GPS en el mapa */
.map-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
    animation: pulseMap 1.5s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseMap {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 500%;
        height: 500%;
        opacity: 0;
        border-width: 0;
    }
}

.author-bubble-top {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- PUNTOS MÁGICOS --- */
.card-magico {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes magic-card-strobe-blink {
    0%, 10%, 100% { 
        box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
        filter: brightness(1);
    }
    5% { 
        box-shadow: 0 0 60px rgba(108, 92, 231, 1), inset 0 0 20px rgba(162, 155, 254, 0.6);
        filter: brightness(1.3);
        border-color: #a29bfe;
    }
    15% {
        box-shadow: 0 0 40px rgba(108, 92, 231, 0.8);
        filter: brightness(1.1);
    }
    20% {
        box-shadow: 0 0 60px rgba(108, 92, 231, 1);
        filter: brightness(1.3);
    }
}

.card-magico.locked {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
    animation: magic-card-strobe-blink 4s infinite;
}

.card-magico.unlocked {
    border-color: #6C5CE7;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.4);
    animation: magic-card-strobe-blink 2s infinite;
}

.magico-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.magico-badge {
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.4);
}

.magico-image-box {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: all 0.8s ease;
}

.magico-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), #0f172a);
}

.magico-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: magico-pulse 4s infinite ease-in-out;
}

@keyframes magico-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.card-magico .card-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.card-magico .card-desc {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.reward-badge {
    margin-top: 15px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hint-text {
    margin-top: 20px;
    color: #6366f1;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- MONSTER UNLOCK MODAL --- */
.monster-unlock-overlay {
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

.monster-unlock-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.monster-unlock-content {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    width: 90%;
    max-width: 400px;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border: 2px solid #6C5CE7;
    box-shadow: 0 0 50px rgba(108, 92, 231, 0.5);
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.monster-unlock-overlay.active .monster-unlock-content {
    transform: scale(1) translateY(0);
}

.unlock-tag {
    color: #a29bfe;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 0.7rem;
}

.monster-reveal-box {
    margin: 30px auto;
    width: 180px;
    height: 180px;
    position: relative;
}

.reveal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    position: relative;
    z-index: 10;
    animation: reveal-bounce 1s ease-out;
}

@keyframes reveal-bounce {
    0% { transform: scale(0); rotate: -20deg; }
    70% { transform: scale(1.1); rotate: 10deg; }
    100% { transform: scale(1); rotate: 0; }
}

.reveal-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, #6C5CE7 0%, transparent 70%);
    animation: reveal-pulse 2s infinite;
}

@keyframes reveal-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.unlock-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.unlock-info p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.monster-type-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-claim {
    margin-top: 30px;
    width: 100%;
    padding: 15px;
    background: #6C5CE7;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* --- MONSTRUOS COLECCIONABLES (GALLERY) --- */
.card-monster-collectible {
    border: 2px solid #6C5CE7 !important;
    background: #0f172a !important;
    position: relative;
    overflow: hidden;
}

.monster-card-aura {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.monster-badge-mini {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #000;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: rotate(5deg);
}

.card-monster-collectible .card-image-monster {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid rgba(108, 92, 231, 0.3);
}

.card-monster-collectible .card-title {
    color: #FFFFFF !important;
    font-size: 1.2rem;
}

.card-monster-collectible .card-type {
    color: #a29bfe !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

}

.card-magico .card-desc {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.reward-badge {
    margin-top: 15px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hint-text {
    margin-top: 20px;
    color: #6366f1;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- MONSTER UNLOCK MODAL --- */
.monster-unlock-overlay {
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

.monster-unlock-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.monster-unlock-content {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    width: 90%;
    max-width: 400px;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border: 2px solid #6C5CE7;
    box-shadow: 0 0 50px rgba(108, 92, 231, 0.5);
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.monster-unlock-overlay.active .monster-unlock-content {
    transform: scale(1) translateY(0);
}

.unlock-tag {
    color: #a29bfe;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 0.7rem;
}

.monster-reveal-box {
    margin: 30px auto;
    width: 180px;
    height: 180px;
    position: relative;
}

.reveal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    position: relative;
    z-index: 10;
    animation: reveal-bounce 1s ease-out;
}

@keyframes reveal-bounce {
    0% { transform: scale(0); rotate: -20deg; }
    70% { transform: scale(1.1); rotate: 10deg; }
    100% { transform: scale(1); rotate: 0; }
}

.reveal-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, #6C5CE7 0%, transparent 70%);
    animation: reveal-pulse 2s infinite;
}

@keyframes reveal-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.unlock-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.unlock-info p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.monster-type-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-claim {
    margin-top: 30px;
    width: 100%;
    padding: 15px;
    background: #6C5CE7;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* --- MONSTRUOS COLECCIONABLES (GALLERY) --- */
.card-monster-collectible {
    border: 2px solid #6C5CE7 !important;
    background: #0f172a !important;
    position: relative;
    overflow: hidden;
}

.monster-card-aura {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.monster-badge-mini {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #000;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: rotate(5deg);
}

.card-monster-collectible .card-image-monster {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid rgba(108, 92, 231, 0.3);
}

.card-monster-collectible .card-title {
    color: #FFFFFF !important;
    font-size: 1.2rem;
}

.card-monster-collectible .card-type {
    color: #a29bfe !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* --- HEARTBEAT ANIMATION FOR STATS CARD --- */
.heartbeat-icon {
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

/* --- FICHA DE USUARIO CONECTADO (ESTILO PREMIUM) --- */
.card-connected-user {
    background: linear-gradient(145deg, #1e293b, #0f172a) !important;
    border: 1px solid rgba(0, 255, 136, 0.25) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 255, 136, 0.08) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.night-mode .card-connected-user {
    background: linear-gradient(145deg, #0b0f19, #030712) !important;
    border-color: rgba(0, 255, 136, 0.35) !important;
}

.card-connected-user:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 255, 136, 0.15) !important;
}

.card-connected-user .user-pulse-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: rgba(0, 255, 136, 0.12);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.card-connected-user .card-body {
    display: flex;
    flex-direction: column;
    padding: 20px !important;
    gap: 15px;
    position: relative;
    z-index: 2;
    background: transparent !important;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.user-avatar-wrapper {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 13px;
    height: 13px;
    background-color: #00ff88;
    border: 2px solid #0f172a;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ff88;
}

.online-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #00ff88;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

.user-info-section {
    flex-grow: 1;
    min-width: 0;
}

.user-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.user-title-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-type-user {
    color: #00ff88 !important;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.card-title-user {
    margin: 0 !important;
    color: #FFFFFF !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dist-tag-user {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-desc-user {
    margin: 0;
    color: #94a3b8 !important;
    font-size: 0.85rem;
    line-height: 1.45;
}

.user-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-label {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-user-chat {
    background: rgba(0, 255, 136, 0.1) !important;
    color: #00ff88 !important;
    border: 1px solid rgba(0, 255, 136, 0.25) !important;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-user-chat:hover {
    background: rgba(0, 255, 136, 0.2) !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.btn-user-directions {
    background: #00ff88 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-user-directions:hover {
    background: #00dd77 !important;
    transform: scale(1.05);
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    75%, 100% {
        transform: scale(2.4);
        opacity: 0;
    }
}
