/* arsregia.ai · site.css
   Traducción 1:1 de diseno/sitio-arsregia.dc.html (Editorial v2).
   Breakpoints (README §7): 420 · 560 · 600 · 760 · 880 · 1100 */

/* ── Tema (README §6) ─────────────────────────────────────── */
:root,
html[data-theme="dark"] {
  --bg: #161826; --navBg: rgba(22,24,38,0.82); --surface: #1d1f2e; --surface2: #2b2d3d; --surfaceAlt: #131522;
  --text: #e9e9ed; --muted: #b2b6ca; --subtle: #9397ab; --border: #292b31; --borderStrong: #3f424d;
  --accent: #9184d9; --accentText: #b5abfc; --hover: #2b2741; --hover2: #423a6a;
  --geo: #262a40; --geo1: #343059; --geo2: #2c3150; --geo3: #383257; --geoHi: #4f4785;
  --ink: #e9e9ed; --acc: #9184d9; --guide: #3a3d5c;
}
html[data-theme="light"] {
  --bg: #f3f5fe; --navBg: rgba(243,245,254,0.85); --surface: #fbfbff; --surface2: #e4e7f5; --surfaceAlt: #eceefa;
  --text: #292b31; --muted: #595d6c; --subtle: #75798c; --border: #dde0ee; --borderStrong: #cfd3e5;
  --accent: #796cbf; --accentText: #5d5294; --hover: #e7e5fe; --hover2: #d2cefd;
  --geo: #dfe2f2; --geo1: #d9d4f4; --geo2: #d3d8ec; --geo3: #dcd6f2; --geoHi: #b9b0e8;
  --ink: #292b31; --acc: #796cbf; --guide: #c9cce6;
}

