/* =========================================================
   ayuda.php — Manual de uso y ayuda (estilo profesional)
   ========================================================= */
.ay { max-width: 980px; padding-bottom: 120px; }          /* aire abajo: los botones flotantes no tapan el final */

/* Buscador */
.ay-buscar { max-width: 560px; margin: 18px auto 0; position: relative; }
.ay-buscar::before { content: "🔎"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1rem; opacity: 0.75; pointer-events: none; }
.ay-buscar input { width: 100%; padding: 14px 18px 14px 44px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.35); background: rgba(15, 23, 42, 0.85); background: color-mix(in srgb, var(--c-surface-0) 85%, transparent); color: var(--c-text, #fff); font-size: 1rem; box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s; }
.ay-buscar input:focus { outline: none; border-color: #67e8f9; box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.2); }

/* Elegir quién eres: tarjetas de rol */
.ay-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; margin-bottom: 16px; }
.ay-roles a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
    padding: 18px 10px 14px; min-height: 118px; border-radius: 18px; text-align: center; text-decoration: none;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7)); background: linear-gradient(180deg, color-mix(in srgb, var(--c-surface-2) 70%, transparent), color-mix(in srgb, var(--c-surface-0) 70%, transparent)); border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--c-text, #f1f5f9); font-weight: 700; font-size: 0.92rem; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere;
    box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.7); transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.ay-roles a span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.7rem; line-height: 1; background: rgba(103, 232, 249, 0.1); border: 1px solid rgba(103, 232, 249, 0.2); }
.ay-roles a small { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: #f5b301; color: #1a1200; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.ay-roles a:hover { transform: translateY(-2px); border-color: rgba(245, 179, 1, 0.7); }
.ay-roles a.mio, .ay-roles a.on { border-color: #f5b301; background: linear-gradient(180deg, rgba(245, 179, 1, 0.16), rgba(245, 179, 1, 0.05)); }
.ay-roles a.mio span, .ay-roles a.on span { background: rgba(245, 179, 1, 0.16); border-color: rgba(245, 179, 1, 0.45); }

/* Acciones (compartir / imprimir) */
.ay-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.ay-imprimir { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.4); background: transparent; color: inherit; font-weight: 700; cursor: pointer; width: auto; margin: 0; }
.ay-imprimir:hover { background: rgba(148, 163, 184, 0.12); }

/* Secciones */
.ay-sec { margin: 20px 0; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.55)); background: linear-gradient(180deg, color-mix(in srgb, var(--c-surface-2) 55%, transparent), color-mix(in srgb, var(--c-surface-0) 55%, transparent)); border: 1px solid rgba(148, 163, 184, 0.16); box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.8); scroll-margin-top: 84px; }
.ay-sec.activa { border-color: #f5b301; box-shadow: 0 0 0 1px rgba(245, 179, 1, 0.4), 0 16px 36px -22px rgba(0, 0, 0, 0.8); }
.ay-sec h2 { margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); font-size: 1.35rem; line-height: 1.25; }
.ay-sec h3 { margin: 20px 0 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent-text, #fcd34d); }
.ay-intro { color: var(--texto-gris); margin: 12px 0 0; line-height: 1.6; }

/* Listas: viñetas discretas y pasos numerados */
.ay-sec ul { list-style: none; margin: 0; padding: 0; }
.ay-sec ul > li { position: relative; margin: 0 0 8px; padding-left: 20px; line-height: 1.65; }
.ay-sec ul > li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: #67e8f9; }
.ay-sec ol { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.ay-sec ol > li { position: relative; counter-increment: paso; margin: 0 0 10px; padding: 12px 14px 12px 54px; border-radius: 14px; background: rgba(148, 163, 184, 0.07); line-height: 1.6; }
.ay-sec ol > li::before { content: counter(paso); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f5b301; color: #1a1200; font-weight: 800; font-size: 0.92rem; }
.ay-sec li ul, .ay-sec li ol { margin-top: 8px; }
.ay-sec a { color: var(--c-primary-text, #67e8f9); text-underline-offset: 3px; }
.ay-sec code { padding: 2px 7px; border-radius: 6px; background: rgba(148, 163, 184, 0.16); font-size: 0.85em; word-break: break-all; }

/* Avisos y columnas */
.ay-tip { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.25); border-left: 4px solid #06b6d4; line-height: 1.6; }
.ay-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }

/* Preguntas frecuentes (acordeón) */
.ay-sec details { margin: 10px 0; padding: 0; border-radius: 14px; background: rgba(148, 163, 184, 0.07); border: 1px solid rgba(148, 163, 184, 0.12); overflow: hidden; }
.ay-sec summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; list-style: none; position: relative; line-height: 1.4; }
.ay-sec summary::-webkit-details-marker { display: none; }
.ay-sec summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--c-accent-text, #f5b301); font-weight: 400; }
.ay-sec details[open] > summary::after { content: "–"; }
.ay-sec details[open] > summary { border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.ay-sec details p { margin: 0; padding: 12px 16px 16px; color: var(--texto-gris); line-height: 1.65; }

/* Búsqueda */
.ay-si { background: rgba(245, 179, 1, 0.16); border-radius: 8px; }
.ay-no { opacity: 0.3; }
.ay-sin-resultado { padding: 14px 16px; border-radius: 12px; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }
.ay-contacto { margin-top: 16px; font-weight: 700; }

/* Botones flotantes del sitio: más discretos en el celular y sin chocar entre sí */
@media (max-width: 600px) {
    .ay-sec { padding: 18px 16px; border-radius: 18px; }
    .ay-sec h2 { font-size: 1.2rem; }
    .ay-roles { grid-template-columns: repeat(2, 1fr); }
    .ay-roles a { min-height: 112px; }
    .whatsapp-flotante { width: 50px; height: 50px; left: 14px; bottom: 16px; }
    .whatsapp-flotante svg, .whatsapp-flotante img { width: 26px; height: 26px; }
    .btn-volver-arriba { width: 44px; height: 44px; right: 14px; bottom: 16px; font-size: 1.1rem; }
}

@media print {
    nav, .no-imprimir, footer, .sc-ayuda, .whatsapp-flotante, .btn-volver-arriba { display: none !important; }
    body { background: #fff !important; color: #111 !important; }
    .ay-sec { break-inside: avoid-page; border: 1px solid #ccc; background: #fff; color: #111; box-shadow: none; }
    .ay-sec h2 { border-color: #ccc; }
    .ay-sec h3 { color: #92400e; }
    .ay-sec ol > li { background: #f3f4f6; }
    .ay-sec ol > li::before { background: #92400e; color: #fff; }
    .ay-sec ul > li::before { background: #0e7490; }
    .ay-sec details { background: #fff; } .ay-sec details > * { display: block; }
    .ay-intro, .ay-sec details p { color: #333; }
    .ay-sec a { color: #0e7490; }
    .hero { background: none !important; color: #111 !important; padding: 0 !important; }
}

/* ---- Compatibilidad: la rejilla de roles ya no es una etiqueta <nav>; por si algún día vuelve a serlo, se anula el estilo global del menú ---- */
.ay-roles { position: static; z-index: auto; padding: 0; background: none; border: 0; box-shadow: none; }
.ay-acciones button { width: auto; margin-top: 0; text-transform: none; letter-spacing: 0; }
