/* 14. Responsive breakpoints (Mobile-First overrides) */
@media (max-width: 992px) {

    .detail-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Ajuste de margen para Garantías en móviles */
    .home-trust-badges-section {
        margin-top: -10px;
        margin-bottom: 20px;
    }

    .main-header {
        padding: 10px 0;
        z-index: 999999 !important;
    }

    .hamburger-menu {
        display: flex !important;
        z-index: 100001 !important;
        cursor: pointer;
    }

    .main-nav {
        position: fixed;
        top: 55px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 55px);
        background: linear-gradient(135deg, rgba(9, 13, 22, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 24px 20px;
        transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        gap: 10px;
        z-index: 100000 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0 !important;
        display: flex !important;
        visibility: visible !important;
    }

    .main-nav.active a {
        display: flex !important;
        visibility: visible !important;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -7px);
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 12px 18px !important;
        font-size: 15px;
        font-weight: 600;
        color: rgba(241, 245, 249, 0.9) !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.2s ease;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(37, 99, 235, 0.15);
        color: #60A5FA !important;
        border-color: rgba(37, 99, 235, 0.3);
        transform: translateX(4px);
    }

    .btn-login {
        background: rgba(255, 255, 255, 0.03) !important;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-align: center;
        justify-content: center;
    }

    .btn-register {
        background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
        color: #fff !important;
        border: none !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        text-align: center;
        justify-content: center;
    }

    .btn-logout {
        background: rgba(239, 68, 68, 0.1) !important;
        border-color: rgba(239, 68, 68, 0.2) !important;
        color: #F87171 !important;
        text-align: center;
        justify-content: center;
    }

    .nav-publish-mobile {
        display: block;
        width: 100%;
        background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
        color: #fff !important;
        text-align: center;
        padding: 14px;
        border-radius: 12px;
        font-weight: 800;
        font-size: 15px;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        border: none;
        margin-top: 10px;
        transition: all 0.2s ease;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-form {
        flex-direction: row;
        background: #fff;
        border-radius: 30px;
        padding: 4px 6px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        gap: 4px;
        align-items: center;
        display: flex;
    }

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

    .search-form input.search-input-field {
        width: 100%;
        padding: 8px 30px 8px 12px;
        font-size: 14px;
        border: none;
        outline: none;
        background: none;
        box-shadow: none;
    }

    .search-form button:not(.clear-search-btn) {
        width: auto;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 13px;
        box-shadow: none;
        background: var(--accent);
        color: #fff;
    }

    .ad-fallback-content {
        justify-content: center;
        text-align: center;
    }

    .float-btn-text {
        display: none;
    }

    .float-btn {
        width: 56px;
        height: 56px;
        justify-content: center;
        padding: 0;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    /* Optimización de Formularios en Pantallas Móviles */
    .form-container {
        padding: 20px 15px !important;
        margin: 15px auto !important;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
    }

    .form-container.wide {
        max-width: 100% !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .form-group {
        margin-bottom: 16px !important;
    }

    .business-fields {
        padding: 15px 12px !important;
        margin-bottom: 15px !important;
        border-radius: var(--radius-sm) !important;
    }

    .form-header {
        margin-bottom: 18px !important;
    }

    .form-header h2 {
        font-size: 22px !important;
    }

    .form-header p {
        font-size: 13px !important;
    }

    .form-group label {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 11px 14px !important;
        font-size: 16px !important;
        /* Previene el zoom automático en navegadores móviles (iOS Safari) */
    }

    .btn-submit {
        padding: 12px !important;
        font-size: 15px !important;
    }
}

/* --- OPTIMIZACIONES CRÍTICAS PARA DISPOSITIVOS MÓVILES EXTREMOS (PANTALLA NATIVA) --- */
@media (max-width: 480px) {

    /* Reducir márgenes de página globales para ganar espacio horizontal */
    .container,
    .header-container {
        padding: 0 12px !important;
    }

    /* Redimensionar cabecera para que quepa en una sola línea sin desbordar */
    .logo {
        font-size: 19px !important;
    }

    .location-selector {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    .hamburger-menu {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        z-index: 999999 !important;
        flex-shrink: 0;
    }

    /* Reducir la píldora de ubicación en pantallas muy pequeñas para no empujar el hamburger */
    .location-pill-clean {
        padding: 5px 10px !important;
        font-size: 11px !important;
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Grillas responsivas obligatorias a 1 columna */
    .grid-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Perfil de Usuario */
    .profile-card {
        padding: 16px !important;
    }

    .profile-avatar {
        width: 70px !important;
        height: 70px !important;
        font-size: 26px !important;
        margin-bottom: 10px !important;
    }

    .profile-name {
        font-size: 16px !important;
    }

    .ad-form-card {
        padding: 16px !important;
    }

    /* Detalle del Anuncio */
    .detail-main {
        padding: 16px !important;
        border-radius: var(--radius-sm) !important;
    }

    .sidebar-box {
        padding: 16px !important;
        border-radius: var(--radius-sm) !important;
    }

    .detail-image-wrapper {
        min-height: 180px !important;
    }

    .detail-title {
        font-size: 1.5rem !important;
    }

    .detail-price {
        font-size: 1.6rem !important;
    }

    /* Evitar desbordes en modales */
    .modal-overlay .ad-form-card {
        padding: 18px !important;
        width: 95% !important;
    }

    /* Optimización de banners publicitarios en móviles */
    .ad-banner-link.fallback {
        padding: 15px 20px !important;
    }

    .ad-fallback-text-wrapper {
        min-width: 180px !important;
    }

    .ad-fallback-title {
        font-size: 16px !important;
    }

    /* Optimización de tarjeta de negocio en móviles */
    .business-hero-card {
        padding: 16px !important;
    }

    .business-hero-card h2 {
        font-size: 20px !important;
    }

    /* Optimización de tarjeta de usuario en móviles */
    .user-hero-card {
        padding: 16px !important;
    }

    .user-hero-card h2 {
        font-size: 18px !important;
    }

    /* Evitar zooms forzados o desplazamientos laterales accidentales */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

/* Botón flotante rápido de WhatsApp sobre la foto en tarjetas */
.quick-wa-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #25D366;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.quick-wa-btn:hover {
    background: #20BA5A;
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.wa-btn-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* Cápsula de Precio Flotante sobre Foto (Look de App Móvil Nativa) */
.card-price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Enlace absoluto para cubrir la tarjeta completa de forma nativa */
.main-card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    /* Cubre la tarjeta para clic directo */
    cursor: pointer;
}

/* Asegurar interactividad de los botones superiores/flotantes por encima del enlace absoluto */
.fav-btn,
.quick-wa-btn {
    z-index: 5 !important;
}

.product-card {
    border-radius: 16px !important;
    /* Bordes más redondeados nativos */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    background: #fff;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.product-card:hover {
    border-color: rgba(37, 99, 235, 0.2) !important;
}

/* ==========================================================================
   15. ESTILOS DE RED SOCIAL (FEED & HISTORIAS)
   ========================================================================== */

/* Contenedor de Historias deslizables */
.stories-wrapper {
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stories-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 2px;
    scroll-snap-type: x mandatory;
}

.stories-container::-webkit-scrollbar {
    display: none;
    /* Safari/Chrome */
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 68px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
    scroll-snap-align: start;
}

.story-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-ring.active-all {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-all-btn {
    font-weight: 800;
    font-size: 11px;
    color: #1D4ED8;
    text-transform: uppercase;
}

.story-icon-fallback {
    font-size: 18px;
}

.story-name {
    font-size: 11px;
    color: var(--text-main);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: 6px;
    transition: color 0.2s;
}

.story-item:hover .story-ring {
    transform: scale(1.08) rotate(5deg);
}

.story-item:hover .story-name {
    color: var(--primary);
}

/* Feed Único Vertical estilo Red Social (Instagram/X) */
.social-feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0 40px 0;
}

/* Tarjeta de Publicación Social */
.social-post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.social-post-card:hover {
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.post-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-grow: 1;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

.verified-check {
    color: #3B82F6;
    font-size: 12px;
}

.post-badge-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
}

.post-meta-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
}

.post-price-inline {
    background: #EFF6FF;
    color: #2563EB;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.post-title a:hover {
    color: var(--primary);
}

.post-desc {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

/* Multimedia e Imagen */
.post-media-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border: 1px solid var(--border);
}

.post-media-img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.post-media-wrapper:hover .post-media-img {
    transform: scale(1.02);
}

.post-price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Barra de Acciones Sociales */
.post-actions-bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}

.post-action-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    text-decoration: none;
    outline: none;
}

.post-action-btn:hover {
    background: #F1F5F9;
    color: var(--dark);
}

.post-action-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.heart-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: all 0.2s;
}

.post-action-btn.like-btn:hover {
    color: #EF4444;
    background: #FEE2E2;
}

.post-action-btn.like-btn.active {
    color: #EF4444;
}

.post-action-btn.like-btn.active .heart-icon {
    fill: #EF4444;
    stroke: #EF4444;
    transform: scale(1.1);
}

.post-action-btn.wa-social-btn:hover {
    background: #E8F8F0;
    color: #25D366;
}

.post-action-btn.share-btn:hover {
    background: #EFF6FF;
    color: #3B82F6;
}

/* Ajustes Responsivos Móviles */
@media (max-width: 480px) {
    .social-feed-container {
        padding: 5px 0 30px 0;
        gap: 15px;
    }

    .social-post-card {
        border-radius: 12px;
        padding: 14px;
    }

    .post-actions-bar {
        padding-top: 10px;
    }

    .post-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .like-label {
        display: none;
        /* Ocultar texto en móviles para más espacio */
    }
}

/* Visor de Historias Interactivas a Pantalla Completa */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.story-viewer-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    max-height: 820px;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .story-viewer-container {
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
    }
}

