/* =====================================================================
   Alena LMS — funciones: notificaciones, cupones/planes/checkout,
   verificación de certificados y analítica de contenido
   ===================================================================== */

.text-danger { color: var(--danger-ink); font-weight: 600; }
.text-success { color: var(--success-ink); font-weight: 600; }
.chart-grid > .span-5 { grid-column: span 5; }
.chart-grid > .span-7 { grid-column: span 7; }
@media (max-width: 960px) { .chart-grid > .span-5, .chart-grid > .span-7 { grid-column: span 12; } }

/* ---------- Cupones ---------- */
.coupon-code {
    display: inline-block; padding: 0.12rem 0.5rem; border-radius: var(--radius-xs); border: 1px dashed var(--brand-400);
    background: var(--brand-50); color: var(--brand-800); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
}
.scope-options { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Planes de precio (admin) ---------- */
.plans-list { display: grid; gap: 0.9rem; margin-bottom: 1rem; }
.plan-card { margin-bottom: 0; border-left: 4px solid var(--brand-500); }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; }
.plan-card-title { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 1rem; }
.plan-card-title svg { width: 17px; height: 17px; color: var(--brand-600); }
.plan-flags { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.plan-flags .check { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 500; color: var(--text); cursor: pointer; margin: 0; }
.plan-flags .check input { width: 17px; height: 17px; accent-color: var(--brand-600); margin: 0; }

/* ---------- Cobros ---------- */
.pay-status-main { display: flex; align-items: center; gap: 0.9rem; }
.pay-status-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--warning-soft); color: var(--warning-ink); flex-shrink: 0; }
.pay-status.is-ready .pay-status-icon { background: var(--success-soft); color: var(--success-ink); }
.pay-status-icon svg { width: 22px; height: 22px; }
.steps-list { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; font-size: 0.92rem; color: var(--text-secondary); }
.steps-list code { font-size: 0.8rem; background: var(--surface-2); padding: 0.1rem 0.35rem; border-radius: 4px; word-break: break-all; }

/* ---------- Notificaciones: ajustes (admin) ---------- */
.notif-rules { display: grid; gap: 0.5rem; }
.notif-rule {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); flex-wrap: wrap; margin: 0; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.notif-rule:hover { border-color: var(--brand-300); background: var(--brand-50); }
.notif-rule > input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand-600); margin: 0; flex-shrink: 0; }
.notif-rule > span:not(.notif-rule-param) { flex: 1; min-width: 200px; display: grid; gap: 0.1rem; }
.notif-rule strong { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.notif-rule small { color: var(--text-tertiary); font-size: 0.8rem; }
.notif-rule-master { background: var(--brand-50); border-color: var(--brand-200); }
.notif-rule-param { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap; }
.notif-rule-param input { width: 68px; min-height: var(--control-h-sm); padding: 0.2rem 0.5rem; text-align: center; }
.cron-help > summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.cron-help > summary::-webkit-details-marker { display: none; }
.cron-help > summary svg { width: 17px; height: 17px; color: var(--brand-600); }
.cron-help[open] > summary { margin-bottom: 0.7rem; }
.code-block { background: var(--ink, #0b1f24); color: #d1faf0; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.8rem; overflow-x: auto; margin: 0.3rem 0 0.9rem; }

/* ---------- Notificaciones: campana y listado (estudiante) ---------- */
.header-tools { display: flex; align-items: center; margin-left: 0.3rem; }
@media (max-width: 860px) { .header-tools { margin-left: auto; } }
.bell-trigger { position: relative; width: 40px; height: 40px; padding: 0 !important; justify-content: center; border-radius: 50%; }
.bell-trigger svg { width: 20px; height: 20px; }
.bell-count {
    position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--danger); color: #fff; font-size: 0.66rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
    box-shadow: 0 0 0 2px var(--surface);
}
.bell-menu { min-width: 320px; max-width: min(92vw, 380px); padding: 0; overflow: hidden; }
.bell-menu::before { display: none; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.bell-head a { font-size: 0.8rem; font-weight: 600; color: var(--brand-700); }
.bell-item, .notif-item > a { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.7rem 0.9rem; color: var(--text); text-decoration: none; transition: background-color 0.15s ease; }
.bell-item { border-bottom: 1px solid var(--border); }
.bell-item:last-child { border-bottom: none; }
.bell-item:hover, .notif-item > a:hover { background: var(--brand-50); }
.bell-item.is-unread, .notif-item.is-unread > a { background: rgba(15, 175, 154, 0.07); }
.bell-empty { padding: 1.4rem 1rem; text-align: center; margin: 0; }
.notif-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--text-secondary); }
.notif-icon svg { width: 17px; height: 17px; }
.notif-info { background: var(--info-soft); color: var(--info-ink); }
.notif-warning { background: var(--warning-soft); color: var(--warning-ink); }
.notif-danger { background: var(--danger-soft); color: var(--danger-ink); }
.notif-success { background: var(--success-soft); color: var(--success-ink); }
.notif-text { display: grid; gap: 0.15rem; min-width: 0; flex: 1; font-size: 0.86rem; }
.notif-text strong { font-weight: 600; line-height: 1.3; }
.notif-text .muted { font-size: 0.8rem; line-height: 1.35; }
.notif-list-card { padding: 0; overflow: hidden; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item > a { padding: 0.9rem 1.1rem; align-items: center; }
.notif-time { font-size: 0.76rem; color: var(--text-tertiary); white-space: nowrap; flex-shrink: 0; }

/* ---------- Analítica de contenido ---------- */
.content-selector select { min-width: 220px; max-width: 320px; }
.insight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.insight { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.9rem; }
.insight svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1rem; }
.insight-danger { background: var(--danger-soft); color: var(--danger-ink); }
.insight-warning { background: var(--warning-soft); color: var(--warning-ink); }
.insight-info { background: var(--info-soft); color: var(--info-ink); }
.insight-success { background: var(--success-soft); color: var(--success-ink); }
.insight-neutral { background: var(--surface-2); color: var(--text-secondary); }

/* ---------- Tienda: planes, compra y resultado ---------- */
.purchase-plans { list-style: none; margin: 0.2rem 0 1rem; padding: 0; display: grid; gap: 0.35rem; font-size: 0.88rem; }
.purchase-plans li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--border); }
.purchase-plans li em { color: var(--warning); font-style: normal; }
.course-access-expired { margin: 0 0 0.8rem; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning-ink); font-size: 0.88rem; font-weight: 600; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.1rem; align-items: start; }
.checkout-main .card { margin-bottom: 1rem; }
.checkout-side { position: sticky; top: 76px; }
.plan-options { display: grid; gap: 0.7rem; }
.plan-option {
    display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.95rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); cursor: pointer; margin: 0; transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.plan-option:hover { border-color: var(--brand-300); }
