:root {
    --qroo-vino: #7b1e34;
    --qroo-carmesi: #ab0a3d;
    --qroo-oro: #dfa129;
    --qroo-dark: #0f172a;
    --qroo-slate: #334155;
    --qroo-muted: #64748b;
    --qroo-light: #f8fafc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* Utilidades ligeras independientes */
.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.text-center {
    text-align: center !important;
}

.h-100 {
    height: 100% !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.small {
    font-size: 0.8rem !important;
}

.text-muted {
    color: var(--qroo-muted) !important;
}

.text-danger {
    color: #dc2626 !important;
}

h1,
h2,
h3,
h4,
h5,
.brand-title,
.dock-counter,
.popup-title {
    font-family: 'Outfit', sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #0b1120;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* =========================================================
 PANTALLA DE CARGA / SPLASH SCREEN ANIMADO INSTITUCIONAL
 ========================================================= */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: radial-gradient(circle at 50% 38%, #ffffff 0%, #faf8f9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.55s ease,
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform, visibility;
    user-select: none;
    -webkit-user-select: none;
}

.splash-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.03);
}

.splash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 24px;
    max-width: 480px;
    width: 90%;
    animation: splashAppear 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes splashAppear {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

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

.splash-logo-container {
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo-sedetur {
    max-width: 330px;
    width: 82vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(123, 30, 52, 0.08));
}

.splash-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #7b1e34, #ab0a3d);
    border-radius: 999px;
    margin: 8px 0 6px;
}

.splash-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.splash-returq-container {
    margin-top: 2px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo-returq {
    max-width: 230px;
    width: 65vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(123, 30, 52, 0.06));
}

.splash-app-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--qroo-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.splash-app-desc {
    font-size: 0.88rem;
    color: var(--qroo-muted);
    font-weight: 500;
    margin: 0;
}

.splash-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.splash-progress-track {
    width: 190px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.splash-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #7b1e34, #ab0a3d, #dfa129, #ab0a3d);
    background-size: 200% 100%;
    border-radius: 999px;
    animation: splashShimmer 1.4s ease-in-out infinite;
}

@keyframes splashShimmer {
    0% {
        transform: translateX(-100%);
    }

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

.splash-loading-text {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.splash-bottom-credit {
    position: absolute;
    bottom: 24px;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    padding: 0 16px;
    font-weight: 500;
}

/* =========================================================
 MAPA PRINCIPAL A PANTALLA COMPLETA
 ========================================================= */
#map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
}

/* =========================================================
 HEADER FLOTANTE SUPERIOR (GLASSMORPHISM)
 ========================================================= */
#floating-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1380px;
    z-index: 1000;
    pointer-events: none;
}

.header-inner {
    pointer-events: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
}

/* Input de búsqueda flotante */
.floating-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.floating-search-box .search-icon {
    position: absolute;
    left: 14px;
    color: var(--qroo-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.floating-search-input {
    width: 100%;
    padding: 10px 38px 10px 40px;
    font-size: 0.92rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--qroo-dark);
    outline: none;
    transition: all 0.2s ease;
}

.floating-search-input:focus {
    background: #ffffff;
    border-color: var(--qroo-carmesi);
    box-shadow: 0 0 0 3px rgba(171, 10, 61, 0.12);
}

.floating-search-box .search-clear {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 0.85rem;
    display: none;
    border-radius: 6px;
}

.floating-search-box .search-clear:hover {
    color: var(--qroo-carmesi);
    background: #f1f5f9;
}

/* Filtros rápidos flotantes */
.floating-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.filter-pill-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-pill-icon {
    position: absolute;
    left: 12px;
    color: var(--qroo-carmesi);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

.floating-filter-select {
    padding: 9px 30px 9px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    color: var(--qroo-dark);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    min-width: 190px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.floating-filter-select.filter-select-giros {
    min-width: 320px;
    max-width: 440px;
}

.floating-filter-select:hover,
.floating-filter-select:focus {
    background-color: #ffffff;
    border-color: var(--qroo-carmesi);
    box-shadow: 0 0 0 3px rgba(171, 10, 61, 0.1);
}

.btn-floating-reset {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--qroo-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.btn-floating-reset:hover {
    background: #ffffff;
    color: var(--qroo-carmesi);
    border-color: var(--qroo-carmesi);
    transform: rotate(-180deg);
}

/* =========================================================
 BANDEJA / DOCK FLOTANTE INFERIOR (CARRUSEL HORIZONTAL)
 ========================================================= */
.floating-dock {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1380px;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Estado colapsado: se oculta el carrusel pero queda visible la barra de cabecera */
.floating-dock.is-collapsed {
    transform: translateX(-50%) translateY(calc(100% - 48px));
}

.dock-header {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    user-select: none;
    gap: 12px;
}

.dock-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.dock-brand-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dock-logo-returq {
    height: 26px;
    width: auto;
    max-width: 125px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.dock-logo-returq:hover {
    transform: scale(1.03);
}

.dock-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.dock-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--qroo-slate);
}

.dock-counter {
    background: #fee2e2;
    color: var(--qroo-carmesi);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
}

.dock-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.dock-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--qroo-slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.dock-nav-btn:hover {
    background: var(--qroo-carmesi);
    color: #ffffff;
    border-color: var(--qroo-carmesi);
}

.dock-divider {
    width: 1px;
    height: 18px;
    background: #cbd5e1;
    margin: 0 4px;
}

.dock-toggle-btn {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--qroo-slate);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.dock-toggle-btn:hover {
    background: #f8fafc;
    color: var(--qroo-carmesi);
    border-color: var(--qroo-carmesi);
}

/* Contenedor del Carrusel Horizontal */
.dock-carousel-container {
    display: flex;
    gap: 16px;
    padding: 16px 20px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--qroo-carmesi) #f1f5f9;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x;
}

.dock-carousel-container.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.dock-carousel-container::-webkit-scrollbar {
    height: 8px;
}

.dock-carousel-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
    margin: 0 40px;
}

.dock-carousel-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #7b1e34, #ab0a3d);
    /* Color oficial SEDETUR */
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(123, 30, 52, 0.35);
}

.dock-carousel-container::-webkit-scrollbar-thumb:hover {
    background: #7b1e34;
}

/* =========================================================
 TARJETAS DE NEGOCIO EN EL DOCK
 ========================================================= */
.dock-biz-card {
    flex: 0 0 325px;
    width: 325px;
    min-height: 185px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.dock-carousel-container.is-dragging .dock-biz-card {
    cursor: grabbing !important;
}

.dock-biz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -4px rgba(123, 30, 52, 0.14);
    border-color: rgba(171, 10, 61, 0.4);
}

.dock-biz-card:active {
    cursor: grabbing;
}

.dock-biz-card.active-card {
    border: 2px solid var(--qroo-carmesi);
    box-shadow: 0 0 0 3px rgba(171, 10, 61, 0.15), 0 14px 30px rgba(123, 30, 52, 0.2);
    background: #fffdfd;
}

/* Tarjeta informativa al final del carrusel */
.dock-more-card {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 16px;
    min-height: 185px;
}

.dock-more-card:hover {
    border-color: var(--qroo-carmesi);
    background: #fffafa;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(171, 10, 61, 0.12);
}

.more-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--qroo-carmesi);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto;
}