.story-progress-container {
    position: absolute;
    top: 15px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.story-progress-tick {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
}

.story-viewer-header {
    position: absolute;
    top: 28px;
    left: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    color: #fff;
}

.story-viewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.story-viewer-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-grow: 1;
}

.story-viewer-author {
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.story-viewer-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.story-viewer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    outline: none;
    padding: 0 5px;
    transition: transform 0.2s;
}

.story-viewer-close:hover {
    transform: scale(1.15);
}

.story-tap-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 8;
    cursor: pointer;
}

.story-tap-zone.left {
    left: 0;
}

.story-tap-zone.right {
    right: 0;
}

.story-viewer-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.story-viewer-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
    display: block;
}

.story-viewer-caption {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Subir la descripción cuando hay CTAs comerciales para evitar solapamientos */
.story-viewer-caption.with-cta {
    bottom: 140px;
}

/* Botón Ver Producto con efecto pulso neón */
.story-product-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: storyPulse 2s infinite;
}

.story-product-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

/* Botón WhatsApp */
.story-wa-social-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.story-wa-social-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

@keyframes storyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Barra de Navegación Flotante Inferior para Móviles (Estilo App Nativa) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 19, 34, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 9999;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    gap: 3px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    transition: color 0.2s, transform 0.1s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item span:last-child {
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

.mobile-nav-item:active {
    transform: scale(0.95);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-icon {
    font-size: 20px;
    line-height: 1;
}

/* Botón Central Publicar Rápido (+ Publicar) */
.mobile-nav-item.publish-center {
    position: relative;
    margin-top: -26px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item.publish-center .mobile-nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%); /* Degradado de oro / ambar premium */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); /* Sombra ambar brillante */
    border: 3px solid #fff;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-item.publish-center:hover .mobile-nav-icon {
    transform: translateY(-3px) scale(1.05);
}

