/* ==========================================================================
   DIRECTORIO PRO (1CLIC.ONLINE) — SISTEMA DE DISEÑO APP MÓVIL + WEB PRO
   Dual Experience: Desktop Editorial & Mobile Native-App Shell
   ========================================================================== */

:root {
    --shell-max: 1220px;
    --ink-950: #0b1120;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --surface-0: #ffffff;
    --surface-50: #f8fafc;
    --surface-100: #f1f5f9;
    --brand-indigo: #4f46e5;
    --brand-indigo-dark: #3730a3;
    --brand-emerald: #059669;
    --brand-gold: #f59e0b;
    --brand-rose: #e11d48;
}

body.has-app-shell {
    padding-top: 0;
    padding-bottom: 48px;
}

/* ==========================================================================
   1. STICKY TOP NAVBAR (DESKTOP PRO + COMPACT MOBILE HEADER)
   ========================================================================== */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.06);
    overflow-x: clip;
}

.app-topbar-inner {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0.72rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink-900);
    flex-shrink: 0;
    min-width: 0;
}

.app-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #059669 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.app-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-brand-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-900);
}

.app-brand-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-500);
}

.app-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.app-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-700);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.app-nav-link:hover,
.app-nav-link.active {
    background: #eef2ff;
    color: #4338ca;
}

.app-nav-link.is-live-stories {
    color: #be123c;
}

.app-nav-link.is-live-stories:hover,
.app-nav-link.is-live-stories.active {
    background: #fff1f2;
    color: #be123c;
}

.app-nav-ctas {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.btn-top-panel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--ink-900);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-top-panel:hover {
    background: #e2e8f0;
}

.btn-top-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.54rem 1.05rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.btn-top-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.36);
}

/* ==========================================================================
   2. SHELL CONTAINER WIDENING FOR PROFESSIONAL DESKTOP
   ========================================================================== */
.app-shell-container {
    max-width: var(--shell-max);
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

/* ==========================================================================
   3. PRESENTATION LANDING (EXPLAINING WHAT DIRECTORIO PRO IS + $15 VIP)
   ========================================================================== */
.landing-hero-card {
    position: relative;
    background: linear-gradient(135deg, #0b1120 0%, #111827 52%, #172554 100%);
    color: #f8fafc;
    border-radius: 26px;
    padding: 2.5rem 2.25rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 24px 50px -15px rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.landing-hero-glow-1 {
    position: absolute;
    top: -90px;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.36) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero-glow-2 {
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 2.25rem;
    align-items: center;
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.85rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.38);
    color: #c7d2fe;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.landing-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0 0 0.85rem;
}

.landing-hero-title .text-accent {
    background: linear-gradient(135deg, #34d399 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 580px;
    margin: 0 0 1.35rem;
}

.landing-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn-landing-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.45rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.94rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.34);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 46px;
}

.btn-landing-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.44);
}

.btn-landing-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
    min-height: 46px;
}

.btn-landing-register:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.landing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.landing-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Mockup Preview Card on Desktop Hero Right */
.hero-showcase-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 1.15rem;
    backdrop-filter: blur(10px);
    display: grid;
    gap: 0.8rem;
}

.showcase-mini-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.showcase-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.showcase-mini-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.12rem;
}

.showcase-mini-desc {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.35;
}

/* How It Works 3-Column Strip */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.how-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.how-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.how-card-title {
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--ink-900);
    margin: 0;
}

.how-card-desc {
    font-size: 0.85rem;
    color: var(--ink-700);
    line-height: 1.5;
    margin: 0;
}

/* VIP $15 Clear Package Explanation Card */
.vip-explainer-card {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 55%, #fef3c7 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    border-radius: 22px;
    padding: 1.65rem 1.75rem;
    margin-bottom: 1.65rem;
    box-shadow: 0 12px 32px -10px rgba(217, 119, 6, 0.16);
}

.vip-explainer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: 1.65rem;
    align-items: center;
}

