/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU — Flor / Mango / Fusión Nabilia
   ═══════════════════════════════════════════════════════════════ */

.mob-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mob-sheet.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Drawer base (left slide) ── */
.mob-drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    max-width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background: #fff;
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.18);
    border-radius: 0 24px 24px 0;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.mob-sheet.open .mob-drawer.is-active {
    display: flex;
}

.mob-sheet.open .mob-drawer.is-active {
    transform: translateX(0);
}

/* Single-drawer pages (index) */
.mob-sheet:not(.mob-sheet--demo) .mob-drawer {
    display: flex;
}

.mob-sheet:not(.mob-sheet--demo).open .mob-drawer {
    transform: translateX(0);
}

/* ── Shared header ── */
.mob-drawer-head {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: start;
    gap: 8px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mob-drawer-head-center {
    text-align: center;
    min-width: 0;
}

.mob-drawer-logo {
    height: 32px;
    width: auto;
    margin: 0 auto 6px;
    display: block;
}

.mob-drawer-tagline {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
}

.mob-drawer-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
}

.mob-drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.mob-drawer-close:hover {
    background: #e2e8f0;
}

.mob-drawer-theme {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.mob-drawer-theme .fa-moon { display: none; }
.dark .mob-drawer-theme .fa-sun { display: none; }
.dark .mob-drawer-theme .fa-moon { display: inline; }

/* ── Body scroll ── */
.mob-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}

.mob-drawer-eyebrow {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin: 0 0 12px 4px;
}

/* ── Grid 2×2 ── */
.mob-grid-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.mob-grid-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #f8fafc;
    text-decoration: none;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.mob-grid-tile:active {
    transform: scale(0.97);
}

.mob-grid-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.1));
    color: #6366f1;
}

/* ── Feature card ── */
.mob-feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: transform 0.15s;
}

.mob-feature-card:active {
    transform: scale(0.98);
}

.mob-feature-card--fusion {
    background: linear-gradient(90deg, #ff3366 0%, #9933ff 35%, #c084fc 50%, #9933ff 65%, #2f80ed 100%);
    background-size: 300% 100%;
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    animation: enterpriseGradientDrift 5.2s ease-in-out infinite;
}

.mob-drawer--fusion .mob-drawer-cta-primary {
    background: linear-gradient(90deg, #ff3366 0%, #9933ff 35%, #c084fc 50%, #9933ff 65%, #2f80ed 100%);
    background-size: 300% 100%;
    border: none;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    animation: enterpriseGradientDrift 7.4s ease-in-out infinite;
    animation-delay: 1.9s;
}

@media (prefers-reduced-motion: reduce) {
    .mob-feature-card--fusion,
    .mob-drawer--fusion .mob-drawer-cta-primary {
        animation: none;
    }
}

.mob-feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.mob-feature-card-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mob-feature-card-copy strong {
    font-size: 14px;
    font-weight: 800;
}

.mob-feature-card-copy span {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.35;
}

.mob-feature-card-arrow {
    opacity: 0.7;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Row links ── */
.mob-row-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: #fff;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.mob-row-link:hover {
    background: #f8fafc;
}

.mob-row-link--ghost {
    border-style: dashed;
    background: transparent;
}

.mob-row-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 14px;
}

.mob-row-link-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #94a3b8;
}

/* ── Info band ── */
.mob-info-band {
    border-radius: 14px;
    padding: 14px 16px;
    margin: 12px 0;
}

.mob-info-band--fusion {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.mob-info-band-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
}

.mob-info-band-text {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* ── Footer CTAs ── */
.mob-drawer-foot {
    flex-shrink: 0;
    padding: 14px 16px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mob-drawer-cta-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
}

.mob-drawer-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 2px solid #25d366;
    color: #16a34a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.mob-drawer-cta-secondary:hover {
    background: rgba(37, 211, 102, 0.08);
}

/* ═══ FLOR variant ═══ */
.mob-drawer--flor {
    background: #fffaf8;
}

.mob-drawer-head--flor {
    grid-template-columns: 40px 1fr;
    padding-top: 20px;
}

.mob-drawer-tagline--flor {
    color: #9d174d;
    font-style: italic;
}