/* ─── Overlay del Menú de Publicar Rápido (Bottom Sheet) ─────────────────── */
.publish-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    z-index: 999999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: flex-end;
    justify-content: center;
}

.publish-menu-overlay.is-open {
    display: flex;
}

/* ─── Sheet del Menú de Publicar Rápido ─────────────────────────────────── */
.publish-menu-sheet {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.99) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 32px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-overflow-scrolling: touch;
}

.publish-menu-overlay.is-open .publish-menu-sheet {
    transform: translateY(0);
}

/* Cabecera del sheet */
.publish-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.publish-menu-title {
    font-size: 16px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0;
}

.publish-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 12px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.publish-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Opción individual del sheet */
.publish-menu-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.publish-menu-opt:hover,
.publish-menu-opt:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.publish-menu-opt__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.publish-menu-opt__icon--blue   { background: rgba(37, 99, 235, 0.15); border: 1px solid rgba(37, 99, 235, 0.25); }
.publish-menu-opt__icon--green  { background: rgba(22, 163, 74, 0.15);  border: 1px solid rgba(22, 163, 74, 0.25); }
.publish-menu-opt__icon--red    { background: rgba(244, 63, 94, 0.15);  border: 1px solid rgba(244, 63, 94, 0.25); }
.publish-menu-opt__icon--amber  { background: rgba(217, 119, 6, 0.15);  border: 1px solid rgba(217, 119, 6, 0.25); }
.publish-menu-opt__icon--purple { background: rgba(147, 51, 234, 0.15); border: 1px solid rgba(147, 51, 234, 0.25); }

.publish-menu-opt__label {
    display: block;
    font-size: 13px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}

.publish-menu-opt__sub {
    font-size: 10px;
    color: #94A3B8;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.publish-menu-opt__sub--warn {
    color: #F87171;
    font-weight: 700;
}

/* Padding en el body de móviles para evitar que la barra cubra contenido */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 75px !important;
    }

    /* Ocultar el botón flotante antiguo en móviles ya que tenemos la barra inferior */
    .float-btn {
        display: none !important;
    }
}

/* Transiciones interactivas para hilos de comentarios públicos */
.social-comment-input {
    transition: all 0.2s ease-in-out;
}

.social-comment-input:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Bandeja Deslizable de Compartir Historias (Glassmorphic Share Drawer) */
.story-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeInBg 0.25s ease;
}

.story-share-drawer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 450px;
    border-radius: 24px 24px 0 0;
    padding: 20px 24px 30px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUpDrawer 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
}

.share-drawer-handle {
    width: 40px;
    height: 5px;
    background: #CBD5E1;
    border-radius: 3px;
    margin: 0 auto 20px auto;
    cursor: pointer;
    transition: background 0.2s;
}

.share-drawer-handle:hover {
    background: #94A3B8;
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Animaciones de entrada */
@keyframes fadeInBg {
    from {
        background: rgba(0, 0, 0, 0);
    }

    to {
        background: rgba(0, 0, 0, 0.6);
    }
}

@keyframes slideUpDrawer {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Banners Patrocinados en el Feed Social */
.ad-feed_inline {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    overflow: hidden;
}

.ad-feed_inline .ad-banner-link {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.ad-feed_inline .ad-banner-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.ad-feed_inline .ad-fallback-content {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px dashed #F59E0B;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    color: #92400E;
    text-align: left;
}

.ad-feed_inline .ad-fallback-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #78350F;
}

.ad-feed_inline .ad-fallback-desc {
    font-size: 12px;
    margin: 0;
    color: #B45309;
}

.ad-feed_inline .ad-fallback-btn {
    background: #F59E0B;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
    white-space: nowrap;
}

.mobile-publish-opt:active {
    transform: scale(0.97) !important;
}

/* Tablas de Administración Premium */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    background: #F8FAFC;
    color: #475569;
    font-weight: 800;
    padding: 14px 18px;
    border-bottom: 1px solid #E2E8F0;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #F1F5F9;
    color: #1E293B;
    vertical-align: middle;
}

.admin-table td:last-child {
    white-space: nowrap;
}

.admin-actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: #F8FAFC;
}

/* Diseño de Menú Justificado en Cuadrícula */
.admin-modules-flex {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    width: 100%;
}

.admin-modules-flex>div {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 18px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    flex: none !important;
    /* Desactivar flex-grow desigual */
}

.admin-modules-flex>div>span {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #475569 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
}

/* Botones de acción tipo píldora */
.action-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    margin: 2px !important;
    text-decoration: none !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.action-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.link-delete {
    background: #EF4444 !important;
}

.link-delete:hover {
    background: #DC2626 !important;
}