.vip-price-box {
    background: #0f172a;
    color: #ffffff;
    border-radius: 18px;
    padding: 1.35rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.vip-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.45);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.vip-pillars-list {
    display: grid;
    gap: 0.8rem;
}

.vip-pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.vip-pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   4. HISTORIAS VIP / REELS STRIP (INSTAGRAM STORIES STYLE)
   ========================================================================== */
.stories-strip-section {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 1.05rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.stories-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.stories-strip-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink-900);
}

.stories-live-pill {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.stories-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #4f46e5;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eef2ff;
}

.stories-rail {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.stories-rail::-webkit-scrollbar {
    display: none;
}

.story-ring-btn {
    flex: 0 0 auto;
    width: 82px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    font-family: inherit;
}

.story-ring-outer {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f59e0b 0%, #e11d48 52%, #4f46e5 100%);
    position: relative;
    transition: transform 0.2s ease;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.2);
}

.story-ring-btn:hover .story-ring-outer {
    transform: scale(1.06);
}

.story-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    padding: 2.5px;
    overflow: hidden;
}

.story-ring-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.story-play-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e11d48;
    color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-ring-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-ring-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--ink-500);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   5. SEARCH & CATEGORY FILTERS (ZERO OVERLAP ON DESKTOP OR MOBILE)
   ========================================================================== */
.search-section {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-bar-wrapper:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.search-icon-svg {
    color: #64748b;
    flex-shrink: 0;
}

.search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 500;
    color: var(--ink-900);
    box-shadow: none !important;
}

.search-input::placeholder {
    color: #94a3b8;
}

.category-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.cat-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: var(--ink-700);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.48rem 0.9rem;
    min-height: 40px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    transition: all 0.18s ease;
    flex-shrink: 0;
    line-height: 1.2;
}

.cat-btn svg {
    flex-shrink: 0;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   6. BULLETPROOF VIEW SWITCHER & INDEPENDENT MAP + MODULAR CARDS
   ========================================================================== */
.view-switcher-container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: 18px;
    padding: 0.35rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden !important;
}

.view-switcher-container.is-two-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-tab-btn {
    min-width: 0 !important;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 13px;
    padding: 0.65rem 0.65rem;
    min-height: 46px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--ink-700);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    transition: all 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
}

.view-tab-btn .tab-label-short {
    display: none;
}

.view-tab-btn .tab-counter {
    background: var(--bg-subtle);
    color: var(--ink-500);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.view-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.view-tab-btn.active .tab-counter {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
}

/* Independent Map Section & Responsive Height */
.independent-map-section {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.independent-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.map-title-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    min-width: 0;
}

.map-legend-inline {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.map-legend-inline span {
    white-space: nowrap;
}

.map-actions-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

#public-map-canvas {
    width: 100%;
    height: 410px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #e8eef6 radial-gradient(#cbd5e1 1.25px, transparent 1.25px) !important;
    background-size: 22px 22px !important;
}

/* Modular 2-Column Responsive Directory Grid */
.directory-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

img[src*="pin_placeholder"] {
    object-fit: contain !important;
    padding: 8px;
    background: #f8fafc !important;
}

.directory-cards-grid .profile-card {
    display: flex;
    flex-direction: column;
}

.directory-cards-grid .profile-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.directory-cards-grid .no-results {
    grid-column: 1 / -1;
}

/* Compact Review Clamp + Expandable "Ver más" Drawer */
.editorial-review-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-card.is-expanded .editorial-review-text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.card-modular-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.btn-card-wa-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-card-wa-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.32);
}

.btn-card-toggle-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 42px;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: #eef2ff;
    border: 1.5px solid #c7d2fe;
    color: #3730a3;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.16s ease;
}

.btn-card-toggle-more:hover {
    background: #e0e7ff;
    border-color: #818cf8;
}