/* Estructura Interna de la Tarjeta */
.card-main-content {
    display: flex;
    flex-direction: column;
}

.card-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.card-thumb-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}


.card-header-info {
    flex: 1;
    min-width: 0;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.card-category-badge {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 6px;
    background: #fee2e2;
    color: var(--qroo-carmesi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 155px;
}

.card-municipio-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--qroo-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--qroo-dark);
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-address-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.35;
}

.card-address-icon {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.card-address-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.card-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
    align-items: center;
}

.tag-badge {
    font-size: 0.67rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.25;
}

.tag-badge.tag-pet {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.tag-badge.tag-parking {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.tag-badge.tag-access {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Lista completa de información y contacto en la tarjeta */
.card-info-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.card-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: #334155;
    line-height: 1.3;
}

.card-info-icon {
    font-size: 0.75rem;
    width: 15px;
    text-align: center;
    flex-shrink: 0;
}

.card-info-icon.schedule {
    color: #64748b;
}

.card-info-icon.phone {
    color: #2563eb;
}

.card-info-icon.email {
    color: #dc2626;
}

.card-info-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 270px;
}

.card-footer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.btn-card-action {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-card-primary {
    background: var(--qroo-vino);
    color: #ffffff;
}

.btn-card-primary:hover {
    background: var(--qroo-carmesi);
    color: #ffffff;
}

.btn-card-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--qroo-slate);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-card-icon.whatsapp {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.btn-card-icon.whatsapp:hover {
    background: #22c55e;
    color: #ffffff;
    border-color: #22c55e;
}

.btn-card-icon.phone {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.btn-card-icon.phone:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.btn-card-icon.website {
    color: #0284c7;
    border-color: #bae6fd;
    background: #f0f9ff;
}

.btn-card-icon.website:hover {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
}

.btn-card-icon.facebook {
    color: #1877f2;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.btn-card-icon.facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.btn-card-icon.instagram {
    color: #e1306c;
    border-color: #fbcfe8;
    background: #fdf2f8;
}

.btn-card-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    border-color: #dc2743;
}

.btn-card-icon.x-twitter {
    color: #0f1419;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.btn-card-icon.x-twitter:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.popup-social-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}

.popup-social-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.popup-social-btn.whatsapp {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}
.popup-social-btn.whatsapp:hover {
    background: #22c55e;
    color: #ffffff;
}

.popup-social-btn.facebook {
    background: #eff6ff;
    color: #1877f2;
    border-color: #bfdbfe;
}
.popup-social-btn.facebook:hover {
    background: #1877f2;
    color: #ffffff;
}

.popup-social-btn.instagram {
    background: #fdf2f8;
    color: #e1306c;
    border-color: #fbcfe8;
}
.popup-social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    color: #ffffff;
}

.popup-social-btn.x-twitter {
    background: #f8fafc;
    color: #0f1419;
    border-color: #e2e8f0;
}
.popup-social-btn.x-twitter:hover {
    background: #000000;
    color: #ffffff;
}

.popup-social-btn.website {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}
.popup-social-btn.website:hover {
    background: #0ea5e9;
    color: #ffffff;
}

.popup-social-btn.email {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}
.popup-social-btn.email:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Estados vacíos */
.empty-dock-message {
    padding: 24px;
    text-align: center;
    color: var(--qroo-muted);
    font-size: 0.9rem;
    width: 100%;
}

/* =========================================================
 POPUPS Y MARCADORES LEAFLET
 ========================================================= */
.custom-pin-marker {
    background: transparent;
    border: none;
}


.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.2);
}

