/* =====================================================================
   El Atajo v3 (17-10-2026): identidad de IA que trabaja (tinta + rojo),
   cabecera con logo legible, secciones oscuras, tarjetas con imagen.
   Se carga después de app.css y solo sobrescribe.
   ===================================================================== */
:root {
  --accent: #D62839; --accent-hover: #B51F2F; --accent-soft: #FFF1F2; --signal: #D62839; --cyan: #D62839;
  --ink: #1A1A1E; --ink-2: #26262C; --ink-text: #F4F4F6; --ink-dim: #A9A9B3;
  --alt: #F6F6F8; --border: #E8E8ED; --border-strong: #D2D2DA; --text: #1A1A1E; --text-2: #4A4A55; --text-3: #6B6B76;
  --radius: 10px; --radius-lg: 16px; --shadow-card: 0 1px 2px rgba(20,20,30,.04), 0 8px 24px rgba(20,20,30,.06);
}
:root[data-theme="dark"] {
  --accent: #FF5A67; --accent-hover: #FF7A85; --accent-soft: #3A1A1E; --signal: #FF5A67; --cyan: #FF5A67; --on-accent: #16070A;
  --ink: #0E0E11; --ink-2: #1C1C22; --bg: #121215; --surface: #1A1A1F; --alt: #16161A; --border: #2A2A31; --border-strong: #3B3B44;
  --text: #ECECEF; --text-2: #B9B9C2; --text-3: #8E8E99; --shadow-card: none;
}
h1, h2 { letter-spacing: -.025em; }
.btn { border-radius: 10px; font-weight: 500; }
.btn.lg { min-height: 52px; padding: 0 26px; }