.profile-card.is-vip .btn-card-toggle-more {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.profile-card.is-expanded .btn-card-toggle-more {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.card-extra-tags {
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--ink-500);
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.card-extra-pill {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 0.14rem 0.48rem;
    border-radius: 999px;
    white-space: nowrap;
}

.card-extra-drawer {
    display: none;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--border-subtle);
}

.profile-card.is-expanded .card-extra-drawer {
    display: block;
    animation: fadeSlideCard 0.22s ease;
}

@keyframes fadeSlideCard {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. STORY / REEL PLAYER MODAL (VERTICAL FULLSCREEN EXPERIENCE)
   ========================================================================== */
.story-player-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(12px);
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.story-player-backdrop.active {
    display: flex;
}

.story-player-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: min(88vh, 760px);
    background: #090e1a;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
}

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

.story-progress-seg {
    flex: 1;
    height: 3.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    transition: width 0.25s linear;
}

.story-progress-seg.done .story-progress-fill {
    width: 100%;
}

.story-player-header {
    position: absolute;
    top: 22px;
    left: 12px;
    right: 12px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.story-merchant-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.story-merchant-chip img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #fbbf24;
    flex-shrink: 0;
}

.story-header-btns {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.story-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.story-media-stage {
    position: relative;
    flex: 1;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-media-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-poster-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-nav-zone {
    position: absolute;
    top: 72px;
    bottom: 165px;
    width: 26%;
    z-index: 12;
    cursor: pointer;
}

.story-nav-zone.prev { left: 0; }
.story-nav-zone.next { right: 0; }

.story-player-footer {
    position: relative;
    z-index: 16;
    background: linear-gradient(180deg, rgba(9, 14, 26, 0.72) 0%, #090e1a 38%);
    padding: 1rem 1rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.story-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.story-btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
}

.story-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.84rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   8. ADSTERRA / MONETAG RESPONSIVE CONTAINERS (ZERO CLS, NON-INTRUSIVE)
   ========================================================================== */
.ad-slot-container {
    display: none;
    margin: 1rem auto;
    max-width: 100%;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 0.65rem;
    overflow: hidden;
}

.ad-slot-container.has-ad {
    display: block;
}

.ad-slot-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.ad-slot-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    overflow-x: auto;
}

/* ==========================================================================
   9. MOBILE FIXED BOTTOM APP BAR (<= 768px) & MICRO-SCREENS (<= 380px)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1140px) {
    .app-topbar-inner {
        padding: 0.65rem 1rem;
        gap: 0.65rem;
    }
    .app-brand-sub {
        display: none;
    }
    .app-nav-links {
        gap: 0.2rem;
    }
    .app-nav-link {
        padding: 0.44rem 0.62rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    .btn-top-panel,
    .btn-top-cta {
        padding: 0.45rem 0.78rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

@media (max-width: 960px) {
    .landing-hero-grid,
    .vip-explainer-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    .how-grid {
        grid-template-columns: 1fr;
    }
    .app-nav-link svg {
        display: none;
    }
}

@media (max-width: 860px) {
    .directory-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    body.has-app-shell {
        padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    }

    .app-topbar-inner {
        padding: 0.6rem 0.85rem;
        gap: 0.55rem;
    }

    .app-brand {
        flex: 1 1 auto;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        gap: 0.5rem;
    }

    .app-brand-text {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .app-brand-title,
    .app-brand-sub {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-nav-links,
    .btn-top-panel {
        display: none !important;
    }

    .btn-top-cta {
        padding: 0.5rem 0.85rem;
        font-size: 0.78rem;
        min-height: 44px;
        flex-shrink: 0;
    }

    .btn-share-trigger,
    .pin-card-btn,
    .stories-see-all,
    .btn-card-wa-compact,
    .btn-card-toggle-more,
    .card-extra-drawer button,
    .card-extra-drawer a.official-url-card {
        min-height: 44px !important;
    }

    .app-shell-container {
        padding: 0.9rem 0.85rem;
    }

    .landing-hero-card {
        padding: 1.4rem 1.1rem;
        border-radius: 20px;
        margin-bottom: 1.1rem;
    }

    .landing-hero-title {
        font-size: 1.5rem;
    }

    .landing-hero-desc {
        font-size: 0.9rem;
    }

    .btn-landing-explore,
    .btn-landing-register {
        width: 100%;
    }

    .vip-explainer-card {
        padding: 1.15rem 1rem;
        border-radius: 18px;
    }

    .independent-map-section {
        padding: 0.85rem;
        border-radius: 18px;
    }

    #public-map-canvas {
        height: 300px;
    }

    /* Mobile Single-Row Category Swipe Rail with Right Fade Cue */
    .category-filter-list {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
        padding-right: 1.5rem;
        -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
        mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    }

    .category-filter-list::-webkit-scrollbar {
        display: none;
    }

    .cat-btn {
        scroll-snap-align: start;
        font-size: 0.8rem;
        padding: 0.45rem 0.85rem;
        min-height: 44px;
    }

    /* Fixed Bottom Native App Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 150;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid #e2e8f0;
        padding: 0.38rem 0.35rem calc(0.38rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        text-decoration: none;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 700;
        padding: 0.3rem 0.15rem;
        border-radius: 10px;
        min-height: 48px;
        background: transparent;
        border: none;
        cursor: pointer;
        white-space: nowrap;
    }

    .mobile-nav-item.active {
        color: #4f46e5;
        background: rgba(79, 70, 229, 0.08);
    }

    .mobile-nav-item.is-stories.active,
    .mobile-nav-item.is-stories:hover {
        color: #e11d48;
    }

    .story-player-backdrop {
        padding: 0;
    }

    .story-player-frame {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }
}

@media (max-width: 520px) {
    .view-tab-btn {
        padding: 0.55rem 0.35rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    .view-tab-btn .tab-label-long {
        display: none;
    }
    .view-tab-btn .tab-label-short {
        display: inline;
    }
    .view-tab-btn .tab-counter {
        font-size: 0.68rem;
        padding: 0.1rem 0.42rem;
    }
}

/* Micro-Pantallas & Teléfonos Antiguos (320px Galaxy S2/SE1, 360px Galaxy S3) */
@media (max-width: 380px) {
    .app-topbar-inner {
        padding: 0.48rem 0.6rem;
        gap: 0.42rem;
    }
    .app-brand {
        min-width: 0;
        flex: 1;
        flex-shrink: 1;
        overflow: hidden;
        gap: 0.4rem;
    }
    .app-brand-text {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }
    .app-brand-mark {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .app-brand-title {
        display: block;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .app-brand-sub {
        display: block;
        font-size: 0.68rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .btn-top-cta {
        padding: 0.42rem 0.68rem;
        font-size: 0.74rem;
        min-height: 40px;
        gap: 0.24rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .app-shell-container {
        padding: 0.7rem 0.6rem;
    }
    .landing-hero-card {
        padding: 1.15rem 0.9rem;
        border-radius: 16px;
    }
    .landing-hero-title {
        font-size: 1.3rem;
        line-height: 1.16;
    }
    .landing-hero-desc {
        font-size: 0.84rem;
    }
    .stories-strip-section,
    .search-section,
    .independent-map-section,
    .sponsor-spotlight-wrapper {
        padding: 0.8rem 0.72rem !important;
        border-radius: 16px !important;
    }
    .stories-strip-title {
        font-size: 0.9rem;
    }
    .stories-see-all {
        font-size: 0.76rem;
        padding: 0.4rem 0.72rem;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
    }
    .story-ring-sub {
        font-size: 0.7rem;
    }
    #public-map-canvas {
        height: 245px;
    }
    .card-modular-actions {
        grid-template-columns: 1fr;
    }
    .btn-card-wa-compact,
    .btn-card-toggle-more {
        width: 100%;
        font-size: 0.8rem;
    }
    .mobile-nav-item {
        font-size: 0.62rem;
        padding: 0.25rem 0.08rem;
    }
}