.link-edit {
    background: var(--primary) !important;
}

.link-edit:hover {
    background: var(--primary-hover) !important;
}

.link-toggle {
    background: #64748B !important;
}

.link-toggle.active {
    background: var(--success) !important;
}

.link-premium {
    background: #F59E0B !important;
}

.link-premium:hover {
    background: #D97706 !important;
}

/* Botones de Pestañas del Administrador */
.admin-tab-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #E2E8F0;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.admin-tab-btn:hover {
    background: #F1F5F9;
    color: var(--primary);
    border-color: #CBD5E1;
}

.admin-tab-btn.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15) !important;
}

/* ==========================================
   DASHBOARD SaaS - ESTILO GRANDES EMPRESAS
   ========================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #F8FAFC;
    font-family: 'Outfit', sans-serif;
}

/* Sidebar Estilo SaaS */
.admin-sidebar {
    width: 280px;
    background: #0F172A;
    /* Slate 900 */
    color: #F8FAFC;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid #1E293B;
    transition: all 0.3s ease;
}

.admin-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #1E293B;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-header h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #FFF;
    letter-spacing: -0.5px;
}

.admin-sidebar-menu {
    flex: 1;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
}

.admin-menu-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-menu-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748B;
    /* Slate 500 */
    padding-left: 12px;
    margin-bottom: 4px;
}

/* Reemplaza .admin-tab-btn con el estilo premium del sidebar */
.admin-sidebar-menu .admin-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94A3B8;
    /* Slate 400 */
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: none;
}

.admin-sidebar-menu .admin-tab-btn:hover {
    background: #1E293B;
    /* Slate 800 */
    color: #FFF;
}

.admin-sidebar-menu .admin-tab-btn.active {
    background: #3B82F6 !important;
    /* Blue 500 */
    color: #FFF !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
}

/* Área de Contenido Principal */
.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    width: calc(100% - 280px);
}

/* Topbar del Dashboard */
.admin-topbar {
    height: 70px;
    background: #FFF;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.admin-topbar-left h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: #0F172A;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-content-body {
    padding: 30px;
    flex: 1;
}

/* Adaptación Móvil */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .admin-topbar {
        padding: 0 20px;
    }
}

/* Panel de Créditos y VIP del Conductor */
.driver-monet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.monetization-col {
    border-right: 1px solid var(--border);
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .driver-monet-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px 15px !important;
    }

    .monetization-col {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
        padding-right: 0 !important;
        padding-bottom: 20px !important;
    }
}

/* Interruptor de Consola del Conductor (iOS / WeChat Style) */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.switch-toggle input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 5;
    cursor: pointer;
    margin: 0;
}

.slider-toggle-btn {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #EF4444;
    transition: .4s;
    border-radius: 34px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    z-index: 1;
}

.slider-toggle-btn:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.switch-toggle input:checked+.slider-toggle-btn {
    background-color: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.switch-toggle input:checked+.slider-toggle-btn:before {
    transform: translateX(28px);
}

/* Optimizaciones de Perfil Responsivo (Móvil) */
@media (max-width: 768px) {

    /* Compactar Tarjeta de Héroe */
    .business-hero-card {
        padding: 15px 18px !important;
        margin-top: 15px !important;
        gap: 12px !important;
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
    }

    .business-hero-card h2 {
        font-size: 18px !important;
    }

    .business-hero-card p {
        font-size: 11px !important;
    }

    .business-hero-card div[style*="width:80px"],
    .business-hero-card div[style*="width:90px"] {
        width: 55px !important;
        height: 55px !important;
        border-width: 2px !important;
    }

    .business-hero-card span[style*="font-size:38px"],
    .business-hero-card span[style*="font-size:36px"] {
        font-size: 26px !important;
    }

    .business-hero-card .btn-submit {
        padding: 10px 20px !important;
        font-size: 12px !important;
        width: 100% !important;
        justify-content: center;
    }

    /* Pestañas Operaciones Horizontales */
    .profile-sidebar-wrapper {
        margin-top: 15px !important;
        margin-bottom: 5px !important;
        width: 100% !important;
    }

    .profile-sidebar-wrapper .profile-card {
        padding: 8px 5px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-align: left !important;
    }

    .profile-sidebar-wrapper h4 {
        display: none !important;
    }

    .profile-sidebar-wrapper div[style*="flex-direction:column"],
    .profile-sidebar-wrapper div[style*="flex-direction: column"] {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 8px !important;
        padding: 2px 2px 8px 2px !important;
        display: flex !important;
        scrollbar-width: none;
        /* Ocultar barra Firefox */
    }

    .profile-sidebar-wrapper div[style*="flex-direction:column"]::-webkit-scrollbar {
        display: none;
        /* Ocultar barra Chrome/Safari */
    }

    .profile-sidebar-wrapper button.tab-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        text-align: center !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        background: rgba(15, 23, 42, 0.05) !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 20px !important;
        color: #1E293B !important;
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
    }

    .profile-sidebar-wrapper button.tab-btn.active {
        background: var(--primary) !important;
        color: #fff !important;
        border-color: var(--primary) !important;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
    }

    .profile-sidebar-wrapper .btn-view-details {
        margin-top: 10px !important;
        border-radius: 20px !important;
        padding: 6px 16px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        display: inline-block !important;
        width: auto !important;
        border-color: #EF4444 !important;
        color: #EF4444 !important;
        background: rgba(239, 68, 68, 0.05) !important;
    }
}