.plan-option.is-selected { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(15, 175, 154, 0.14); }
.plan-option > input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand-600); margin: 0.2rem 0 0; flex-shrink: 0; }
.plan-option-body { display: grid; gap: 0.35rem; min-width: 0; flex: 1; font-weight: 400; }
.plan-option-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.plan-option-head strong { font-size: 1rem; color: var(--text); }
.plan-option-price { margin-left: auto; font-weight: 700; font-size: 1.05rem; color: var(--text); display: inline-flex; gap: 0.5rem; align-items: baseline; }
.plan-option-price s { font-size: 0.85rem; font-weight: 400; }
.plan-option-desc { font-size: 0.86rem; }
.plan-option-features { list-style: none; margin: 0.15rem 0 0; padding: 0; display: grid; gap: 0.25rem; font-size: 0.85rem; color: var(--text-secondary); }
.plan-option-features li { display: flex; align-items: center; gap: 0.45rem; }
.plan-option-features svg { width: 15px; height: 15px; color: var(--brand-600); flex-shrink: 0; }
.plan-option-features li.is-off { color: var(--text-tertiary); }
.plan-option-features li.is-off svg { color: var(--danger); }
.coupon-row input { flex: 1; }
.coupon-msg { margin: 0.5rem 0 0; font-size: 0.85rem; min-height: 1.2em; }
.coupon-msg.ok { color: var(--success-ink); font-weight: 600; }
.coupon-msg.bad { color: var(--danger-ink); }
.checkout-summary { margin-bottom: 0; }
.checkout-course { margin: 0 0 0.8rem; font-weight: 600; line-height: 1.35; }
.summary-lines { margin: 0 0 1rem; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-lines dt { color: var(--text-secondary); }
.summary-lines dd { margin: 0; font-weight: 600; text-align: right; }
.summary-total { padding-top: 0.6rem; border-top: 1px solid var(--border); font-size: 1.1rem; }
.summary-total dt { color: var(--text); font-weight: 600; }
.checkout-secure { display: flex; gap: 0.4rem; align-items: flex-start; margin: 0.9rem 0 0; font-size: 0.8rem; }
.checkout-secure svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 0.1rem; color: var(--brand-600); }
@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-side { position: static; }
    .plan-option-price { margin-left: 0; width: 100%; }
}

