/* MenuXpress — onboarding (modal de bienvenida + guía) — tema ink/ember */

.av-overlay {
    position: fixed; inset: 0; z-index: 998;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0 1rem 1.5rem;
    background: rgba(14, 12, 11, .72);
    backdrop-filter: blur(4px);
}
.av-overlay[hidden] { display: none !important; }
.av-wel-card {
    width: 100%; max-width: 31rem;
    border-radius: 1.4rem; border: 1px solid rgba(243, 235, 227, .12);
    background: #1a1614; padding: 1.75rem; color: #f3ebe3;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .55);
}
.av-wel-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.av-wel-emoji {
    display: flex; height: 3rem; width: 3rem; flex-shrink: 0;
    align-items: center; justify-content: center; border-radius: 1rem; font-size: 1.5rem;
    background: linear-gradient(135deg, #e8a054, #c47a2e); color: #0e0c0b;
}
.av-wel-title { font-size: 1.25rem; font-weight: 700; }
.av-wel-sub { margin-top: .35rem; font-size: .85rem; line-height: 1.55; color: rgba(243, 235, 227, .75); }
.av-wel-actions { display: flex; flex-direction: column; gap: .7rem; }
.av-wel-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 0; border-radius: .8rem; padding: .8rem 1rem; cursor: pointer;
    background: linear-gradient(90deg, #e8a054, #c47a2e); color: #14100e;
    font-family: inherit; font-size: .95rem; font-weight: 700; width: 100%;
}
.av-wel-primary:hover { filter: brightness(1.08); }
.av-wel-ghost {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: .8rem; border: 1px solid rgba(232, 160, 84, .4);
    background: rgba(232, 160, 84, .08); color: #e8a054;
    padding: .75rem 1rem; font-size: .85rem; font-weight: 600; transition: background .15s;
}
.av-wel-ghost:hover { background: rgba(232, 160, 84, .16); }
.av-wel-skip {
    width: 100%; padding: .3rem 0; text-align: center; background: none; border: 0; cursor: pointer;
    font-family: inherit; font-size: .85rem; color: rgba(243, 235, 227, .45);
}
.av-wel-skip:hover { color: rgba(243, 235, 227, .75); }
.av-wel-note { margin-top: 1.1rem; text-align: center; font-size: .72rem; color: rgba(243, 235, 227, .45); }
@media (min-width: 640px) { .av-overlay { align-items: center; padding-bottom: 0; } .av-wel-card { padding: 2rem; } }

/* ---------- Guía ---------- */
.mx-guia { max-width: 46rem; margin: 0 auto; padding: 0 .25rem 2rem; }
/* /guia usa nav marketing fixed: el hero no puede quedar debajo */
.mx-guia--public { padding-top: 5.75rem; }
@media (max-width: 900px) {
  .mx-guia--public { padding-top: 5.25rem; }
}
/* Admin móvil: sticky top bar — espacio al saltar a anclas / primer pantallazo */
@media (max-width: 899px) {
  .admin-body .mx-guia .av-hero { scroll-margin-top: 4.25rem; }
  .admin-body .mx-guia [id] { scroll-margin-top: 4.25rem; }
}
.av-hero {
    border-radius: 1.4rem; overflow: hidden; margin-bottom: 2rem; padding: 2rem 1.5rem;
    border: 1px solid rgba(243, 235, 227, .12);
    background: linear-gradient(135deg, #241b14, #1a1614);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
.av-hero h3 { font-family: "Instrument Serif", Georgia, serif; font-size: 1.9rem; line-height: 1.2; color: #f3ebe3; }
.av-hero h3 em { color: #e8a054; font-style: italic; }
.av-hero p { margin-top: .6rem; font-size: .9rem; line-height: 1.6; color: rgba(243, 235, 227, .75); }
.av-hero-actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.av-hero-btn {
    display: inline-flex; align-items: center; gap: .5rem; border-radius: .8rem;
    background: linear-gradient(90deg, #e8a054, #c47a2e); color: #14100e;
    font-size: .85rem; font-weight: 700; padding: .65rem 1.1rem; border: 0; cursor: pointer;
}
.av-hero-btn:hover { filter: brightness(1.08); }
.av-hero-btn--ghost { background: transparent; border: 1px solid rgba(232, 160, 84, .45); color: #e8a054; }
.av-hero-btn--ghost:hover { background: rgba(232, 160, 84, .1); }

.av-step { margin-bottom: 2.4rem; }
.av-step-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.av-step-num {
    display: flex; height: 2.1rem; width: 2.1rem; flex-shrink: 0; align-items: center; justify-content: center;
    border-radius: .65rem; background: linear-gradient(135deg, #e8a054, #c47a2e);
    color: #14100e; font-size: .85rem; font-weight: 800;
}
.av-step-title { font-size: 1.05rem; font-weight: 700; color: #f3ebe3; }
.av-brk-frame {
    overflow: hidden; border-radius: .9rem; border: 1px solid rgba(243, 235, 227, .12);
    background: #1a1614; box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.av-brk-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .9rem; background: linear-gradient(90deg, #c47a2e, #7a4c1c); }
.av-brk-dot { height: .6rem; width: .6rem; border-radius: 999px; background: rgba(243, 235, 227, .35); }
.av-brk-url {
    margin-left: .5rem; border-radius: .35rem; padding: .1rem .55rem;
    background: rgba(0, 0, 0, .25); color: rgba(243, 235, 227, .9);
    font-size: .72rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.av-brk-frame img { display: block; width: 100%; }
.av-step-text { margin-top: .7rem; font-size: .87rem; line-height: 1.6; color: rgba(243, 235, 227, .8); }
.av-step-text strong { color: #f3ebe3; }
.av-tip {
    margin-top: .7rem; border-radius: .7rem; padding: .7rem 1rem; font-size: .82rem; line-height: 1.5;
    border: 1px solid rgba(232, 160, 84, .3); background: rgba(232, 160, 84, .08); color: #ecc99a;
}
.av-cta { display: inline-block; margin-top: .9rem; }
.av-help {
    margin-top: 2.4rem; border-radius: 1.1rem; padding: 1.4rem; text-align: center;
    border: 1px solid rgba(243, 235, 227, .12); background: #1a1614;
}
.av-help h4 { font-size: 1.05rem; color: #f3ebe3; }
.av-help p { margin-top: .4rem; font-size: .85rem; color: rgba(243, 235, 227, .7); }
.av-help a { color: #e8a054; font-weight: 600; }
.av-help-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ---------- Índice por tarea ---------- */
.av-indice {
    margin-bottom: 2.2rem; padding: 1.2rem;
    border-radius: 1.2rem; border: 1px solid rgba(243, 235, 227, .12);
    background: #1a1614;
}
.av-indice-titulo {
    margin: 0 0 .9rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #e8a054;
}
.av-indice-grid { display: grid; gap: .5rem; grid-template-columns: 1fr; }
.av-indice-item {
    display: flex; gap: .7rem; align-items: flex-start; text-decoration: none;
    padding: .7rem .8rem; border-radius: .8rem;
    border: 1px solid rgba(243, 235, 227, .1); background: rgba(243, 235, 227, .03);
    transition: background .15s, border-color .15s;
}
.av-indice-item:hover { background: rgba(232, 160, 84, .1); border-color: rgba(232, 160, 84, .35); }
.av-indice-emoji { font-size: 1.25rem; line-height: 1.2; }
.av-indice-item strong { display: block; font-size: .9rem; color: #f3ebe3; }
.av-indice-item em { display: block; font-size: .76rem; font-style: normal; color: rgba(243, 235, 227, .55); margin-top: .1rem; }

/* ---------- Secciones ---------- */
.av-seccion {
    margin: 2.6rem 0 .5rem; padding-top: 1.2rem;
    font-family: "Instrument Serif", Georgia, serif; font-size: 1.5rem; line-height: 1.25;
    color: #f3ebe3; border-top: 1px solid rgba(243, 235, 227, .14);
}
.av-seccion-intro { margin: 0 0 1.3rem; font-size: .87rem; line-height: 1.6; color: rgba(243, 235, 227, .65); }

/* ---------- Pasos numerados (el corazón de la guía) ---------- */
.av-pasos { margin: .9rem 0 0; padding: 0; list-style: none; counter-reset: pasos; }
.av-pasos li {
    position: relative; margin-bottom: .55rem; padding-left: 2.1rem;
    font-size: .88rem; line-height: 1.55; color: rgba(243, 235, 227, .85);
}
.av-pasos li::before {
    counter-increment: pasos; content: counter(pasos);
    position: absolute; left: 0; top: .05rem;
    display: flex; height: 1.45rem; width: 1.45rem; align-items: center; justify-content: center;
    border-radius: .5rem; background: rgba(232, 160, 84, .16); color: #e8a054;
    font-size: .74rem; font-weight: 800;
}
.av-pasos li strong { color: #f3ebe3; }
.av-pasos li em { color: #ecc99a; font-style: normal; }

.av-porque {
    margin: .3rem 0 .9rem; padding: .7rem .9rem; border-radius: .7rem;
    border-left: 3px solid rgba(232, 160, 84, .6); background: rgba(232, 160, 84, .07);
    font-size: .84rem; line-height: 1.55; color: rgba(243, 235, 227, .8);
}

/* ---------- Bloques de tarea ---------- */
.av-bloque {
    margin-bottom: 2.2rem; padding: 1.1rem;
    border-radius: 1rem; border: 1px solid rgba(243, 235, 227, .1);
    background: rgba(243, 235, 227, .02);
}
.av-bloque-titulo { margin: 0 0 .8rem; font-size: 1.02rem; font-weight: 700; color: #f3ebe3; }

/* ---------- "Si algo sale mal" ---------- */
.av-problema {
    margin-bottom: .6rem; border-radius: .9rem;
    border: 1px solid rgba(243, 235, 227, .12); background: #1a1614; overflow: hidden;
}
.av-problema summary {
    cursor: pointer; list-style: none; padding: .9rem 1rem;
    font-size: .9rem; font-weight: 600; color: #f3ebe3;
    display: flex; gap: .6rem; align-items: flex-start;
}
.av-problema summary::-webkit-details-marker { display: none; }
.av-problema summary::after { content: "＋"; margin-left: auto; color: #e8a054; font-weight: 800; }
.av-problema[open] summary::after { content: "－"; }
.av-problema-body {
    padding: 0 1rem 1rem; font-size: .86rem; line-height: 1.6;
    color: rgba(243, 235, 227, .78); border-top: 1px solid rgba(243, 235, 227, .08); padding-top: .8rem;
}
.av-problema-body strong { color: #f3ebe3; }
.av-problema-body em { color: #ecc99a; font-style: normal; }

/* ---------- Glosario ---------- */
.av-glosario { display: grid; gap: .7rem; grid-template-columns: 1fr; }
.av-glosario-item {
    padding: .85rem 1rem; border-radius: .9rem;
    border: 1px solid rgba(243, 235, 227, .1); background: rgba(243, 235, 227, .025);
}
.av-glosario-item strong { display: block; color: #e8a054; font-size: .92rem; }
.av-glosario-item em { display: block; color: rgba(243, 235, 227, .6); font-size: .8rem; font-style: normal; margin-top: .1rem; }
.av-glosario-item p { margin: .4rem 0 0; font-size: .84rem; line-height: 1.55; color: rgba(243, 235, 227, .78); }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 700px) {
    .av-indice-grid { grid-template-columns: 1fr 1fr; }
    .av-glosario { grid-template-columns: 1fr 1fr; }
    .av-bloque { padding: 1.4rem; }
}

/* ---------- CELULAR: la guía se lee desde el teléfono ---------- */
@media (max-width: 699px) {
    .mx-guia { max-width: 100%; padding: 0 .5rem 1.6rem; }
    .av-hero { padding: 1.4rem 1.1rem; border-radius: 1.1rem; }
    .av-hero h3 { font-size: 1.45rem; }
    .av-hero p { font-size: .85rem; }
    .av-hero-actions { flex-direction: column; }
    .av-hero-btn, .av-cta { width: 100%; justify-content: center; text-align: center; }
    .av-seccion { font-size: 1.25rem; margin-top: 2rem; }
    .av-step { margin-bottom: 2rem; }
    .av-step-title { font-size: .98rem; }
    /* Las capturas se achican pero se pueden abrir a pantalla completa */
    .av-brk-frame img { width: 100%; height: auto; cursor: zoom-in; }
    .av-brk-url { font-size: .65rem; }
    .av-pasos li { font-size: .85rem; padding-left: 1.9rem; }
    .av-bloque { padding: .9rem .85rem; border-radius: .85rem; }
    .av-problema summary { font-size: .85rem; padding: .8rem .85rem; }
    .av-wel-card { padding: 1.3rem 1.1rem; border-radius: 1.1rem; }
    .av-wel-title { font-size: 1.1rem; }
}

/* ---------- Impresión: la guía como manual de papel ---------- */
@media print {
    .av-hero-actions, .av-help-actions, .av-cta, .admin-nav-bar, aside, .av-overlay, nav { display: none !important; }
    .mx-guia { max-width: 100%; }
    .av-hero, .av-indice, .av-bloque, .av-problema, .av-glosario-item, .av-brk-frame {
        background: #fff !important; border-color: #ccc !important; box-shadow: none !important;
        break-inside: avoid; page-break-inside: avoid;
    }
    .av-hero h3, .av-seccion, .av-step-title, .av-bloque-titulo, .av-pasos li, .av-pasos li strong,
    .av-glosario-item strong, .av-glosario-item p, .av-problema summary, .av-problema-body, .av-step-text {
        color: #111 !important;
    }
    .av-indice-item strong, .av-indice-item em, .av-porque, .av-tip { color: #333 !important; }
    .av-pasos li { color: #111 !important; }
    .av-problema { border: 1px solid #ccc; }
    .av-problema[dopen], details { page-break-inside: avoid; }
    details:not([open]) .av-problema-body { display: block !important; }
    .av-brk-frame img { max-height: 4.2in; object-fit: contain; }
    .av-seccion { border-top: 2px solid #111; page-break-before: auto; }
    a[href]:after { content: ""; }
}