/* Grilla de Métricas del Conductor */
.driver-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .driver-metrics-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Cabecera del Centro de Mando del Conductor */
.driver-console-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #334155;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .driver-console-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 15px !important;
        gap: 15px !important;
    }

    .driver-console-card>div {
        width: 100% !important;
    }

    .driver-console-card h3 {
        font-size: 18px !important;
    }

    .driver-console-card span {
        font-size: 11px !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    .driver-console-card .switch-toggle-wrapper {
        width: 100% !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
}

/* Forzar bloqueo de desbordamiento horizontal en móviles */
@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 10px !important;
        overflow-x: hidden !important;
    }

    .profile-layout {
        display: block !important;
        width: 100% !important;
        margin-top: 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .profile-main {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding: 0 !important;
    }

    .driver-console-card,
    .driver-metrics-grid,
    .driver-monet-grid {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .driver-active-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 15px !important;
    }

    #driver-navigation-map {
        height: 320px !important;
    }

    /* VISTA CONDUCTOR ONLINE - ESTILO APP NATIVA */
    .driver-online-layout {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999 !important;
        background: #0F172A !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .driver-online-layout #driver-bg-map {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        z-index: 1 !important;
        display: block !important;
    }

    /* Ocultar textos explicativos de la consola para encoger la cabecera */
    .driver-online-layout .driver-console-card h3,
    .driver-online-layout .driver-console-card span {
        display: none !important;
    }

    .driver-online-layout .driver-console-card {
        position: absolute !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: auto !important;
        min-width: 150px !important;
        z-index: 10 !important;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        border-radius: 30px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
        padding: 6px 12px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .driver-online-layout .driver-console-card .switch-toggle-wrapper {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    /* Ocultar metricas, VIP y creditos en la consola activa por defecto */
    .driver-online-layout .driver-metrics-grid,
    .driver-online-layout .driver-monet-grid {
        display: none !important;
    }

    .driver-online-layout .driver-floating-panel {
        position: absolute !important;
        bottom: 80px !important;
        /* Despejar el menu inferior del sitio */
        left: 12px !important;
        right: 12px !important;
        z-index: 10 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-radius: 20px !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15) !important;
        padding: 15px !important;
        max-height: 220px !important;
        overflow-y: auto !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        animation: driverSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .driver-online-layout #driver-active-ride-panel {
        order: 1 !important;
    }

    .driver-online-layout .driver-radar-card-wrapper {
        order: 2 !important;
    }

    .driver-online-layout .driver-metrics-grid {
        order: 3 !important;
    }

    .driver-online-layout .driver-monet-grid {
        order: 4 !important;
    }

    .driver-online-layout .driver-floating-panel .bottom-sheet-handle {
        display: block !important;
    }

    /* Auto-expandir cuando hay contenido activo */
    .driver-online-layout .driver-floating-panel.has-content {
        max-height: 380px !important;
    }

    /* Cuando esta expandido, permitir ver metricas e ingresos */
    .driver-online-layout .driver-floating-panel.expanded {
        max-height: 60vh !important;
    }

    .driver-online-layout .driver-floating-panel.expanded .driver-metrics-grid,
    .driver-online-layout .driver-floating-panel.expanded .driver-monet-grid {
        display: grid !important;
    }

    .leaflet-pulsing-circle {
        transform-origin: center;
        animation: leafletPulse 2s infinite ease-out !important;
    }

    .driver-online-layout .map-theme-toggle-btn {
        display: flex !important;
    }

    .driver-online-layout .btn-simulate-ride-btn {
        display: flex !important;
    }

    body.driver-is-online .main-header {
        display: none !important;
    }
}

@keyframes leafletPulse {
    0% {
        stroke-opacity: 0.8;
        fill-opacity: 0.2;
        transform: scale(0.85);
    }

    100% {
        stroke-opacity: 0;
        fill-opacity: 0;
        transform: scale(1.25);
    }
}

