/* Manual de ayuda XEXEX — libro de recetas */

.xex-ayuda {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 0 .5rem;
}

.xex-ayuda__head h1 {
    color: #0d6efd;
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

.xex-ayuda__meta {
    color: #6c757d;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.xex-ayuda__busca {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 999px;
    padding: .45rem 1rem;
    box-shadow: 0 4px 14px rgba(13, 110, 253, .12);
}

.xex-ayuda__busca i { color: #0d6efd; }

.xex-ayuda__busca input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

.xex-ayuda__hint {
    font-size: .85rem;
    color: #6c757d;
    margin: .6rem 0 0;
}

.xex-ayuda-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.1rem;
    background: #111827;
    color: #f9fafb;
    border-radius: 12px;
    padding: .75rem 1rem;
    margin: 1rem 0 1.25rem;
    font-size: .82rem;
}

.xex-ayuda-leyenda__note { color: #d1d5db; }

.xex-ayuda-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.xex-ayuda-dot--ok { background: #12b76a; }
.xex-ayuda-dot--warn { background: #f79009; }
.xex-ayuda-dot--ko { background: #f04438; }

.xex-ayuda__layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 1.25rem;
}

.xex-ayuda__nav {
    position: sticky;
    top: calc(var(--xex-sticky-top, 56px) + 8px);
    align-self: start;
    max-height: calc(100vh - 80px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    padding: .75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.xex-ayuda-g { margin-bottom: .85rem; }
.xex-ayuda-g__t {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #0d6efd;
    margin-bottom: .25rem;
}
.xex-ayuda-g__a {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    padding: .22rem .35rem;
    border-radius: 6px;
}
.xex-ayuda-g__a:hover,
.xex-ayuda-g__a.is-on { background: #e7f1ff; color: #0d6efd; }

.xex-ayuda-receta {
    background: #fff;
    border-radius: 16px;
    padding: 1.15rem 1.25rem 1.3rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    scroll-margin-top: 90px;
}
.xex-ayuda-receta.is-flash {
    outline: 3px solid #0d6efd;
}

.xex-ayuda-receta__kicker {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.xex-ayuda-receta__h {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: .35rem;
}
.xex-ayuda-receta__donde {
    font-size: .88rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
}

.xex-ayuda-go {
    font-weight: 700;
    font-size: .82rem;
    color: #fff;
    background: #0d6efd;
    border-radius: 999px;
    padding: .2rem .7rem;
    text-decoration: none;
}
.xex-ayuda-go:hover { color: #fff; background: #0b5ed7; }

.xex-ayuda-pasos {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.xex-ayuda-pasos li {
    display: flex;
    gap: .7rem;
    margin-bottom: .65rem;
    align-items: flex-start;
}
.xex-ayuda-n {
    flex: 0 0 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.xex-ayuda-ok {
    background: #e8f5e9;
    border-left: 4px solid #198754;
    border-radius: 0 8px 8px 0;
    padding: .7rem .9rem;
    font-size: .9rem;
}
.xex-ayuda-fail {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    padding: .7rem .9rem;
    margin-top: .7rem;
    font-size: .9rem;
}

.xex-ayuda-empty { color: #6c757d; padding: 1rem; }

/* Maquetas + cursor */
.xex-ayuda-demo {
    margin: .85rem 0 1rem;
    background: #f4f7f6;
    border-radius: 12px;
    padding: .75rem;
}
.xex-ayuda-demo__stage {
    position: relative;
    min-height: 120px;
    background: #eef1f4;
    border-radius: 10px;
    padding: 12px;
    overflow: hidden;
}
.xex-ayuda-demo__play {
    margin-top: .55rem;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    padding: .35rem .9rem;
}
.xex-ayuda-cursor {
    position: absolute;
    width: 18px;
    height: 18px;
    margin-left: -4px;
    margin-top: -2px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: left .55s ease, top .55s ease, opacity .2s;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.2' d='M5 3l14 9-6.2 1.4L15 22l-3.2-1.2L9.2 14 5 16.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.xex-ayuda-cursor.is-on { opacity: 1; }
[data-demo-hit].is-hit {
    box-shadow: 0 0 0 3px #0d6efd;
    border-radius: 8px;
}

.xex-am-bar, .xex-am-form, .xex-am-nav, .xex-am-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.xex-am-inp {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: .75rem;
    color: #6c757d;
}
.xex-am-btn {
    border-radius: 8px;
    padding: 6px 10px;
    font-size: .75rem;
    font-weight: 800;
    color: #fff;
    display: inline-block;
}
.xex-am-btn--dark { background: #212529; }
.xex-am-btn--blue { background: #0d6efd; }
.xex-am-btn--green { background: #198754; }
.xex-am-cards { display: flex; gap: 8px; }
.xex-am-card {
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    width: 140px;
    font-size: .8rem;
}
.xex-am-card--wide { width: 100%; max-width: 280px; }
.xex-am-ph, .xex-am-photo {
    height: 72px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 6px;
    position: relative;
    color: #fff;
}
.xex-am-photo { display: flex; align-items: center; justify-content: center; }
.xex-am-photo-label { font-size: .7rem; opacity: .8; }
.xex-am-chev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    padding: 0 6px;
}
.xex-am-chev:first-child { left: 4px; }
.xex-am-chev:nth-child(3) { right: 4px; }
.xex-am-pill {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(0,0,0,.65);
    border-radius: 999px;
    font-size: .65rem;
    padding: 3px 8px;
}
.xex-am-logo { font-weight: 800; }
.xex-am-nav { background: #111; color: #fff; border-radius: 8px; padding: 8px; }
.xex-am-cal { display: flex; gap: 12px; }
.xex-am-mes {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px 10px;
    font-size: .7rem;
    font-weight: 800;
    min-width: 72px;
    text-align: center;
}
.xex-am-box {
    display: block;
    background: #6c757d;
    color: #fff;
    border-radius: 6px;
    margin: 6px auto 4px;
    padding: 2px 8px;
    width: fit-content;
}
.xex-am-cloud { color: #0d6efd; font-size: .8rem; }
.xex-am-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
}
.xex-am-dot--ok { background: #12b76a; }
.xex-am-dot--warn { background: #f79009; }
.xex-am-dot.is-big { width: 14px; height: 14px; }
.xex-am-caption { font-size: .75rem; color: #6c757d; margin: 8px 0 0; }
.xex-am-modal {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
    font-size: .78rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.xex-am-slot {
    border: 1px dashed #adb5bd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .75rem;
}
.xex-am-tip {
    background: #111827;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
    font-size: .78rem;
}
.xex-am-clip { color: #0d6efd; }
.xex-am-doc { display: flex; gap: 10px; align-items: center; }
.xex-am-pdf {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 18px 24px;
    font-weight: 800;
    font-size: .8rem;
}

/* Foco en la app real */
.xex-ayuda-tour-veil {
    position: fixed;
    inset: 0;
    z-index: 20050;
    background: rgba(0, 0, 0, .45);
    pointer-events: none;
}
.xex-ayuda-tour-spot {
    position: fixed;
    z-index: 20051;
    border: 3px solid #0d6efd;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45);
    pointer-events: none;
    transition: all .25s ease;
}
.xex-ayuda-tour-card {
    position: fixed;
    z-index: 20052;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    max-width: 260px;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.xex-ayuda-tour-card button {
    display: block;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
}

@media (max-width: 767.98px) {
    .xex-ayuda__layout { grid-template-columns: 1fr; }
    .xex-ayuda__nav {
        position: static;
        max-height: 220px;
    }
}

/* Compatibilidad con clases viejas por si queda algún enlace */
.xex-ayuda-toc, .xex-ayuda-paso, .xex-ayuda-tip, .xex-ayuda-alerta, .xex-ayuda-seccion { }