.leaflet-popup-content {
    margin: 0;
    line-height: 1.35;
    min-width: 200px;
    max-width: 255px;
}

.popup-card {
    padding: 10px 12px;
}

.popup-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
    margin-bottom: 6px;
    padding-right: 14px;
}

.popup-category {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--qroo-carmesi);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.popup-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--qroo-dark);
    margin: 2px 0 0 0;
    line-height: 1.25;
}

.popup-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.73rem;
    color: #475569;
    margin-bottom: 8px;
}

.popup-info-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.popup-info-item i {
    color: var(--qroo-carmesi);
    margin-top: 2px;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.popup-info-item span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popup-actions {
    display: flex;
    gap: 5px;
}

.btn-popup {
    flex: 1;
    padding: 5px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
}

/* Botón Llamar: Fondo vino, texto e iconos estrictamente blancos */
.btn-popup-primary,
.btn-popup-primary:link,
.btn-popup-primary:visited {
    background: var(--qroo-vino) !important;
    color: #ffffff !important;
}

.btn-popup-primary i {
    color: #ffffff !important;
}

.btn-popup-primary:hover,
.btn-popup-primary:active {
    background: #601528 !important;
    color: #ffffff !important;
}

/* Botón WhatsApp: Fondo verde, texto e iconos estrictamente blancos */
.btn-popup-whatsapp,
.btn-popup-whatsapp:link,
.btn-popup-whatsapp:visited {
    background: #16a34a !important;
    color: #ffffff !important;
}

.btn-popup-whatsapp i {
    color: #ffffff !important;
}

.btn-popup-whatsapp:hover,
.btn-popup-whatsapp:active {
    background: #15803d !important;
    color: #ffffff !important;
}

/* Botón Ruta: Fondo blanco con borde neutro e icono vino */
.btn-popup-outline,
.btn-popup-outline:link,
.btn-popup-outline:visited {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.btn-popup-outline i {
    color: var(--qroo-carmesi) !important;
}

.btn-popup-outline:hover,
.btn-popup-outline:active {
    background: #f8fafc !important;
    border-color: var(--qroo-carmesi) !important;
    color: var(--qroo-carmesi) !important;
}

.leaflet-popup-close-button {
    top: 6px !important;
    right: 8px !important;
    padding: 2px !important;
    color: #94a3b8 !important;
    font-size: 15px !important;
}

.leaflet-popup-close-button:hover {
    color: #334155 !important;
}

/* =========================================================
 RESPONSIVE DESIGN (MÓVILES Y PANTALLAS PEQUEÑAS)
 ========================================================= */
@media (max-width: 992px) {

    /* Ocultar botones de zoom de Leaflet en móviles (se amplía/contrae con los dedos) */
    .leaflet-control-zoom {
        display: none !important;
    }

    /* Adaptación Splash Screen en móviles */
    .splash-card {
        padding: 20px 16px;
    }

    .splash-logo-sedetur {
        max-width: 250px;
    }

    .splash-logo-returq {
        max-width: 175px;
    }

    .splash-app-title {
        font-size: 1.3rem;
    }

    .splash-app-desc {
        font-size: 0.78rem;
    }

    .splash-bottom-credit {
        font-size: 0.68rem;
        bottom: 14px;
        line-height: 1.3;
    }

    /* Popup ultra compacto en móviles para no saturar la pantalla */
    .leaflet-popup-content {
        max-width: 235px !important;
        min-width: 190px !important;
    }

    .popup-card {
        padding: 8px 10px;
    }

    .popup-title {
        font-size: 0.8rem;
    }

    .popup-body {
        font-size: 0.7rem;
        gap: 3px;
        margin-bottom: 6px;
    }

    #floating-header {
        top: 10px;
        width: calc(100% - 16px);
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }

    .floating-search-box {
        order: 1;
        width: 100%;
        flex: 1 1 100%;
        min-width: 100%;
    }

    .floating-search-input {
        font-size: 0.84rem;
    }

    .floating-search-input::placeholder {
        font-size: 0.8rem;
    }

    .floating-filters {
        order: 2;
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .filter-pill-wrapper {
        flex: 1;
    }

    .floating-filter-select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        font-size: 0.8rem;
    }

    .floating-filter-select.filter-select-giros {
        min-width: 0;
        max-width: 100%;
    }

    /* En móvil: Ocultar texto, dot verde y números según requerimiento */
    .dock-title-group,
    .dock-badge-pulse,
    .dock-label,
    .dock-counter {
        display: none !important;
    }

    .dock-header {
        padding: 7px 12px;
        justify-content: space-between;
    }

    /* En móvil: Mostrar el logo de RETUR-Q a la izquierda ocupando el espacio principal */
    .dock-brand-center {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        min-width: 0;
    }

    .dock-logo-returq {
        height: 22px;
        max-width: 95px;
    }

    .dock-actions {
        flex: 0 0 auto;
        gap: 5px;
    }

    .dock-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        border-radius: 7px;
    }

    .dock-divider {
        height: 14px;
        margin: 0 2px;
    }

    /* Ocultar texto del botón toggle en móvil para ahorrar espacio */
    #dock-toggle-text {
        display: none;
    }

    .dock-toggle-btn {
        padding: 5px 8px;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .floating-dock {
        bottom: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 16px);
        max-width: none;
        border-radius: 16px;
    }

    .floating-dock.is-collapsed {
        transform: translateX(-50%) translateY(calc(100% - 44px));
    }

    .dock-carousel-container {
        padding: 8px 10px 10px;
        gap: 10px;
        scrollbar-width: none;
    }

    .dock-carousel-container::-webkit-scrollbar {
        display: none;
    }

    /* Tarjetas más compactas y armónicas para móvil */
    .dock-biz-card {
        flex: 0 0 255px;
        width: 255px;
        min-height: auto;
        padding: 9px 11px;
        border-radius: 13px;
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
    }

    .dock-more-card {
        flex: 0 0 255px;
        width: 255px;
        min-height: auto;
        padding: 10px 12px;
        border-radius: 13px;
    }

    .card-header-flex {
        gap: 8px;
        margin-bottom: 5px;
    }

    .card-top-row {
        margin-bottom: 2px;
        gap: 4px;
    }

    .card-thumb-wrapper {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .card-title {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .card-category-badge {
        font-size: 0.6rem;
        max-width: 130px;
        padding: 2px 6px;
    }

    .card-municipio-badge {
        font-size: 0.64rem;
    }

    .card-info-list {
        gap: 3px;
        margin-bottom: 5px;
    }

    .card-info-row {
        font-size: 0.7rem;
        gap: 5px;
        line-height: 1.25;
    }

    .card-info-icon {
        font-size: 0.72rem;
        width: 14px;
    }

    .card-info-text {
        max-width: 215px;
    }

    .card-address-row {
        font-size: 0.68rem;
        margin-bottom: 4px;
    }

    .tag-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .card-footer-actions {
        padding-top: 5px;
        margin-top: 5px;
        gap: 4px;
    }

    .btn-card-action {
        font-size: 0.7rem;
        padding: 5px 8px;
        border-radius: 7px;
    }

    .btn-card-icon {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        font-size: 0.72rem;
        border-radius: 7px;
    }
}