@keyframes driverSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes countdownTimer {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes pulseRadar {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

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

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

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.pulse-radar-ring {
    width: 14px;
    height: 14px;
    background: #10B981;
    border-radius: 50%;
    animation: pulseRadar 2s infinite;
}

/* EFECTO FLUJO DE RUTA ANIMADO */
@keyframes routeFlowAnimation {
    to {
        stroke-dashoffset: -20;
    }
}

.leaflet-route-flow {
    stroke-dasharray: 10, 10;
    animation: routeFlowAnimation 1s linear infinite !important;
}

/* SWIPE TO ACCEPT (DESLIZAR PARA ACEPTAR) */
.swipe-accept-container {
    position: relative;
    width: 100%;
    height: 48px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.swipe-accept-text {
    font-size: 13px;
    font-weight: 800;
    color: #64748B;
    pointer-events: none;
    animation: pulseText 1.5s infinite;
}

.swipe-accept-handle {
    position: absolute;
    left: 2px;
    width: 44px;
    height: 44px;
    background: #10B981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: grab;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
    transition: left 0.1s ease-out;
}

.swipe-accept-handle:active {
    cursor: grabbing;
    background: #059669;
}

/* CHAT DE MENSAJERIA RAPIDA DIRECTO */
.driver-chat-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: 100000;
    display: flex;
    align-items: flex-end;
}

.driver-chat-window {
    width: 100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: driverSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   16. OPTIMIZACIONES PREMIUM PARA LA CONSOLA DE SUBASTA
   ========================================================================== */
.auction-live-console {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-left: 5px solid var(--primary) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin: 25px 0 !important;
    box-shadow: var(--shadow-md) !important;
}

.auction-console-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin-bottom: 16px !important;
}

.auction-metric-card {
    background: var(--bg) !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    transition: var(--transition) !important;
}

.auction-metric-card:hover {
    border-color: rgba(37, 99, 235, 0.2) !important;
    background: #fff !important;
}

.badge-status-live {
    background: #D1FAE5 !important;
    color: #065F46 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.badge-status-ended {
    background: #FEE2E2 !important;
    color: #991B1B !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.bid-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.bid-input-currency {
    position: absolute;
    left: 16px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.bid-field {
    width: 100%;
    padding: 14px 16px 14px 32px !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    outline: none !important;
    background: var(--bg) !important;
    transition: var(--transition) !important;
}

.bid-field:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
}

.bid-history-timeline {
    max-height: 220px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.bid-history-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    font-size: 13px !important;
    transition: var(--transition) !important;
}

.bid-history-item.leader {
    background: var(--primary-light) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

.badge-leader-tag {
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 6px;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }

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

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 2s infinite ease-in-out;
}

/* --- Header Progressive Responsive: Desktop Degradation --- */

/* 1. < 1400px: Ocultar nombre de usuario para ganar ~100px */
@media (max-width: 1400px) {
    .nav-username {
        display: none !important;
    }
}

/* 2. < 1250px: Ocultar emojis + reducir font para ganar ~150px más */
@media (max-width: 1250px) and (min-width: 769px) {
    .nav-icon {
        display: none !important;
    }
    .nav-link {
        font-size: 13px;
        padding: 6px 8px;
    }
    .location-selector {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 3. < 1100px: Cabecera en columna, nav centrado con wrap */
@media (max-width: 1100px) and (min-width: 769px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 0 15px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 10px;
        width: 100%;
    }
    .btn-login,
    .btn-register {
        padding: 6px 12px !important;
        font-size: 13px;
    }
}

/* ==========================================================================
   17. OPTIMIZACIONES Y MEJORAS DE UX PARA EL HOME (ALIANZAGSM)
   ========================================================================== */

/* Botón de borrado rápido en el buscador */
.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.clear-search-btn:hover {
    color: #475569;
}


/* Esqueletos de Carga con efecto de animación pulsante */
@keyframes skeletonPulse {
    0% {
        background-color: #E2E8F0;
    }

    50% {
        background-color: #F1F5F9;
    }

    100% {
        background-color: #E2E8F0;
    }
}

.skeleton-pulse {
    animation: skeletonPulse 1.5s infinite ease-in-out;
    border-radius: 4px;
}

/* Estilo para las burbujas del Bubble Map y visor de historias */
.stories-wrapper {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Luces indicadoras de actividad en vivo (Radar) */
@keyframes activeRadarPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

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

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

.radar-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.radar-live-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: activeRadarPulse 2s infinite;
}

/* Fallback Estetizado de Publicaciones Vacías */
.empty-feed-card {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    margin: 30px auto;
}

.empty-feed-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    animation: wobble-phone 2s infinite alternate;
}

.empty-feed-title {
    font-size: 16px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 8px;
}

.empty-feed-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Clases semánticas de estilo para quitar inline de index.php */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 40px 0 30px 0;
    background: radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.2) 0%, rgba(30, 58, 138, 0) 50%), linear-gradient(135deg, var(--dark) 0%, #1E3A8A 100%);
}

.hero-glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.06);
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.05);
    filter: blur(40px);
    pointer-events: none;
}

.muni-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    z-index: 100;
}

.muni-dropdown-btn {
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #93C5FD;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.muni-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.muni-dropdown-list {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 180px;
    overflow: hidden;
    z-index: 1000;
    animation: scaleIn 0.2s ease;
}

.muni-dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #1E293B;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.muni-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.hero-main-title {
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-span-muni {
    background: linear-gradient(90deg, #60A5FA, #2563EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto 15px auto;
    font-weight: 500;
}

.search-form-container {
    max-width: 650px;
    margin: 0 auto 15px auto;
    position: relative;
}

.search-input-field {
    border: none;
    outline: none;
    background: none;
    padding: 10px 40px 10px 20px;
    font-size: 15px;
    flex: 1;
    font-weight: 500;
    width: 100%;
}

.search-submit-btn {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    transition: all 0.2s;
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35);
}

/* Carrusel de Categorías Innovador */
.categories-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
}

.categories-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px 8px;
    flex-wrap: wrap;
    padding: 10px 0;
    transition: all 0.3s;
}

.category-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 700;
    margin-right: 4px;
}

.category-pill {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 6px 14px;
    color: #E2E8F0;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

.category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.category-pill.coupon-active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #FBBF24;
    color: #FBBF24;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.category-pill.coupon-pill:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #FBBF24;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .categories-carousel-wrapper {
        margin-top: 15px;
    }

    .category-label {
        display: none;
    }

    .categories-carousel {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 5px 15px 12px 15px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        gap: 10px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 15px;
    }

    .categories-carousel::-webkit-scrollbar {
        display: none;
        /* Safari y Chrome */
    }

    .category-pill {
        scroll-snap-align: start;
    }

    .categories-carousel-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 40px;
        background: linear-gradient(to left, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
        pointer-events: none;
        z-index: 5;
    }

    .category-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ==========================================================================
   SKELETON LOADERS PREMIUM (SHIMMER EFFECT)
   ========================================================================== */