/* ---------- cabecera ---------- */
.top { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.brand { gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .brand-icon { width: 36px; height: 36px; display: block; border-radius: 10px; }
.brand-name { display: flex; flex-direction: column; font: 700 20px/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.brand-name small { font: 500 11.5px/1 var(--sans); letter-spacing: .01em; color: var(--text-3); margin-top: 4px; }
.tools { margin-left: auto; }
.top-app .wrap { max-width: none; padding: 0 32px; }
.mainnav a[aria-current="page"] { color: var(--accent); }
.avatar { background: var(--accent); color: #fff; }
@media (max-width: 720px) {
  .top .wrap, .top-app .wrap { padding: 0 16px; gap: 12px; }
  .brand-name { font-size: 18px; }
  .brand-name small { font-size: 10.5px; }
  .tools { gap: 2px; }
  .tools .btn.sm { padding: 0 12px; }
}
@media (max-width: 380px) { .brand-name small { display: none; } }

/* ---------- píldoras ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.08); color: #FFD7DA; border: 1px solid rgba(255,255,255,.14); margin-bottom: 18px; }
.pill.light { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------- secciones oscuras ---------- */
.dark { background: var(--ink); color: var(--ink-text); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .l-head p, .dark p { color: var(--ink-dim); }
.btn.ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn.ghost-inv:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

/* ---------- hero ---------- */
.l-hero.dark { position: relative; overflow: hidden; padding: 72px 0 40px; border-radius: 0 0 28px 28px; }
.l-hero.dark::before { content: ""; position: absolute; right: -10%; top: -30%; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(214,40,57,.38), transparent); pointer-events: none; }
.l-hero .wrap { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; max-width: 1200px; }
.l-hero h1 { font-size: 60px; max-width: 11ch; }
.l-hero .lead { color: var(--ink-dim); }
.l-hero .note { color: var(--ink-dim); }
.l-hero-visual { position: relative; height: 470px; }
.win { position: absolute; border-radius: 14px; overflow: hidden; background: #26262C; box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); }
.win img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.win-back { right: -30px; top: 0; width: 400px; height: 250px; opacity: .6; transform: rotate(3deg); }
.win-front { left: 0; top: 60px; width: 460px; height: 400px; background: #fff; }
.win-front img { height: calc(100% - 34px); }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #F2F2F5; border-bottom: 1px solid #E4E4EA; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F56; flex: 0 0 auto; }
.win-bar i:nth-child(2) { background: #FFBD2E; } .win-bar i:nth-child(3) { background: #27C93F; }
.win-bar b { margin-left: 10px; font: 500 12px/1 var(--sans); color: #55555F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Solo las etiquetas flotantes de la portada: .chip suelto son las casillas de /intereses (app.css). */
.l-hero-visual .chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: #fff; color: #1A1A1E;
  font: 500 13px/1 var(--sans); box-shadow: 0 12px 30px rgba(0,0,0,.3); white-space: nowrap; }
.l-hero-visual .chip .icon { color: #18794e; }
.chip-a { right: 10px; top: 210px; }
.chip-b { left: -20px; bottom: 6px; background: var(--accent); color: #fff; }
.l-outcomes { margin-top: 40px; padding: 22px 24px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.l-outcomes > span { display: block; color: var(--ink-dim); font-size: 13px; margin-bottom: 12px; }
.l-outcomes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 24px; }
.l-outcomes li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.45; color: #E6E6EA; }
.l-outcomes li .icon { color: #FF7A85; margin-top: 2px; }
@media (max-width: 980px) {
  .l-hero .wrap { grid-template-columns: 1fr; }
  .l-hero-visual { height: 360px; max-width: 520px; width: 100%; }
  .win-front { width: 88%; height: 320px; top: 30px; }
  .win-back { width: 70%; height: 220px; right: 0; }
  .chip-a { top: auto; bottom: 50px; right: 0; }
  .chip-b { left: 8px; bottom: -4px; }
}
@media (max-width: 720px) {
  .l-hero.dark { padding: 36px 0 28px; border-radius: 0 0 20px 20px; }
  .l-hero h1 { font-size: 40px; }
  .l-hero .actions .btn { width: 100%; }
  .l-hero-visual { height: 280px; }
  .win-front { height: 250px; width: 92%; }
  .win-back { display: none; }
  .l-outcomes { margin-top: 28px; padding: 18px; }
}

/* ---------- cifras + herramientas ---------- */
.l-stats { padding: 36px 0 8px; }
.l-stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.l-stats .wrap > div { padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.l-stats b { display: block; font: 700 34px/1.1 var(--sans); letter-spacing: -.02em; color: var(--text); }
.l-stats span { color: var(--text-3); font-size: 14px; }
.l-tools { padding: 20px 0 8px; }
.l-tools .wrap { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }
.l-tools .wrap > span { color: var(--text-3); font-size: 13px; }
.l-tools ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.l-tools li { padding: 6px 12px; border-radius: 999px; background: var(--alt); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
@media (max-width: 720px) { .l-stats .wrap { grid-template-columns: 1fr 1fr; gap: 10px; } .l-stats b { font-size: 26px; } .l-stats .wrap > div { padding: 14px; } }

/* ---------- secciones ---------- */
.l-section { border-top: 0; padding: 88px 0; }
.l-section.dark { border-radius: 28px; margin: 0 12px; }
.l-head h2 { font-size: 40px; }
.center-head { text-align: center; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .l-section { padding: 56px 0; } .l-head h2 { font-size: 28px; } .l-section.dark { margin: 0 6px; border-radius: 20px; } }

/* ---------- tarjetas de curso ---------- */
.c-grid { gap: 18px; }
.l-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-route { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.l-route h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.l-route p { margin: 0; color: var(--text-2); line-height: 1.55; }
.l-route ol { margin: 0; padding-left: 22px; color: var(--text-2); }
.l-route li { padding: 3px 0; }
.l-route-link { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 700; }
.l-route-note { max-width: 760px; margin: -18px auto 28px; text-align: center; color: var(--text-2); line-height: 1.55; }
.l-route-more { max-width: 760px; margin: 20px auto 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.l-route-more > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; color: var(--text); font-weight: 700; list-style: none; }
.l-route-more > summary::-webkit-details-marker { display: none; }
.l-route-more > summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.l-route-more[open] > summary::after { content: "−"; }
.l-route-more > summary span { margin-left: auto; color: var(--text-3); font-size: 13px; font-weight: 500; }
.l-route-more > .l-route-grid { padding: 0 16px 16px; }
.l-route-more:focus-within { border-color: var(--accent); }
.l-route-choose { width: 100%; justify-content: center; margin-top: auto; text-align: center; }
.l-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-result { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.l-result-num { display: inline-flex; margin-bottom: 18px; color: var(--accent); font: 600 12px/1 var(--mono); }
.l-result h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.l-result p { margin: 0; color: var(--text-2); line-height: 1.55; }
.l-income-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 42px; align-items: center; }
.l-income-panel h2 { max-width: 18ch; margin: 14px 0; font-size: 36px; line-height: 1.15; }
.l-income-panel > div > p { max-width: 66ch; color: var(--text-2); line-height: 1.65; }
.l-income-caveat { font-size: 14px; }
.l-income-reference { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); }
.l-income-reference > span { display: block; color: var(--text-3); font-size: 13px; }
.l-income-examples { display: grid; gap: 14px; margin: 18px 0; padding: 0; list-style: none; }
.l-income-examples li { display: grid; gap: 3px; }
.l-income-examples b { color: var(--text); font-size: 15px; }
.l-income-examples span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.l-income-reference p { margin: 18px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.l-jobs-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 48px; align-items: center; padding: 36px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card); }
.l-jobs-copy h2 { margin: 18px 0 12px; font-size: 34px; line-height: 1.2; }
.l-jobs-copy p { margin: 0 0 22px; color: var(--text-2); line-height: 1.65; }
.l-jobs-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.l-jobs-points li { display: grid; gap: 5px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--alt); }
.l-jobs-points span { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.route-choice-list { display: grid; gap: 12px; }
.route-choice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.route-choice:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.route-choice > input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--accent); }
.route-choice-copy { display: grid; gap: 6px; min-width: 0; }
.route-choice-copy > span { color: var(--text-2); line-height: 1.5; }
.route-choice details { margin-top: 4px; }
.route-choice summary { color: var(--accent); font-weight: 650; }
.route-choice details ol { margin: 10px 0 0; padding-left: 22px; }
.route-choice details li { padding: 4px 0; }
.route-choice details ul { margin: 4px 0 8px; padding-left: 20px; color: var(--text-2); }
.p-grid-single { grid-template-columns: minmax(0, 380px); justify-content: center; margin-inline: auto; }
.p-grid-single .p-card { text-align: center; }
.p-grid-single .p-card .p-name { justify-content: center; flex-wrap: wrap; }
.p-grid-single .p-card .p-lanz { max-width: 330px; margin-inline: auto; }
.p-grid-single .p-price-after { margin: -4px 0 0; color: var(--text-2); font-size: 13px; }
.p-disclaimer { max-width: 850px; margin: 12px auto 0; line-height: 1.55; overflow-wrap: anywhere; }
.l-testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-testimonial { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.l-testimonial blockquote { margin: 0; color: var(--text-2); line-height: 1.65; }
.l-testimonial-author { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; }
.l-testimonial-author span { color: var(--text-3); font-size: 13px; }
.c-card { border-radius: 16px; box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s, border-color .18s; }
.c-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(20,20,30,.12); border-color: var(--border-strong); }
.c-shot { aspect-ratio: 16 / 10; background: #16161A; border-bottom: 0; }
.c-shot img { object-position: center; }
.c-top { font: 500 12px/1 var(--mono); color: var(--accent); }
.c-card h3 { font-weight: 700; font-size: 19px; }
.c-foot { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 13px; margin-top: auto; padding-top: 6px; }
.c-foot .arrow { color: var(--accent); font-size: 18px; transition: transform .18s; }
.c-card:hover .c-foot .arrow { transform: translateX(4px); }
.c-badge.free { background: #E9F7EF; color: #18794e; border-radius: 999px; padding: 4px 8px; }
@media (max-width: 980px) { .c-grid, .l-route-grid, .l-testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .l-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .l-jobs-panel { grid-template-columns: 1fr; gap: 28px; } .l-income-panel { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 620px) { .c-grid, .l-route-grid, .l-testimonials { grid-template-columns: 1fr; } .p-grid-single { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .l-results-grid { grid-template-columns: 1fr; } .l-jobs-panel { padding: 22px; } .l-jobs-copy h2 { font-size: 28px; } .l-income-panel h2 { font-size: 29px; } .l-income-reference { padding: 22px; } }
@media (max-width: 480px) { .l-route-more > summary { padding: 15px 16px; } .l-route-more > summary span { max-width: 120px; text-align: right; } .l-route-more > .l-route-grid { padding: 0 10px 10px; } }

/* ---------- clase por dentro ---------- */
.l-class { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; }
.l-shot { border-radius: 16px; box-shadow: 0 24px 60px rgba(20,20,30,.14); position: relative; }
.l-shot img { max-height: 560px; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .l-class { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- qué incluye ---------- */
.l-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-features article { padding: 26px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.l-features h3 { font-size: 18px; font-weight: 700; margin: 14px 0 8px; }
.l-features p { color: var(--text-2); font-size: 15px; margin: 0; }
.f-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 900px) { .l-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .l-features { grid-template-columns: 1fr; } }

/* ---------- casos (oscuro) ---------- */
.l-cases { gap: 18px; }
.dark .l-case { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 26px; }
.dark .l-case .num { color: #FF7A85; font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
.dark .l-case .num-sub { color: var(--ink-dim); }

/* ---------- quién soy ---------- */
.l-about { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: center; }
.l-about img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 60px rgba(20,20,30,.16); }
@media (max-width: 820px) { .l-about { grid-template-columns: 1fr; gap: 28px; } .l-about img { max-width: 320px; } }

/* ---------- FAQ ---------- */
.l-faq-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.l-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
@media (max-width: 900px) { .l-faq-wrap { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- cierre ---------- */
.l-final { margin: 0 12px 40px; border-radius: 28px; padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.l-final::before { content: ""; position: absolute; left: 50%; top: -60%; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(214,40,57,.35), transparent); }
.l-final .wrap { position: relative; }
.l-final h2 { font-size: 40px; }
@media (max-width: 720px) { .l-final { margin: 0 6px 24px; padding: 48px 0; border-radius: 20px; } .l-final h2 { font-size: 28px; } }

/* Portada compacta: primero el beneficio, luego el recorrido y el precio. */
.landing-simple .l-section { padding: 64px 0; }
.landing-simple .l-head { max-width: 820px; }
.landing-simple .l-hero.dark { padding-top: 58px; padding-bottom: 54px; }
.landing-simple .l-hero .wrap { gap: 36px; }
.landing-simple .l-hero h1 { max-width: 14ch; }
.landing-simple .l-hero .note { max-width: 56ch; font-size: 14px; }
.l-live-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 16px 40px rgba(20, 20, 20, .06); }
.l-live-card > div:first-child { max-width: 760px; }
.l-live-card h2 { font-size: 32px; margin: 14px 0 10px; }
.l-live-card p { color: var(--text-2); font-size: 16px; margin: 0; }
.l-live-mark { flex: 0 0 auto; display: grid; place-items: center; width: 156px; height: 112px; border-radius: 18px; background: linear-gradient(140deg, #fff1ea, #f7e5dc); color: #a7472b; font-size: 14px; font-weight: 800; letter-spacing: .14em; }
@media (max-width: 680px) { .l-live-card { align-items: flex-start; flex-direction: column-reverse; padding: 23px; } .l-live-card h2 { font-size: 25px; } .l-live-mark { width: 124px; height: 78px; } }
.l-outcome-scope { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: 36px; }
.l-outcome-scope h2 { max-width: 19ch; margin: 16px 0; font-size: 36px; line-height: 1.15; }
.l-outcome-scope p { max-width: 62ch; color: var(--text-2); line-height: 1.65; }
.l-scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.l-scope-list li { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 14px; line-height: 1.35; }
.l-features.compact-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-features article { padding: 22px; }
.compact-features article a { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; }
@media (max-width: 1100px) { .l-features.compact-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .l-features.compact-features { grid-template-columns: 1fr; } }
.landing-simple .l-route-grid { gap: 14px; }
.landing-simple .l-route { padding: 20px; }
.landing-simple .l-route-choose { min-height: 46px; }
.landing-simple .l-testimonial { padding: 22px; }
@media (max-width: 900px) { .l-outcome-scope { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 620px) {
  .landing-simple .l-section { padding: 48px 0; }
  .landing-simple .l-hero.dark { padding-top: 34px; padding-bottom: 36px; }
  .landing-simple .l-hero .wrap { gap: 22px; }
  .l-outcome-scope h2 { font-size: 28px; }
  .l-scope-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .l-scope-list li { padding: 12px; font-size: 13px; }
}

/* ---------- páginas internas ---------- */
.page-head { padding: 56px 0 36px; }
.page-head h1 { font-size: 44px; }
@media (max-width: 720px) { .page-head { padding: 32px 0 20px; } .page-head h1 { font-size: 30px; } }
.card { border-radius: 16px; box-shadow: var(--shadow-card); }
.foot { background: var(--alt); }

.l-hero .wrap.l-out-wrap { display: block; }
/* Móvil: el chat de visitantes es un círculo con «?» para no tapar botones (p. ej. «Avísame cuando abra» en /planes). */
@media (max-width: 720px) {
  .visitor-chat-toggle { width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; box-shadow: var(--shadow-card); }
  .visitor-chat-toggle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .visitor-chat-toggle::before { content: "?"; font: 600 20px/1 var(--sans); }
  .visitor-chat-toggle[aria-expanded="true"]::before { content: "×"; }
}
/* Páginas de cuenta (entrar, registro, olvide…): margen lateral en móvil. */
@media (max-width: 480px) { .auth { margin: 32px 20px 72px; } }

/* ---------- lista de lecciones del módulo: filas limpias ---------- */
.student-main .lessons { display: block; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.student-main .lessons > li { padding: 0; border: 0; border-radius: 0; border-top: 1px solid var(--border); background: transparent; }
.student-main .lessons > li:first-child { border-top: 0; }
.student-main .lessons a, .student-main .lessons .row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 22px; }
.student-main .lessons a:hover { background: var(--alt); }
.student-main .lessons a:hover .t { color: var(--accent); }
.lessons .st { width: 30px; height: 30px; font-size: 13px; }
.lessons .t { font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.lessons .t small { font-size: 14.5px; line-height: 1.5; margin-top: 4px; }
.lessons .r { padding-top: 4px; white-space: nowrap; }
@media (max-width: 620px) { .student-main .lessons a { grid-template-columns: 30px minmax(0, 1fr); padding: 16px; } .student-main .lessons .r { grid-column: 2; padding: 0; } }
.module-state--available { background: #E9F7EF; color: #18794e; border-radius: 999px; }

/* ---------- admin: cómo empezar ---------- */
.launch-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.launch-count { text-align: center; padding: 10px 16px; border-radius: 14px; background: var(--alt); }
.launch-count b { display: block; font-size: 28px; line-height: 1.1; }
.launch-count span { font-size: 12px; color: var(--text-3); }
.launch-list { list-style: none; margin: 20px 0 16px; padding: 0; }
.launch-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.launch-list li p { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }
.launch-st { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-strong); font: 500 13px var(--mono); color: var(--text-3); }
.launch-list li.ok .launch-st { background: #18794e; border-color: #18794e; color: #fff; }
.launch-list li.ok b { color: var(--text-2); }
@media (max-width: 620px) { .launch-list li { grid-template-columns: 30px minmax(0, 1fr); } .launch-list li .btn { grid-column: 2; justify-self: start; } .launch-head { flex-direction: column; } }
.admin-wrap { min-width: 0; }
.admin-wrap .tbl { display: block; overflow-x: auto; }
.setting-row { min-width: 0; }
.setting-row input, .setting-row select { max-width: 100%; }
.admin-wrap code { word-break: break-all; }

/* ---------- formulario de facturación ---------- */
.precio-caja { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.precio-caja dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.precio-caja dt, .precio-caja dd { margin: 0; }
.precio-caja dd { text-align: right; }
.precio-caja .total { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; }
.fiscal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 10px; }
.fiscal-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; min-width: 0; }
.fiscal-grid .span2 { grid-column: span 2; }
.fiscal-grid input, .fiscal-grid select { width: 100%; }
.fiscal-box { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.fiscal-box summary { cursor: pointer; font-size: 14.5px; font-weight: 500; }
@media (max-width: 560px) { .fiscal-grid { grid-template-columns: 1fr; } .fiscal-grid .span2 { grid-column: auto; } }

/* ---------- empleo ---------- */
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--text-2); font-size: 14.5px; }
.prose h3 { font-size: 17px; margin: 18px 0 6px; }
.prose ul { margin: 0 0 8px; padding-left: 20px; }
.tag.free { background: #E9F7EF; color: #18794e; }

/* ---------- capturas en tickets ---------- */
.capturas-prev { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.captura-mini { width: 96px; height: 72px; padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--alt); cursor: pointer; display: inline-block; }
.captura-mini.grande { width: 220px; height: 150px; }
.captura-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.capturas-prev small { color: var(--text-3); }

/* ---------- intro paso a paso ---------- */
.intro { max-width: 1120px; margin: 0 auto; padding: 32px 0 64px; }
.intro-head { max-width: 680px; margin-bottom: 18px; }
.intro-dots { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; }
.intro-dots li { flex: 1; height: 5px; border-radius: 99px; background: var(--border); }
.intro-dots li.on { background: var(--accent); }
.intro-step { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: center; }
.intro-step[hidden] { display: none; }
.intro-num { font: 500 12px var(--mono); color: var(--accent); }
.intro-text h2 { font-size: 30px; margin: 8px 0 12px; }
.intro-text p { color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.intro-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(20,20,30,.14); background: #fff; }
.intro-shot img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top left; }
.intro-skip { margin-top: 28px; text-align: center; }
@media (max-width: 860px) { .intro-step { grid-template-columns: 1fr; gap: 20px; } .intro-text h2 { font-size: 24px; } .intro-step .intro-shot { order: -1; } }
.beta-fab { position: fixed; left: 16px; bottom: 16px; z-index: 60; padding: 10px 14px; border-radius: 999px; background: #1A1A1E; color: #fff;
  text-decoration: none; font: 500 13.5px var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.beta-fab:hover { background: var(--accent); color: #fff; }
/* QA 23-10: en móvil «✦ Mejora» tapaba botones alineados a la izquierda (Responder, Buscar…): círculo con ✦ y
   sitio libre al final de la página para poder bajar los botones por encima de él. */
@media (max-width: 720px) {
  .beta-fab { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; font-size: 18px; left: 12px; bottom: 12px; }
  .beta-fab .beta-fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Revisión final 22-10: en móvil el botón del tutor se queda en un círculo con el icono para no tapar
   el texto de la lección, y el pie deja sitio para los botones flotantes. */
@media (max-width: 720px) {
  .tutor-fab { width: 52px; height: 52px; min-height: 52px; padding: 0; justify-content: center; }
  .tutor-fab .fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tutor-fab svg { width: 22px; height: 22px; }
  body > footer.foot { padding-bottom: 88px; }
}

/* Alineación de columnas de las tablas Markdown (antes style en línea, bloqueado por la CSP). */

/* Resaltado de código en tema claro con contraste AA (>=4,5:1 sobre el fondo del bloque). El tema oscuro
   (:root[data-theme=dark] en code.css) tiene más especificidad y no cambia. */
.hl .c, .hl .ch, .hl .cm, .hl .cpf, .hl .c1, .hl .cs { color: #436F7B; }
.hl .gr { color: #D60000; }
.hl .gi { color: #007C00; }
.hl .go, .hl .w { color: #6A6A6A; }
.hl .gp, .hl .sx { color: #AA4F07; }
.hl .m, .hl .mb, .hl .mf, .hl .mh, .hl .mi, .hl .mo, .hl .il { color: #2F7652; }
.hl .s, .hl .na, .hl .sa, .hl .sb, .hl .sc, .hl .dl, .hl .sd, .hl .s2, .hl .se, .hl .sh, .hl .s1 { color: #3E6D9C; }
.hl .nc, .hl .nn { color: #0C719B; }
.hl .no { color: #3D6E88; }
.hl .ni { color: #B2472E; }
.hl .nv, .hl .vc, .hl .vg, .hl .vi, .hl .vm { color: #954CAA; }
.hl .si { color: #4C6C8D; }
.hl .ss { color: #4D7417; }
.table-wrap .ta-left { text-align: left; } .table-wrap .ta-center { text-align: center; } .table-wrap .ta-right { text-align: right; }
.table-wrap .ta-left { text-align: left; } .table-wrap .ta-center { text-align: center; } .table-wrap .ta-right { text-align: right; }

/* Glosario en las clases: la primera vez que sale una palabra técnica, su explicación al pasar el ratón o tocarla. */
.glosa { position: relative; border-bottom: 1px dotted currentColor; cursor: help; }
.glosa:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.glosa-def { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max-content; max-width: min(320px, 78vw);
  padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--ink-text); font-size: 14.5px; line-height: 1.45; font-weight: 400;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); white-space: normal; }
.glosa-def a { color: var(--ink-text); text-decoration: underline; font-weight: 600; }
.glosa:hover .glosa-def, .glosa:focus .glosa-def, .glosa:focus-within .glosa-def { display: block; }

/* Precio centrado (portada #precio y /planes): título, tarjetas, nota y ventajas en el mismo eje. */
.p-grid, .p-includes { margin-left: auto; margin-right: auto; }
.p-disclaimer { max-width: 760px; text-align: center; }
.planes-head .wrap { text-align: center; }
.planes-head p { margin-left: auto; margin-right: auto; }