/* ── Base (helmet del fuente) ─────────────────────────────── */
html { overflow-x: hidden; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--bg); }
@supports not (overflow-x: clip) { body { overflow-x: visible; } }
* { box-sizing: border-box; }
:where(a) { color: #b5abfc; text-decoration: none; }
:where(a):hover { color: #d2cefd; }
input::placeholder, textarea::placeholder { color: #75798c; }
::selection { background: #423a6a; color: #e9e9ed; }
:focus-visible { outline: 2px solid #9184d9; outline-offset: 2px; }
[hidden] { display: none !important; }

@keyframes arNode { from { opacity: 0; transform: scale(.4) } to { opacity: 1; transform: scale(1) } }
@keyframes arLine { from { stroke-dashoffset: 12 } to { stroke-dashoffset: 0 } }
@keyframes arHalo { 0%, 100% { opacity: .0; r: 8 } 50% { opacity: .35; r: 15 } }
@keyframes arSpin { to { transform: rotate(360deg) } }
@keyframes arFade { from { opacity: 0 } to { opacity: 1 } }

.ar-root { min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.55; transition: background .3s, color .3s; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px,5vw,64px); }
.geo { position: absolute; pointer-events: none; }
.theme-light { display: none !important; }
html[data-theme="light"] .theme-dark { display: none !important; }
html[data-theme="light"] .theme-light { display: block !important; }

/* ── Cabecera ─────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--navBg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.hdr-in { height: 68px; display: flex; align-items: center; gap: 32px; }
.hdr-logo { display: flex; align-items: center; flex-shrink: 0; }
.hdr-logo img { height: 26px; width: auto; display: block; }
.hdr-mid { flex: 1; min-width: 0; }
.hdr-nav { flex: 1; display: flex; gap: 26px; font-size: 13px; white-space: nowrap; }
.hdr-nav a { color: var(--muted); padding: 6px 0; box-shadow: inset 0 -1px 0 transparent; transition: color .3s, box-shadow .3s; }
.hdr-nav a:hover { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); }
.hdr-ctrl { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-dd { position: relative; }
.lang-dd-btn { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--border); color: var(--text); font: 500 11px/1 Inter, sans-serif; letter-spacing: 0.08em; cursor: pointer; }
.lang-dd-btn span { font-size: 9px; color: var(--subtle); }
.lang-dd-menu { position: absolute; right: 0; top: calc(40px + 6px); display: flex; flex-direction: column; padding: 4px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--borderStrong), 0 12px 30px rgba(0,0,0,0.4); }
.lang-dd-menu button { height: 44px; min-width: 72px; padding: 0 14px; border: 0; border-radius: 5px; background: transparent; color: var(--subtle); font: 500 12px/1 Inter, sans-serif; letter-spacing: 0.08em; text-align: left; cursor: pointer; }
.lang-pills { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border); }
.lang-pills button { height: 28px; min-width: 32px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: var(--subtle); font: 500 11px/1 Inter, sans-serif; letter-spacing: 0.08em; cursor: pointer; }
.lang-dd-menu button[aria-current="true"], .lang-pills button[aria-current="true"] { background: var(--surface2); color: var(--text); }
.btn-theme { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--border); color: var(--text); cursor: pointer; }
.btn-acc { height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; border: 1px solid var(--accent); background: transparent; color: var(--text); font: 500 13px Inter, sans-serif; cursor: pointer; }
.btn-acc:hover { background: var(--hover); }
.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); }

/* ── Inicio ───────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--border); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--geo) 1px, transparent 1px), linear-gradient(90deg, var(--geo) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%); }
.hero-flower { left: -220px; bottom: -240px; width: 640px; height: 640px; stroke: var(--geo1); }
.hero-in { position: relative; max-width: 1320px; margin: 0 auto; padding: clamp(32px,5vw,56px) clamp(20px,5vw,64px); min-height: auto; display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; }
.hero h1 { margin: 0 0 28px; font-size: clamp(42px,5.4vw,84px); line-height: 1; letter-spacing: -0.035em; font-weight: 500; text-wrap: balance; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--muted); }
.hero-body { margin: 0; max-width: 540px; font-size: 18px; line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }
.cta1 { height: 52px; display: inline-flex; align-items: center; gap: 14px; padding: 0 24px; border-radius: 8px; border: 1px solid var(--accent); color: var(--text); font-size: 15px; font-weight: 500; }
.cta1:hover { background: var(--hover); color: var(--text); }
.cta1 span { color: var(--accentText); }
.cta2 { height: 52px; display: inline-flex; align-items: center; padding: 0 16px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--borderStrong); text-underline-offset: 6px; }
.cta2:hover { color: var(--text); }
.hero-mark { position: relative; width: 100%; max-width: min(240px, 60vw); aspect-ratio: 1/1; justify-self: start; align-self: center; order: -1; }
.hero-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.disc { position: relative; background: #262a60; color: #e9e9ed; }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); }
.disc-item { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; font-size: 14px; border-top: 2px solid transparent; margin-top: -1px; transition: border-color .4s; }
.disc-item:hover { border-top-color: #9184d9; }
.disc-item .n { font-size: 12px; color: #d2cefd; font-variant-numeric: tabular-nums; }

/* ── Secciones numeradas ──────────────────────────────────── */
.sec { position: relative; overflow: clip; }
.lbl-grid { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(16px,3vw,56px); }
.num { font-size: 12px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--accentText); }
.over { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

/* 01 */
.s01 { padding: clamp(80px,12vw,176px) 0; }
.s01-geo { right: -160px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%); stroke: var(--geo2); }
.s01 .num { padding-top: 14px; }
.s01-col { display: flex; flex-direction: column; gap: clamp(40px,5vw,72px); }
.s01-q { margin: 0; max-width: 1040px; font-size: clamp(30px,4vw,58px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 400; text-wrap: balance; }
.facts { display: grid; grid-template-columns: minmax(0,1fr); gap: 0 clamp(20px,3vw,40px); }
.fact { display: flex; gap: 12px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--border); transition: border-color .4s; }
.fact:hover { border-top-color: var(--accent); }
.fact .dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.fact .t { font-size: 15px; line-height: 1.45; font-weight: 500; }

/* 02 Facultades */
.s02 { padding: clamp(64px,9vw,128px) 0; border-top: 1px solid var(--border); }
.s02-geo { left: -260px; bottom: -200px; width: 720px; height: 720px; stroke: var(--geo3); }
.s02-in { position: relative; display: flex; flex-wrap: wrap; gap: 48px clamp(40px,6vw,112px); align-items: flex-start; }
.fac-panel { flex: 1 1 300px; position: static; top: 112px; display: flex; flex-direction: column; gap: 16px; }
.fac-panel .over { color: var(--subtle); }
.fac-panel h2 { margin: 0; font-size: clamp(34px,3.8vw,52px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; text-wrap: balance; }
.fac-active { display: none; flex-direction: column; gap: 14px; margin-top: clamp(32px,4vw,56px); padding-top: 24px; border-top: 1px solid var(--border); }
.fac-active-n { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.fac-active-n span { font-size: clamp(44px,4.6vw,64px); line-height: 1; letter-spacing: 0.02em; font-weight: 500; color: var(--accentText); }
.fac-active-t { font-size: clamp(24px,2.4vw,34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.fac-ticks { display: flex; gap: 6px; margin-top: 6px; }
.fac-ticks span { width: 22px; height: 2px; border-radius: 1px; background: var(--borderStrong); }
.fac-ticks span.on { background: var(--accent); }
.fac-list { flex: 2 1 560px; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.fac-row { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: clamp(12px,2vw,24px); padding: clamp(24px,3vw,36px) 0; border-top: 1px solid var(--border); cursor: default; }
.fac-bar { position: absolute; left: 0; top: -1px; height: 1px; width: 0%; background: var(--accent); transition: width .5s ease; }
.fac-n { font-size: clamp(18px,1.8vw,22px); line-height: 1.5; letter-spacing: 0.04em; color: var(--subtle); font-weight: 500; transition: color .3s; }
.fac-row.on .fac-bar { width: 100%; }
.fac-row.on .fac-n { color: var(--accentText); }
.fac-txt { display: flex; flex-direction: column; gap: 8px; }
.fac-t { font-size: clamp(22px,2.3vw,32px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.fac-d { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 600px; text-wrap: pretty; }

/* 03 Fundamento */
.s03 { position: relative; overflow: hidden; padding: clamp(88px,12vw,176px) 0; background: #262a60; color: #e9e9ed; }
.s03-geo { position: absolute; right: -45%; top: 50%; width: min(900px,120vw); height: min(900px,120vw); transform: translateY(-50%); }
.s03 .num { color: #d2cefd; padding-top: 18px; }
.s03-col { display: flex; flex-direction: column; gap: 40px; }
.s03 .over { color: #d2cefd; }
.s03 blockquote { position: relative; margin: 0; max-width: 980px; font-size: clamp(32px,4.2vw,60px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 400; text-wrap: balance; }
.s03 blockquote .qm { position: absolute; left: 0; top: -0.62em; color: #9184d9; }
.s03-foot { display: flex; flex-wrap: wrap; gap: 32px clamp(40px,6vw,96px); align-items: flex-start; }
.s03-cite { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #d2cefd; }
.s03-cite .rule { width: 28px; height: 1px; background: #9184d9; }
.s03-bb { flex: 1 1 380px; margin: 0; max-width: 560px; font-size: 17px; line-height: 1.7; color: #cfd3e5; text-wrap: pretty; }

/* 04 Misión */
.s04 { padding: clamp(80px,11vw,160px) 0; }
.s04-geo { right: -200px; bottom: -220px; width: 680px; height: 680px; stroke: var(--geo1); }
.s04 .num { padding-top: 10px; }
.s04-col { display: flex; flex-direction: column; gap: clamp(32px,4vw,56px); }
.s04 .over { color: var(--accentText); }
.s04 h2 { margin: 0; max-width: 1000px; font-size: clamp(34px,4.4vw,64px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.s04-pp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px), 1fr)); gap: clamp(24px,4vw,64px); padding-top: clamp(24px,3vw,40px); border-top: 1px solid var(--border); transition: border-color .5s; }
.s04-pp:hover { border-top-color: var(--accent); }
.s04-pp p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.s04-m3 { margin: 0; max-width: 760px; font-size: clamp(20px,2vw,26px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; text-wrap: balance; }

/* 05 Acceso */
.s05 { padding: clamp(64px,9vw,128px) 0; background: var(--surfaceAlt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.s05-geo { right: -240px; top: -180px; width: 700px; height: 700px; stroke: var(--geo2); }
.s05-in { position: relative; display: flex; flex-direction: column; gap: clamp(32px,4vw,56px); }
.s05-head { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(16px,3vw,56px); }
.s05 .num { padding-top: 10px; }
.s05 h2 { margin: 0; max-width: 880px; font-size: clamp(32px,3.8vw,52px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; text-wrap: balance; }
.cards { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.card-wait { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px,3vw,40px); border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .4s; }
.card-wait:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.card-wait .over { color: var(--accentText); }
.card-wait h3 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.card-wait > p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.form-wait { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.in-wait { width: 100%; min-width: 0; max-width: 100%; flex: 1 1 200px; height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--borderStrong); background: var(--surfaceAlt); color: var(--text); font: 400 16px Inter, sans-serif; outline-color: var(--accent); }
.btn-wait { height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--accent); background: transparent; color: var(--text); font: 500 14px Inter, sans-serif; cursor: pointer; }
.btn-wait:hover { background: var(--hover); }
.ok-wait { margin: auto 0 0; padding: 14px 16px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--accent); font-size: 15px; }
.card-inst { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px,3vw,40px); border-radius: 14px; background: #262a60; color: #e9e9ed; box-shadow: inset 0 0 0 1px #343a7a; }
.card-inst .over { color: #d2cefd; }
.card-inst > p.ib { margin: 0; max-width: 620px; font-size: 15px; line-height: 1.6; color: #cfd3e5; }
.form-inst { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); gap: 10px; margin-top: 10px; }
.in-inst { width: 100%; min-width: 0; max-width: 100%; height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid #4a51a0; background: #1d2150; color: #e9e9ed; font: 400 16px Inter, sans-serif; }
select.in-inst { grid-column: 1/-1; padding: 0 12px; color: #cfd3e5; }
textarea.in-inst { grid-column: 1/-1; height: auto; padding: 12px 14px; resize: vertical; }
.inst-actions { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 4px; }
.btn-inst { height: 48px; padding: 0 24px; border-radius: 8px; border: 1px solid #9184d9; background: transparent; color: #e9e9ed; font: 500 14px Inter, sans-serif; cursor: pointer; }
.btn-inst:hover { background: #343a7a; }
.inote { flex: 1 1 260px; font-size: 12px; line-height: 1.5; color: #b2b6ca; }
.ok-inst { margin: 10px 0 0; padding: 14px 16px; border-radius: 8px; box-shadow: inset 0 0 0 1px #9184d9; font-size: 15px; }
.in-wait:focus, .in-inst:focus, .in-login:focus { border-color: #9184d9; }
.form-err { flex-basis: 100%; grid-column: 1/-1; margin: 0; padding: 12px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); font-size: 14px; line-height: 1.5; }
.card-inst .form-err { box-shadow: inset 0 0 0 1px #9184d9; color: #e9e9ed; }
button[disabled] { cursor: default; opacity: .6; }

/* 06 FAQ */
.s06 { padding: clamp(64px,9vw,128px) 0; }
.s06-geo { left: -240px; top: -160px; width: 600px; height: 600px; stroke: var(--geo3); }
.s06 .num { padding-top: 12px; }
.s06-col { display: flex; flex-wrap: wrap; gap: 32px clamp(40px,6vw,96px); }
.s06 h2 { flex: 1 1 260px; margin: 0; font-size: clamp(32px,3.6vw,48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; }
.faq { flex: 2 1 520px; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.faq-item { border-top: 1px solid var(--border); transition: border-color .4s; }
.faq-item:hover { border-top-color: var(--accent); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border: 0; background: transparent; color: var(--text); font: 500 18px/1.4 Inter, sans-serif; text-align: left; cursor: pointer; }
.faq-sign { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--border); color: var(--accentText); font-size: 16px; }
.faq-item.open .faq-sign { box-shadow: inset 0 0 0 1px var(--accent); }
.faq-a { margin: 0; padding: 0 56px 26px 0; font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; animation: arFade .35s ease both; }

/* ── Pie ──────────────────────────────────────────────────── */
.ftr { position: relative; overflow: clip; padding: clamp(56px,7vw,88px) 0 36px; border-top: 1px solid var(--border); }
.ftr-geo { right: -180px; bottom: -260px; width: 640px; height: 640px; stroke: var(--geo1); }
.ftr-in { position: relative; display: flex; flex-direction: column; gap: clamp(48px,7vw,96px); }
.ftr-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.ftr-tag { flex: 1 1 300px; max-width: 420px; margin: 0; font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; color: var(--muted); text-wrap: pretty; }
.ftr-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.ftr-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ftr-col .h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.ftr-col a { color: var(--text); box-shadow: inset 0 -1px 0 transparent; transition: box-shadow .3s, color .3s; align-self: flex-start; }
.ftr-col a:hover { color: var(--accentText); box-shadow: inset 0 -1px 0 var(--accent); }
.ftr-sig { display: flex; }
.ftr-sig img { width: 100%; max-width: 980px; height: auto; }
.ftr-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--subtle); }
.ftr-legal div { display: flex; gap: 20px; }
.ftr-legal a { color: var(--subtle); }

/* ── Ventana de acceso ────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(10,11,20,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: arFade .25s ease both; }
.dlg { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(28px,5vw,44px) clamp(22px,5vw,40px) clamp(24px,4vw,32px); border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--borderStrong), 0 30px 80px rgba(0,0,0,0.55); }
.dlg-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--subtle); font-size: 18px; cursor: pointer; }
.dlg-x:hover { background: var(--hover); }
.dlg-iso { width: 48px; height: 48px; }
.dlg h2 { margin: 14px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; text-align: center; }
.dlg .ls { margin: 0 0 18px; font-size: 14px; color: var(--muted); text-align: center; }
.form-login { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.in-login { width: 100%; min-width: 0; max-width: 100%; height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--borderStrong); background: var(--bg); color: var(--text); font: 400 16px Inter, sans-serif; outline-color: var(--accent); }
.btn-login { height: 48px; margin-top: 6px; border-radius: 8px; border: 1px solid var(--accent); background: var(--hover); color: var(--text); font: 500 15px Inter, sans-serif; cursor: pointer; }
.btn-login:hover { background: var(--hover2); }
.dlg .lno { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.dlg .lno a { color: var(--accentText); text-decoration: underline; text-underline-offset: 3px; }

/* ── Tetractys (README §10) ───────────────────────────────── */
.tx-guides { transform-origin: 60px 66px; animation: arSpin 240s linear infinite; fill: none; stroke: var(--guide); stroke-width: 0.25; }
.tx-rows { fill: none; stroke: var(--guide); stroke-width: 0.2; }
.tx-line { stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 12; }
.tx-node { fill: var(--ink); }
.tx-node.m { fill: var(--acc); }
.tx-halo { fill: var(--acc); opacity: 0; animation: arHalo 4s ease-in-out 1.8s infinite; }

/* ── Breakpoints (README §7) ──────────────────────────────── */
@media (max-width: 419.98px) {
  .hdr-in { height: 60px; gap: 12px; }
  .hdr-logo img { height: 22px; }
  .hdr-ctrl { gap: 6px; }
  .btn-acc { padding: 0 12px; }
}
@media (min-width: 560px) { .facts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 600px) { .hero-mark { max-width: min(340px, 48vw); } }
@media (max-width: 759.98px) { .lang-pills { display: none; } }
@media (min-width: 760px) {
  .lang-dd { display: none; }
  .btn-theme { width: 36px; height: 36px; }
  .btn-acc { height: 36px; }
  .lbl-grid, .s05-head { grid-template-columns: minmax(0,1fr) minmax(0,5fr); }
  .fac-row { grid-template-columns: 72px minmax(0,1fr); }
  .s03-geo { right: -12%; }
  .s03 blockquote .qm { left: -0.55em; top: -0.05em; }
}
@media (min-width: 880px) {
  .hero-in { min-height: calc(100vh - 136px); min-height: calc(100svh - 136px); grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(32px,5vw,72px); }
  .hero-mark { max-width: min(560px, calc(100vh - 220px)); max-width: min(560px, calc(100svh - 220px)); justify-self: center; order: 0; }
}
@media (max-width: 1099.98px) { .hdr-nav { display: none; } }
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .fac-panel { position: sticky; }
  .fac-active { display: flex; }
}

/* ── Movimiento reducido (README §10) ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tx-guides, .tx-halo, .tx-line, .tx-node { animation: none !important; }
  .tx-halo { opacity: 0; }
  .tx-line { stroke-dashoffset: 0; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.geo .hi { stroke: var(--geoHi); }
.ar-root b { font-weight: inherit; }