.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmer-swipe 1.6s infinite;
    z-index: 2;
}

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

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

.skeleton-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.skeleton-title-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.price {
    width: 40%;
    height: 18px;
    background: rgba(245, 158, 11, 0.15);
}

.skeleton-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.skeleton-btn {
    flex: 1;
    height: 38px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
}

.skeleton-btn.accent {
    background: rgba(37, 99, 235, 0.15);
}

#feedSentinel {
    grid-column: 1 / -1;
    width: 100%;
    height: 10px;
    background: transparent;
    pointer-events: none;
}

#feedSkeletonContainer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* ==========================================================================
   17. ESTILOS DEL BUBBLE MAP MODAL (EXPLORAR HISTORIAS)
   ========================================================================== */
.bubble-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: none; /* Se activa como flex por JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bubble-modal-content {
    background: #0F172A; /* Slate 900 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 320px;
    min-height: 380px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: bubbleModalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubbleModalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.bubble-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    outline: none;
}

.bubble-close-btn:hover {
    color: #fff;
}

.bubble-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.bubble-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.bubble-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 10px 0 4px 0;
}

.bubble-subtitle {
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 20px;
}

.bubble-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-top: 10px;
    overflow: visible;
}

/* Burbujas del Mapa de Categorías */
.bubble-item {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bubble-item:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.15);
}

.bubble-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.bubble-name {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Burbujas del Mapa de Comercios */
.bubble-biz {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.bubble-biz:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.bubble-biz img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble-biz-name {
    position: absolute;
    bottom: -18px;
    left: -20px;
    right: -20px;
    font-size: 8px;
    font-weight: 800;
    color: #E2E8F0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Animaciones flotantes para burbujas */
@keyframes float-bubble {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes pop-bubble-effect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* ==========================================================================
   18. TARJETAS DE NEGOCIOS DESTACADOS (RECOMENDADOS PARA TI)
   ========================================================================== */
.featured-biz-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 4px 16px 4px;
    scrollbar-width: none; /* Ocultar barra Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.featured-biz-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.featured-biz-card {
    flex: 0 0 170px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.featured-biz-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

.featured-biz-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.featured-biz-badge.open {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.featured-biz-badge.closed {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.featured-biz-badge .badge-dot {
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
}

.featured-biz-badge.open .badge-dot {
    animation: activeRadarPulse 1.8s infinite;
}

.featured-biz-verified {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.featured-biz-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    background: #F8FAFC;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    margin-top: 12px;
    transition: var(--transition);
}

.featured-biz-card:hover .featured-biz-logo {
    border-color: rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

.featured-biz-name {
    font-size: 13px;
    font-weight: 800;
    color: #1E293B;
    margin: 0 0 4px 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
}

.featured-biz-cat {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 14px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-biz-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: auto;
}

.featured-biz-btn-wa {
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 7px 0;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.2);
    transition: var(--transition);
}

.featured-biz-btn-wa:hover {
    background: #20BA5A;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(37, 211, 102, 0.3);
}

.featured-biz-btn-follow {
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    padding: 7px 0;
    width: 100%;
    transition: var(--transition);
    outline: none;
}

.featured-biz-btn-follow.following {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.featured-biz-btn-follow.not-following {
    background: var(--primary);
    color: #fff;
}

.featured-biz-btn-follow.not-following:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   19. CLASES DE LIMPIEZA INLINE PARA EL HOME Y SORTEOS
   ========================================================================== */

/* Buscador Principal Hero */
.hero-search-form {
    background: #fff;
    border-radius: 30px;
    padding: 6px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 101;
}

.hero-search-suggestions {
    display: none;
    position: absolute;
    top: 110%;
    left: 15px;
    right: 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
    text-align: left;
}

/* Animación brillo de píldora de cupones */
.coupon-pill-glow {
    animation: pulse-glow 2s infinite;
}

/* Tarjeta Sorteo Rápido en el Feed (¿Suerte Hoy?) */
.shake-feed-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    margin-bottom: 20px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.shake-feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
    border-color: #3B82F6;
}

.shake-feed-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    z-index: 5;
    transition: var(--transition);
    outline: none;
}

.shake-feed-close:hover {
    color: #fff;
}

.shake-feed-glow {
    position: absolute;
    top: -30%;
    right: -30%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(245,158,11,0.08);
    filter: blur(40px);
    pointer-events: none;
}

.shake-feed-icon {
    font-size: 40px;
    margin-bottom: 12px;
    animation: wobble-phone 0.6s ease infinite alternate;
    display: inline-block;
}

.shake-feed-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 6px 0;
    color: #fff;
}

.shake-feed-text {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    margin: 0 0 16px 0;
    max-width: 200px;
}

.shake-feed-btn {
    font-size: 11px;
    font-weight: 800;
    background: rgba(245,158,11,0.2);
    color: #FBBF24;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(245,158,11,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.shake-feed-card:hover .shake-feed-btn {
    background: rgba(245,158,11,0.3);
    border-color: #FBBF24;
}

/* Modal Completo Sorteo WeChat Shake */
.shake-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15,23,42,0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.shake-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: var(--transition);
    outline: none;
}

.shake-modal-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.shake-animation-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.shake-animation-phone {
    font-size: 80px;
    transition: transform 0.1s;
    animation: wobble-phone 0.3s ease infinite alternate;
    display: inline-block;
}

.shake-animation-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.5px;
    text-align: center;
}

.shake-animation-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    text-align: center;
}