.result-card { max-width: 520px; margin: 1.5rem auto; text-align: center; padding: 2rem 1.5rem; }
.result-card h1 { font-size: 1.35rem; margin: 0.9rem 0 0.4rem; }
.result-icon { width: 60px; height: 60px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-2); }
.result-icon svg { width: 30px; height: 30px; }
.result-success { background: var(--success-soft); color: var(--success-ink); }
.result-warning { background: var(--warning-soft); color: var(--warning-ink); }
.result-danger { background: var(--danger-soft); color: var(--danger-ink); }
.result-lines { text-align: left; margin: 1.3rem 0; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.result-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Verificación pública de certificados ---------- */
.verify-wrap { max-width: 640px; margin: 1.5rem auto 2.5rem; padding: 0 1rem; }
.verify-head { text-align: center; margin-bottom: 1.4rem; }
.verify-head h1 { font-size: 1.5rem; margin: 0.8rem 0 0.4rem; }
.verify-icon { width: 58px; height: 58px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--brand-gradient); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 175, 154, 0.7); }
.verify-icon svg { width: 28px; height: 28px; }
.verify-form { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; }
.verify-form input { flex: 1; text-transform: uppercase; letter-spacing: 0.05em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.verify-result { padding: 1.3rem 1.4rem; border-left-width: 5px; }
.verify-result.is-valid { border-left-color: var(--success); }
.verify-result.is-invalid { border-left-color: var(--danger); }
.verify-result-head { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.4rem; }
.verify-result-head h2 { font-size: 1.15rem; margin: 0 0 0.15rem; }
.verify-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.verify-badge svg { width: 24px; height: 24px; }
.verify-badge.ok { background: var(--success-soft); color: var(--success-ink); }
.verify-badge.bad { background: var(--danger-soft); color: var(--danger-ink); }
.verify-details { margin: 1rem 0 0; display: grid; gap: 0; }
.verify-details > div { display: grid; grid-template-columns: 170px 1fr; gap: 0.8rem; padding: 0.6rem 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.verify-details dt { color: var(--text-tertiary); }
.verify-details dd { margin: 0; font-weight: 600; word-break: break-word; }
.verify-details code { font-size: 0.85rem; letter-spacing: 0.04em; }
@media (max-width: 560px) {
    .verify-form { flex-direction: column; }
    .verify-details > div { grid-template-columns: 1fr; gap: 0.1rem; }
    .bell-menu { position: fixed; top: 60px; left: 8px; right: 8px; min-width: 0; max-width: none; }
}

header.site-header .bell-trigger { color: var(--text-secondary); }
header.site-header .bell-trigger:hover, header.site-header .bell.open .bell-trigger { background: var(--brand-50); color: var(--brand-800); }

/* ---------- Landing: chips del mock, franja de destacados y etiqueta "según plan" ---------- */
.hero-mock-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.hero-mock-chips span {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.6rem; border-radius: 999px;
    background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-200); font-size: 0.72rem; font-weight: 600;
}
.hero-mock-chips svg { width: 13px; height: 13px; }

.highlight-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.highlight-inner { max-width: 1120px; margin: 0 auto; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.highlight { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }
.highlight svg { width: 22px; height: 22px; color: var(--brand-600); flex-shrink: 0; margin-top: 0.1rem; }
.highlight strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 0.1rem; }
@media (max-width: 900px) { .highlight-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .highlight-inner { grid-template-columns: 1fr; } }

.plan-tag {
    display: inline-block; margin-left: 0.25rem; padding: 0.02rem 0.4rem; border-radius: 999px; font-size: 0.66rem; font-weight: 700;
    background: var(--warning-soft); color: var(--warning-ink); white-space: nowrap; vertical-align: middle;
}

/* ---------- Landing: formulario de contacto (reCAPTCHA v3, teléfono, consentimiento) ---------- */
/* Oculta el badge flotante de reCAPTCHA; a cambio el formulario muestra el texto legal de Google (.recaptcha-legal). */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-legal { margin: 0.8rem 0 0; font-size: 0.75rem; line-height: 1.5; color: var(--text-tertiary); }
.recaptcha-legal a { color: var(--brand-700); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form .iti { width: 100%; display: block; }
.contact-form .field > .iti input { width: 100%; }
.contact-consent { align-items: flex-start !important; font-size: 0.82rem !important; line-height: 1.5; margin-top: 0.2rem !important; }
.contact-consent input { margin-top: 0.2rem; }
.contact-consent a { color: var(--brand-700); text-decoration: underline; }

/* ---------- Super admin: SEO (vistas previas) y editor de scripts ---------- */
.counter { font-weight: 700; }
.counter.over { color: var(--danger-ink); }
.serp-preview { display: grid; gap: 0.15rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; max-width: 640px; font-family: Arial, sans-serif; }
.serp-url { font-size: 0.8rem; color: #202124; }
.serp-title { font-size: 1.15rem; color: #1a0dab; line-height: 1.3; }
.serp-desc { font-size: 0.85rem; color: #4d5156; line-height: 1.5; }
.share-preview { display: flex; flex-direction: column; max-width: 480px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); }
.share-preview-img { aspect-ratio: 1200 / 630; background: var(--surface-2) center / cover no-repeat; display: grid; place-items: center; color: var(--text-tertiary); font-size: 0.85rem; }
.share-preview-body { display: grid; gap: 0.2rem; padding: 0.7rem 0.9rem; }
.share-preview-body small { color: var(--text-tertiary); font-size: 0.7rem; letter-spacing: 0.04em; }
.share-preview-body strong { font-size: 0.95rem; color: var(--text); line-height: 1.3; }
.share-preview-body span { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.5; min-height: 240px; white-space: pre; overflow: auto; tab-size: 2; }

/* ---------- Super admin: estado del correo saliente ---------- */
.mail-status { margin: 0; display: grid; gap: 0; }
.mail-status > div { display: grid; grid-template-columns: 190px 1fr; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--border); font-size: 0.92rem; align-items: start; }
.mail-status > div:first-child { border-top: none; }
.mail-status dt { color: var(--text-tertiary); }
.mail-status dd { margin: 0; display: grid; gap: 0.3rem; justify-items: start; }
@media (max-width: 560px) { .mail-status > div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* ---------- Verificación en dos pasos ---------- */
.tf-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tf-option {
    display: grid; gap: 0.5rem; align-content: start; padding: 1.2rem; border: 2px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tf-option:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.tf-option strong { font-size: 1.05rem; }
.tf-option .muted { font-size: 0.88rem; line-height: 1.5; }
.tf-option-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); }
.tf-option-icon svg { width: 22px; height: 22px; }
.tf-option-cta { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; font-weight: 600; color: var(--brand-700); font-size: 0.9rem; }
.tf-option-cta svg { width: 16px; height: 16px; }
.tf-card { max-width: 560px; }
.tf-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 1.4rem; }
.tf-steps > li { display: grid; gap: 0.5rem; }
.tf-steps > li::marker { font-weight: 700; color: var(--brand-700); }
.tf-qr-wrap { display: flex; }
.tf-qr { width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }
.tf-secret { display: block; padding: 0.55rem 0.75rem; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 0.95rem; letter-spacing: 0.06em; word-break: break-all; }
.tf-code-input { max-width: 240px; font-size: 1.25rem !important; letter-spacing: 0.25em; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tf-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.tf-codes code { display: block; padding: 0.6rem 0.8rem; text-align: center; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.08em; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
@media (max-width: 720px) { .tf-options { grid-template-columns: 1fr; } }
@media print { .page-header, .crumbs, .form-actions, .alert, header, nav, .bottom-nav { display: none !important; } .tf-codes code { border: 1px solid #000; } }

/* Pasos numerados (la lista usa grid, que oculta los números nativos) */
.tf-steps { list-style: none; padding-left: 0; counter-reset: tfstep; }
.tf-steps > li { counter-increment: tfstep; position: relative; padding-left: 2.4rem; }
.tf-steps > li::before {
    content: counter(tfstep); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--brand-100); color: var(--brand-800); font-weight: 700; font-size: 0.85rem;
}

/* ---------- Landing: menú móvil (hamburguesa + drawer) ---------- */
html { scroll-padding-top: 72px; }
.landing-header .header-burger { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.landing-header .header-burger:hover { background: var(--brand-50); }
.drawer-cta { display: grid; gap: 0.6rem; padding: 0.9rem; border-top: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; padding-bottom: calc(0.9rem + env(safe-area-inset-bottom)); }
.drawer-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 860px) {
    .landing-header { flex-wrap: nowrap; justify-content: flex-start; gap: 0.6rem; padding: 0 0.85rem; padding-top: env(safe-area-inset-top); height: calc(58px + env(safe-area-inset-top)); }
    .landing-header .header-burger { flex-shrink: 0; }
    .landing-header .brand { font-size: 1.1rem; }
    .landing-nav { display: none; }
    .landing-actions { margin-left: auto; gap: 0; }
    .landing-actions .btn-secondary { display: none; }
    .landing-actions .btn { min-height: 40px; padding: 0.4rem 0.95rem; font-size: 0.88rem; }
}
@media (min-width: 861px) {
    .drawer-backdrop, .app-drawer { display: none !important; }
}

/* Landing en celular: los dos botones del hero ocupan el mismo ancho */
@media (max-width: 560px) {
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
}
