/* ========================================
   "El portal por dentro" — dashboard real
   con callouts interactivos (GSAP)
   ======================================== */

.explore {
    padding: 7rem 0 8rem;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.explore-stage {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem;
}

.explore-glow {
    position: absolute;
    inset: 6% 4% 0;
    z-index: 0;
    background:
        radial-gradient(50% 60% at 22% 12%, rgba(var(--color-primary-rgb), 0.10), transparent 60%),
        radial-gradient(50% 60% at 82% 80%, rgba(255, 94, 138, 0.08), transparent 60%);
    filter: blur(55px);
}

/* ---- Ventana del dashboard ---- */
.xp {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 940px;
    margin: 0 auto;
}

.xp-chrome { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.95rem; background: #f3f4f6; border-bottom: 1px solid #e7e8ec; }
.xp-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #d6d9e0; display: block; }
.xp-chrome i:nth-child(1) { background: #ff6a13; opacity: 0.85; }
.xp-url { margin: 0 auto; font-size: 0.72rem; color: var(--muted); background: #fff; border: 1px solid #e7e8ec; border-radius: 20px; padding: 0.2rem 0.9rem; }

.xp-body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }

/* Sidebar — réplica de Shaar (clara) */
.xp-side { background: #fff; border-right: 1px solid var(--line); color: var(--muted); padding: 1rem 0.7rem; display: flex; flex-direction: column; gap: 0.8rem; }
.xp-brand { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.xp-brand .b-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.xp-brand b { color: var(--ink); font-family: var(--font-display); font-size: 0.88rem; }
.xp-nav { display: flex; flex-direction: column; gap: 0.1rem; }
.xp-nav a { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: #5b6472; padding: 0.5rem 0.65rem; border-radius: 8px; }
.xp-nav a svg { width: 15px; height: 15px; opacity: 0.7; }
.xp-nav a.on { background: rgba(var(--color-primary-rgb), 0.10); color: var(--color-primary); font-weight: 600; }
.xp-nav a.on svg { color: var(--color-primary); opacity: 1; }

/* Main */
.xp-main { padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.xp-hi { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); }

.xp-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--color-primary-50); border: 1px solid var(--color-primary-100); border-radius: 12px; padding: 0.8rem 1rem; }
.xp-banner .t { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); display: block; margin-bottom: 0.15rem; }
.xp-banner p { font-size: 0.85rem; color: var(--text); max-width: 46ch; }
.xp-banner .b { font-size: 0.78rem; font-weight: 600; color: #fff; background: var(--color-primary); padding: 0.45rem 0.9rem; border-radius: 8px; white-space: nowrap; }

.xp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.xp-card { border-radius: 12px; padding: 0.9rem 1rem; }
.xp-card.dark { background: radial-gradient(120% 90% at 20% -10%, rgba(255,255,255,0.08), transparent 55%), #1a1714; color: #fff; }
.xp-card .lbl { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); }
.xp-card.dark .amt { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.xp-card.dark .sub { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.1rem; }
.xp-card.dark .acts { display: flex; gap: 0.4rem; margin-top: 0.7rem; }
.xp-card.dark .acts span { font-size: 0.68rem; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.1); padding: 0.3rem 0.55rem; border-radius: 7px; }
.xp-card.light .lbl2 { font-size: 0.66rem; color: var(--muted); }
.xp-card.light h4 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0.2rem 0 0.5rem; line-height: 1.3; }
.xp-card.light .go { font-size: 0.76rem; font-weight: 600; color: #fff; background: var(--color-primary); display: inline-block; padding: 0.4rem 0.8rem; border-radius: 8px; }

.xp-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.xp-table th { text-align: left; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; padding: 0 0.3rem 0.45rem; border-bottom: 1px solid var(--line); }
.xp-table td { padding: 0.5rem 0.3rem; border-bottom: 1px solid #f2f3f5; }
.xp-table tr:last-child td { border-bottom: none; }
.xp-table .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.xp-tag { font-size: 0.64rem; font-weight: 700; padding: 0.12rem 0.5rem; border-radius: 20px; }
.xp-tag.ok { background: #e7f7ef; color: #1a875a; }
.xp-tag.pend { background: #fff4d4; color: #915e00; }

/* Regiones resaltables — resaltado SUTIL, sin sobresalir del layout */
[data-xp] { transition: box-shadow 0.45s var(--ease), opacity 0.45s var(--ease); border-radius: 12px; }
.xp.is-guiding [data-xp]:not(.hot) { opacity: 0.82; }
[data-xp].hot { box-shadow: 0 0 0 1px rgba(var(--color-primary-rgb), 0.45); border-radius: 12px; }
/* El sidebar va al borde de la ventana; aro hacia adentro para no romperla */
.dash-side[data-xp].hot { box-shadow: inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.4); border-radius: 0; }

/* ---- Callouts ---- */
.xp-call {
    position: absolute;
    z-index: 4;
    width: 270px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.95rem 1.05rem;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    pointer-events: auto;
    cursor: pointer;
}
.xp-call.shown { opacity: 1; transform: translateY(0) scale(1); }
.xp-call.active { box-shadow: 0 0 0 1px rgba(var(--color-primary-rgb), 0.5), var(--shadow-lg); transform: translateY(-3px) scale(1.02); }
.xp-call:not(.active).shown { opacity: 0.92; }
.xp-call .ct { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; }
.xp-call .ct .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; }
.xp-call p { font-size: 0.82rem; line-height: 1.5; color: var(--muted); }

/* Pasos (dots) */
.xp-steps { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.8rem; position: relative; z-index: 2; }
.xp-step-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); cursor: pointer; transition: all var(--transition-fast); }
.xp-step-dot.on { background: var(--color-primary); width: 26px; border-radius: 20px; }

/* ---- Trío de cierre (texto oficial) ---- */
.xp-trio { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.4rem; max-width: 880px; margin: 4rem auto 0; text-align: center; }
.xp-trio span { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; position: relative; }
.xp-trio span:not(:last-child)::after { content: ''; position: absolute; right: -1.25rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); transform: translateY(-50%); }

@media (max-width: 900px) {
    .explore { padding: 4.5rem 0 5rem; }
    .explore-stage { padding: 0; }
    .xp-body { grid-template-columns: 1fr; }
    .xp-side { display: none; }
    .xp-cards { grid-template-columns: 1fr; }
    /* Sin resaltado interactivo en móvil (no hay hover/ciclo útil) */
    .xp.is-guiding [data-xp]:not(.hot) { opacity: 1; }
    [data-xp].hot { box-shadow: none; }
    .xp-steps { display: none; }

    /* Callouts: lista plana y uniforme debajo del dashboard */
    .explore-stage { display: flex; flex-direction: column; }
    .xp-call {
        position: static;
        width: auto;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none;
        background: var(--bg-soft);
        border-radius: 14px;
        margin-top: 0.6rem;
        padding: 1rem 1.1rem;
        cursor: default;
    }
    .xp-call.active { box-shadow: none; transform: none; }
    .xp-call .ct { font-size: 0.95rem; }

    .xp-trio { flex-direction: column; gap: 0.7rem; margin-top: 2.5rem; }
    .xp-trio span::after { display: none; }
}

/* En móvil el mockup del portal se reemplaza por tarjetas de features
   (.feat-cards, definidas en dash.css). Se ocultan ventana y callouts. */
@media (max-width: 640px) {
    .explore-stage { padding: 0; min-height: 0; }
    .xp,
    .xp-call,
    .explore-glow { display: none; }
    .feat-cards { margin-top: 1.5rem; }
}