/* Contenedor del Juego */
.scratch-game-container {
    display: none;
    position: relative;
    width: 90%;
    max-width: 320px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.scratch-result-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid #FBBF24;
    border-radius: 24px;
    padding: 25px 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.scratch-glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(245,158,11,0.06);
    filter: blur(30px);
    pointer-events: none;
}

.scratch-glow-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(245,158,11,0.06);
    filter: blur(30px);
    pointer-events: none;
}

.scratch-badge {
    font-size: 10px;
    font-weight: 800;
    background: rgba(245,158,11,0.15);
    color: #FBBF24;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(245,158,11,0.3);
    text-transform: uppercase;
}

.scratch-biz-logo-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 3px solid #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scratch-biz-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scratch-biz-name {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 2px 0;
    color: #fff;
}

.scratch-biz-cat {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.scratch-coupon-box {
    width: 100%;
    background: rgba(245,158,11,0.08);
    border: 2px dashed #FBBF24;
    border-radius: 16px;
    padding: 12px;
    box-sizing: border-box;
}

.scratch-coupon-box * {
    box-sizing: border-box;
}

.scratch-coupon-label {
    font-size: 9px;
    color: #FBBF24;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.scratch-coupon-code {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1.5px;
    font-family: monospace;
    margin-bottom: 4px;
}

.scratch-coupon-discount {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 700;
}

.scratch-btn-wa {
    width: 100%;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    transition: var(--transition);
    box-sizing: border-box;
}

.scratch-btn-wa:hover {
    background: #20BA5A;
    box-shadow: 0 6px 16px rgba(37,211,102,0.45);
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    cursor: crosshair;
    touch-action: none;
    z-index: 10;
    transition: opacity 0.5s ease;
}

/* Banner de Monetización Patrocinado */
.scratch-ad-banner {
    margin-top: 20px;
    width: 90%;
    max-width: 320px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    box-sizing: border-box;
    transition: var(--transition);
}

.scratch-ad-banner:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.scratch-ad-img-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.scratch-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scratch-ad-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #FBBF24;
    color: #1E293B;
    font-size: 7px;
    font-weight: 900;
    padding: 1px 3px;
    border-radius: 3px 0 0 0;
    text-transform: uppercase;
}

.scratch-ad-body {
    flex-grow: 1;
    text-align: left;
    overflow: hidden;
}

.scratch-ad-subtitle {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scratch-ad-title {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scratch-ad-desc {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scratch-ad-arrow {
    font-size: 12px;
    color: #FBBF24;
}

/* Fallback: Banner para vender espacio */
.scratch-ad-fallback {
    margin-top: 20px;
    width: 90%;
    max-width: 320px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    box-sizing: border-box;
    transition: var(--transition);
}

.scratch-ad-fallback:hover {
    background: rgba(255,255,255,0.08);
}

.scratch-ad-fallback-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.scratch-ad-fallback-body {
    flex-grow: 1;
    text-align: left;
}

.scratch-ad-fallback-title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.scratch-ad-fallback-desc {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
}

.scratch-ad-fallback-btn {
    font-size: 10px;
    background: #fff;
    color: #1E293B;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* Título encabezado de sello de confianza */
.trust-section-heading {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
}

/* Botón CTA publicar en feed vacío */
.btn-publish-cta {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 700;
}

/* Sección Recomendados para ti */
.featured-biz-section {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 30px;
}

.featured-biz-header {
    margin-bottom: 12px;
}

.featured-biz-title {
    font-size: 16px;
    font-weight: 800;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Enlace clickable del negocio recomendado */
.featured-biz-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Imagen del logo del negocio */
.featured-biz-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ícono fallback cuando no hay logo */
.featured-biz-icon-fallback {
    font-size: 24px;
}

/* Botón Limpiar Filtros */
.btn-clear-filters {
    background: #fff;
    font-size: 13px;
    padding: 6px 12px;
}

/* ==========================================================================
   20. SUGERENCIAS BUSCADOR AJAX (AUTOCOMPLETE ROWS)
   ========================================================================== */

.suggest-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    text-decoration: none;
    color: #1E293B;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: background 0.2s;
}

.suggest-row:hover {
    background: #F1F5F9;
}

.suggest-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.suggest-avatar-icon {
    font-size: 16px;
    background: #F1F5F9;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggest-body {
    flex: 1;
    overflow: hidden;
}

.suggest-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.suggest-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
}

.suggest-badge-biz {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
}

.suggest-badge-post {
    background: rgba(236,72,153,0.1);
    color: #EC4899;
}

/* Alertas de dashboard global */
.dashboard-alert-notif {
    margin-top: 20px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #1E40AF;
    border: 1px solid #BFDBFE;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(37,99,235,0.05);
}

.dashboard-alert-notif__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-alert-notif__icon {
    font-size: 18px;
}

.dashboard-alert-notif__text {
    font-size: 13px;
    font-weight: 600;
}

.dashboard-alert-notif__btn {
    background: #1E40AF;
    color: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.2s;
}

.dashboard-alert-success-custom {
    margin-top: 20px;
    background: #DEF7EC;
    color: #03543F;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #BCF0DA;
}

.dashboard-alert-error-custom {
    margin-top: 20px;
    background: #FDE8E8;
    color: #9B1C1C;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #FBD5D5;
}

/* Not found view styles */
.not-found-container {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
}

.not-found-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.not-found-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.not-found-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.not-found-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.not-found-btn {
    display: inline-block;
    width: auto;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
}