:root {
  color-scheme: light;
  --navy: #0c0c0e;
  --navy-2: #2a2a30;
  --amber: #f77f00;
  --amber-dark: #d96a00;
  --bg: #f6f5f3;
  --card: #ffffff;
  --text: #17202e;
  --muted: #6b665e;
  --line: #e4e0d9;
  --ok: #17803d;
  --err: #b42318;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--navy-2); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.25rem; margin: 24px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

.top { background: var(--navy); color: #fff; }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top nav a, .top nav button.link { color: #e9e5dd; text-decoration: none; font-size: .95rem; }
.top nav a:hover, .top nav button.link:hover { color: #fff; }
.foot { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .9rem; }

.flashes { padding-top: 16px; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; border: 1px solid; word-break: break-word; }
.flash.ok { background: #e8f6ed; border-color: #b6e0c3; color: #0e5a29; }
.flash.error { background: #fdecea; border-color: #f4b8b2; color: #8a1c13; }
.flash.info { background: #f1efec; border-color: #d9d4ca; color: #3b3830; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; box-shadow: 0 1px 2px rgba(11, 31, 58, .04); }
.card.narrow, .narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
a.card.topic { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
a.card.topic:hover { border-color: var(--amber); }
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 28px 22px; margin-bottom: 8px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #ffb15c; margin: 0 0 8px; }
.hero p { margin: 6px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.stats .big { font-size: 1.7rem; font-weight: 800; }
.price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 4px 0; }

.btn { display: inline-block; background: var(--amber); color: #20180a; font-weight: 700; padding: 11px 20px; border-radius: 10px; border: 2px solid var(--amber); text-decoration: none; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn.ghost { background: transparent; color: var(--navy-2); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy-2); background: #fff; }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.danger, .link.danger { color: var(--err); }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--navy-2); text-decoration: underline; }
form.inline { display: inline; }
.top .btn.small { color: #20180a; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { align-items: flex-end; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 200px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
label.check, label.radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
label.radio { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
label.radio.disabled { opacity: .5; }
input, select, textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfc9bd; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input[type=radio], input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 3px solid #ffd2a1; border-color: var(--amber); }
.narrow-in { max-width: 90px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.chip { background: #fff; color: var(--text); border: 2px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; font: inherit; text-align: center; }
.chip:hover, .chip.on { border-color: var(--amber); background: #fff3e6; }

.paybox .bar-outer { height: 12px; background: #ebe7e0; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.paybox .bar-inner { height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), #ffb15c); transition: width .5s; }

details.module { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 0 16px; }
details.module summary { cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 700; }
details.module.locked { background: #faf9f7; }
ul.lessons { list-style: none; margin: 0 0 12px; padding: 0; }
ul.lessons li { padding: 7px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #eceae6; color: var(--navy-2); }
.badge.ok, .badge.st-approved { background: #e1f4e8; color: var(--ok); }
.badge.lock, .badge.st-pending { background: #fff2d6; color: #8a5a00; }
.badge.st-rejected, .badge.st-refunded { background: #fdecea; color: var(--err); }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 12px 0; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watermark { position: absolute; left: 6%; top: 8%; color: rgba(255, 255, 255, .45); font-size: .85rem; font-weight: 700; pointer-events: none; user-select: none; text-shadow: 0 0 4px rgba(0, 0, 0, .8); transition: left 2s ease, top 2s ease; z-index: 3; }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3f1ed; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
td.break input { font-size: .8rem; }
.admin-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.post-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.post .actions { display: flex; gap: 12px; }
details.lesson-edit { border-top: 1px solid var(--line); padding: 8px 0; }
details.lesson-edit summary { cursor: pointer; font-weight: 600; }
pre.bank, .bank { background: #f3f1ed; padding: 12px; border-radius: 8px; }

.stack > .btn, .stack > button.btn { align-self: flex-start; }
.radio-text { display: block; }

.cert { max-width: 760px; margin: 20px auto; padding: 48px 28px; text-align: center; background: var(--card); border: 6px double var(--amber); border-radius: 8px; }
.cert .who { font-size: 2rem; font-weight: 800; margin: 6px 0; }
.cert .what { font-size: 1.3rem; font-weight: 700; color: var(--navy-2); }
@media print { .top, .foot, .flashes, .center.muted { display: none !important; } body { background: #fff; } }

.card.warn { border-color: #e0a100; background: #fff8e1; }

/* Productos */
.products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.product img, .product .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #efece7; }
.product .noimg { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.product h2 { margin: 6px 0 0; font-size: 1.05rem; }
.product p { margin: 0; }
.product .btn { margin-top: auto; text-align: center; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.btn.wa:hover { background: #178a45; border-color: #178a45; }
.product .price { font-size: 1.3rem; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .01em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand img.mark { object-fit: contain; border-radius: 6px; }
.brand b { color: var(--amber); font-weight: 800; }

/* ---------------------------------------------------------------- Tipografía y marca (taller) */
@font-face { font-family: "Anton"; src: url("fonts/anton.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-700.woff") format("woff"); font-weight: 700; font-display: swap; }
:root { --steel: #e9ebed; --steel-2: #c9cdd2; --steel-3: #8d949b; --display: "Anton", "Arial Narrow", Impact, sans-serif; }
body { font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.brand img.mark { width: auto; height: 38px; border-radius: 0; }
.brand { font-size: 1.1rem; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 16px 12px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.wa-float:hover { background: #178a45; }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }
@media print { .wa-float { display: none !important; } }

/* ---------------------------------------------------------------- Página de inicio */
.btn.big { padding: 14px 24px; font-size: 1.05rem; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: #26262b; border-color: #26262b; }
.btn.line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn.line:hover { background: rgba(12, 12, 14, .08); }
.btn.wa.big { font-size: 1.1rem; }

.landing { background: var(--steel); }
.landing h1, .landing .l-h2, .landing .l-amount, .landing .l-steps .n, .landing .l-phone { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.landing .l-h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.08; margin: 0 0 10px; text-transform: uppercase; }
.landing .l-sub { margin: 0 0 22px; max-width: 60ch; color: var(--muted); font-size: 1.05rem; }

.landing .l-hero { position: relative; background: radial-gradient(60% 90% at 78% 40%, #ff9a2e 0%, var(--amber) 62%); color: var(--navy); padding: 44px 0 78px; }
.landing .l-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='36' viewBox='0 0 240 36'%3E%3Cpath fill='%23e9ebed' d='M0 36V24h10l8-14h30l8 12h30l8-18h26l8 12h22l8 14h32l8-18h30l8 12h4v12z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 36px; }
.l-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.landing h1 { font-size: clamp(2.5rem, 6.6vw, 4.6rem); line-height: 1.02; text-transform: uppercase; margin: 0 0 16px; }
.l-lead { font-size: 1.2rem; max-width: 34ch; margin: 0 0 22px; font-weight: 500; }
.l-note { margin: 14px 0 0; font-weight: 600; }
.l-hero-logo { width: min(100%, 400px); height: auto; justify-self: center; filter: drop-shadow(0 18px 24px rgba(60, 25, 0, .35)); }
@media (max-width: 760px) {
  .l-hero-in { grid-template-columns: 1fr; }
  .l-hero-logo { order: -1; width: 200px; }
  .landing .l-hero { padding-top: 28px; }
}

.l-trust ul { list-style: none; margin: 0 auto; padding: 22px 16px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.l-trust li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 18px; border-left: 2px solid var(--steel-2); }
.l-trust li:first-child { border-left: 0; padding-left: 0; }
.l-trust svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.l-trust b { display: block; font-size: 1.02rem; }
.l-trust span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
@media (max-width: 900px) { .l-trust ul { grid-template-columns: 1fr 1fr; gap: 16px 0; } .l-trust li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .l-trust ul { grid-template-columns: 1fr; } .l-trust li { border-left: 0; padding-left: 0; } }

.landing .l-sec { padding: 52px 0; }
.landing .l-dark { background: var(--navy); color: #fff; }
.landing .l-dark .l-h2 { color: #fff; }
.l-syllabus { list-style: decimal; margin: 0; padding: 0 0 0 1.6em; columns: 2; column-gap: 40px; }
.l-syllabus li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--steel-2); }
.l-syllabus li::marker { font-family: var(--display); color: var(--amber-dark); }
.l-mod-title { display: block; font-weight: 600; }
.l-mod-meta { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.l-mod-meta .free { color: #0e5a29; background: #d9f1e2; border-radius: 99px; padding: 1px 9px; margin-right: 8px; }
@media (max-width: 760px) { .l-syllabus { columns: 1; } }

.l-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.l-steps li { border-top: 3px solid var(--amber); padding-top: 12px; }
.l-steps .n { display: block; font-size: 3rem; line-height: 1; color: var(--amber); }
.l-steps h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.l-steps p { margin: 0; color: #cfd2d6; font-size: .95rem; }
@media (max-width: 900px) { .l-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .l-steps { grid-template-columns: 1fr; } }

.l-price { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.l-price-box { background: #fff; border: 1px solid var(--steel-2); border-left: 6px solid var(--amber); border-radius: 10px; padding: 24px; }
.l-amount { font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; }
.l-price-box p { margin: 6px 0 16px; }
@media (max-width: 760px) { .l-price { grid-template-columns: 1fr; } }

.l-faq details { background: #fff; border: 1px solid var(--steel-2); border-radius: 10px; margin: 8px 0; padding: 0 16px; max-width: 760px; }
.l-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.l-faq details p { margin: 0 0 14px; color: var(--muted); }

.l-contact { background: var(--navy); color: #fff; padding: 52px 0 64px; border-top: 6px solid var(--amber); }
.l-contact .l-h2 { color: #fff; }
.l-contact .l-sub { color: #cfd2d6; }
.l-contact .l-sub a { color: #ffb15c; }
.l-contact-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.l-contact-box { text-align: left; }
.l-phone { font-size: 2rem; margin: 10px 0 12px; color: #fff; }
@media (max-width: 760px) { .l-contact-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- Embudo (visitantes) */
.landing .l-login { margin: 8px 0 0; font-size: .95rem; }
.landing .l-login a { color: var(--navy); font-weight: 700; }
.landing .l-tight { padding-top: 24px; }
.landing .l-cta { margin: 26px 0 0; }
.l-for-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.l-for-list li { border-left: 4px solid var(--amber); padding: 2px 0 2px 14px; color: var(--muted); }
.l-for-list b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 2px; }
@media (max-width: 760px) { .l-for-list { grid-template-columns: 1fr; gap: 16px; } }
.l-free { background: var(--navy); color: #fff; border-radius: 10px; padding: 26px; border-bottom: 6px solid var(--amber); }
.l-free .l-h2 { color: #fff; }
.l-free .l-sub { color: #cfd2d6; margin-bottom: 10px; }
.l-free ul { margin: 0 0 12px; padding-left: 1.2em; }
.l-free li { padding: 3px 0; }
.l-free .muted { color: #aeb3b9; margin: 0; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 19; background: var(--navy); color: #fff; border-top: 3px solid var(--amber); padding: 10px 0; }
.sticky-cta[hidden] { display: none; }
.sticky-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 84px; }
.sticky-cta span { font-weight: 600; }
body.sticky-on .wa-float { bottom: 70px; }
@media (max-width: 520px) { .sticky-cta .wrap { padding-right: 16px; } .sticky-cta span { font-size: .9rem; } body.sticky-on .wa-float { bottom: 76px; } }
ul.ticks { list-style: none; margin: 0 0 14px; padding: 0; }
ul.ticks li { padding: 3px 0 3px 26px; position: relative; color: var(--muted); }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 11px; height: 6px; border-left: 3px solid var(--amber-dark); border-bottom: 3px solid var(--amber-dark); transform: rotate(-45deg); }

/* ---------------------------------------------------------------- Inicio del alumno */
.sh-hello { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 14px; }
.sh-resume { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: var(--radius); border-left: 8px solid var(--amber); padding: 24px; }
.sh-resume h2 { margin: 0 0 4px; font-size: 1.4rem; color: #fff; }
.sh-resume .muted { color: #b9bdc2; margin: 0; }
.sh-kicker { margin: 0 0 4px; color: #ffb15c; font-weight: 600; }
.sh-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.sh-progress > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sh-progress .bar-outer { height: 12px; background: #ebe7e0; border-radius: 99px; overflow: hidden; width: 100%; }
.sh-progress .bar-inner { height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), #ffb15c); transition: width .5s; }
.sh-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.sh-links a { display: flex; flex-direction: column; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sh-links a:hover { background: #fff; }
.sh-links a b { font-size: 1.02rem; }
.sh-links a span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .sh-progress { grid-template-columns: 1fr; } .sh-resume .btn { width: 100%; text-align: center; } }

ol.how { padding-left: 1.2em; }
ol.how li { margin: 0 0 14px; }
ol.how li p { margin: 8px 0 0; }

/* ---------------------------------------------------------------- Me gustaría que… */
.ideas h2 { margin: 26px 0 10px; }
.ideas-form textarea { width: 100%; }
.idea { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 10px; }
.idea.done { opacity: .72; }
.idea-vote { margin: 0; }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 8px 6px; background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font: inherit; color: var(--text); }
.vote:hover { border-color: var(--amber); }
.vote.on { background: var(--amber); border-color: var(--amber); color: #fff; }
.idea-main { flex: 1; min-width: 0; }
.idea-text { margin: 0 0 4px; font-size: 1.05rem; overflow-wrap: anywhere; }
.idea-admin { display: flex; gap: 14px; margin-top: 4px; }
.ok-tag { color: #2e7d32; }

/* ---------------------------------------------------------------- Onix Cerrajero (chat) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; max-height: 58vh; overflow-y: auto; padding: 4px; }
.msg { max-width: min(88%, 640px); padding: 10px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.msg p { margin: 0; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-size: .8rem; color: var(--amber-dark); margin-bottom: 2px; }
.onix-form { display: flex; flex-direction: column; gap: 10px; }
.onix-form textarea { width: 100%; }
.onix-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.onix-actions .btn[type=submit] { margin-left: auto; }
.photo-pick { display: flex; flex-direction: column; gap: 4px; font-weight: 600; min-width: 0; flex: 1 1 220px; }
.photo-pick input { padding: 6px; font-weight: 400; }
.onix-form .btn[disabled] { opacity: .6; }
@media (max-width: 520px) { .onix-actions .btn { flex: 1 1 100%; text-align: center; } }

/* ---------------------------------------------------------------- Páginas legales */
.legal { max-width: 760px; margin: 0 auto; padding: 8px 0 30px; }
.legal h2 { margin: 26px 0 8px; font-size: 1.25rem; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal p, .legal li { line-height: 1.6; }