.mob-demo-note {
    font-style: normal;
    font-size: 9px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.mob-drawer-eyebrow--flor {
    color: #be185d;
}

.mob-grid-tiles--flor .mob-grid-tile {
    background: #fff;
    border-color: rgba(190, 24, 93, 0.12);
}

.mob-grid-tile--flor .mob-grid-tile-icon {
    background: rgba(244, 114, 182, 0.15);
    color: #db2777;
}

.mob-grid-tile--flor:hover {
    border-color: rgba(219, 39, 119, 0.25);
    background: #fdf2f8;
}

.mob-feature-card--flor {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #9d174d;
    border: 1px solid rgba(219, 39, 119, 0.15);
    box-shadow: none;
}

.mob-feature-card-icon--flor {
    background: rgba(219, 39, 119, 0.12);
    color: #db2777;
}

.mob-info-band--flor {
    background: #fdf2f8;
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.mob-info-band--flor .mob-info-band-title {
    color: #9d174d;
}

.mob-drawer-foot--flor {
    border-top-color: rgba(244, 114, 182, 0.15);
}

.mob-drawer-cta-flor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* ═══ MANGO variant ═══ */
.mob-drawer--mango {
    background: #faf8f5;
    border-radius: 0 24px 24px 0;
}

.mob-drawer-head--mango {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.mob-drawer-head-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mob-drawer-logo-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid rgba(99, 102, 241, 0.25);
    background: #fff;
    padding: 4px;
}

.mob-drawer-brand-text {
    font-size: 18px;
    font-weight: 800;
    color: #6366f1;
}

.mob-drawer-close--mango {
    background: #ede9fe;
    color: #6366f1;
    font-weight: 700;
}

.mob-drawer-body--mango {
    padding: 8px 16px 20px;
}

.mob-mango-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s;
}

.mob-mango-row:active {
    transform: scale(0.98);
    background: rgba(99, 102, 241, 0.06);
}

.mob-mango-row-icon {
    width: 28px;
    display: flex;
    justify-content: center;
    color: #6366f1;
    font-size: 18px;
}

.mob-mango-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
    margin: 12px 0;
}

.mob-drawer-eyebrow--mango {
    margin-left: 16px;
    color: #64748b;
}

.mob-mango-install {
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 8px);
    margin: 0 4px;
    padding: 14px 16px;
    border-radius: 16px;
    border: none;
    background: #ede9fe;
    color: #4f46e5;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.mob-mango-install i {
    font-size: 22px;
}

.mob-mango-install strong {
    display: block;
    font-size: 14px;
}

.mob-mango-install small {
    font-size: 11px;
    opacity: 0.75;
}

.mob-mango-meta {
    padding: 4px 16px 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
}

.mob-mango-meta p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mob-mango-meta i {
    width: 18px;
    color: #6366f1;
    text-align: center;
}

/* ═══ Demo switcher ═══ */
.mob-demo-page {
    min-height: 100vh;
    background: var(--bg, #f8fafc);
}

.mob-demo-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 12px 16px;
}

.mob-demo-bar-inner {
    max-width: 480px;
    margin: 0 auto;
}

.mob-demo-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
}

.mob-demo-switcher {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}

.mob-demo-switcher button {
    flex: 1;
    padding: 8px 6px;
    border: none;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mob-demo-switcher button.is-active {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.mob-demo-preview {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 120px;
}

.mob-demo-hint {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px;
}

.mob-demo-fake-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.mob-demo-fake-header img {
    height: 28px;
}

.mob-demo-sections {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mob-demo-sections section {
    padding: 40px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

/* ── Dark mode ── */
.dark .mob-drawer {
    background: #1e293b;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.4);
}

.dark .mob-drawer-head {
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.dark .mob-drawer-tagline,
.dark .mob-info-band-text,
.dark .mob-mango-meta {
    color: #94a3b8;
}

.dark .mob-grid-tile,
.dark .mob-row-link {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

.dark .mob-grid-tile-icon,
.dark .mob-row-link-icon {
    background: rgba(99, 102, 241, 0.15);
}

.dark .mob-info-band--fusion {
    background: rgba(99, 102, 241, 0.08);
}

.dark .mob-info-band-title,
.dark .mob-mango-row {
    color: #f1f5f9;
}

.dark .mob-drawer-foot {
    border-top-color: rgba(148, 163, 184, 0.12);
}

.dark .mob-drawer-close {
    background: #334155;
    color: #cbd5e1;
}

.dark .mob-drawer--flor {
    background: #1a1520;
}

.dark .mob-drawer--mango {
    background: #1a1814;
}

.dark .mob-mango-install {
    background: rgba(99, 102, 241, 0.15);
}

.dark .mob-demo-bar {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.dark .mob-demo-title {
    color: #f1f5f9;
}

.dark .mob-demo-switcher {
    background: #0f172a;
}

.dark .mob-demo-switcher button.is-active {
    background: #334155;
    color: #a5b4fc;
}

.dark .mob-demo-fake-header,
.dark .mob-demo-sections section {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.15);
}

@media (min-width: 901px) {
    .mob-demo-hint::after {
        content: ' (Redimensiona la ventana o usa DevTools móvil para ver el drawer.)';
    }
}
