/* javiermarcilla.com: legales y 404 en el sistema de la portada nueva. CSS propio. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/alegreya-italic-400.woff2') format('woff2'); }

:root { color-scheme: light;
  --hero: #FFFFFF; --sobre: #F3F1EC; --pie: #1A1A18; --pie-ink: #F3F1EC; --pie-muted: #BDB8AE;
  --ink: #1A1A18; --muted: #4F4C46; --line: #C9C5BD; --soft: rgba(26,26,24,.07); --acc: #C8472B; }
html[data-theme="dark"] { color-scheme: dark;
  --hero: #34312C; --sobre: #1A1917; --pie: #121110; --pie-ink: #EDEAE4; --pie-muted: #B1ACA2;
  --ink: #EDEAE4; --muted: #B1ACA2; --line: #4A463F; --soft: rgba(237,234,228,.1); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { -webkit-font-smoothing: antialiased; background: var(--sobre); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; transition: background .3s, color .3s; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, p, ul { margin: 0; } ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #121110 !important; outline-offset: 3px; box-shadow: 0 0 0 3px #F3F1EC !important; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: #F3F1EC; color: #121110; padding: 12px 18px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Cabecera */
.lg-band { background: var(--hero); transition: background .3s; }
.lg-top { max-width: 1440px; margin: 0 auto; padding: 20px clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lg-top .left { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.lg-top .left a { min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 16px; letter-spacing: -.01em; text-decoration: none; }
.lg-top .lg-crumb { font-size: 14px; color: var(--muted); }
.theme-btn { flex: none; min-height: 44px; min-width: 96px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; white-space: nowrap; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s; }
.theme-btn:hover { background: var(--ink); color: var(--hero); }
.lg-title { max-width: 1440px; margin: 0 auto; padding: clamp(24px, 5vw, 72px) clamp(20px, 4vw, 64px) clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: 18px; }
.lg-kick { font-size: 15px; font-weight: 600; color: var(--muted); }
.lg-title h1 { font-size: clamp(48px, 7.4vw, 112px); line-height: .92; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
.lg-title h1 span { font-family: 'Alegreya', serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* Hoja con el texto */
main { flex: 1 0 auto; }
.lg-sheet { position: relative; background: var(--sobre); transition: background .3s; }
.lg-sheet .curve { position: absolute; left: 0; right: 0; top: -48px; height: 49px; background: var(--sobre); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transition: background .3s; }
.l-wrap { max-width: 1440px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 64px) clamp(72px, 9vw, 130px); }
.l-article { max-width: 760px; margin-left: clamp(0px, 8vw, 140px); display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.l-block { display: flex; flex-direction: column; gap: 14px; }
.l-h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; padding-bottom: 6px; }
.l-p { font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.l-p strong, .l-list strong { font-weight: 700; }
.l-list { display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.6; }
.l-list li { position: relative; padding-left: 22px; }
.l-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
code { font-family: inherit; font-weight: 600; font-size: .94em; background: var(--soft); padding: 2px 7px; border-radius: 4px; }
.l-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
@media (max-width: 720px) { .l-table { display: block; overflow-x: auto; } }
.l-table th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 18px 10px 0; white-space: nowrap; }
.l-table td { padding: 14px 18px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.l-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.l-table td.l-td-label { font-weight: 700; color: var(--muted); width: 32%; min-width: 130px; }
.l-table td.l-td-val { font-weight: 600; }
.browser-links { display: flex; flex-wrap: wrap; gap: 10px; }
.browser-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 600; text-decoration: none; transition: background .3s, color .3s; }
.browser-link:hover { background: var(--ink); color: var(--sobre); }

/* Pie oscuro */
.pie { background: var(--pie); }
.pie-in { max-width: 1440px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; font-size: 14px; color: var(--pie-muted); }
.pie-in .c { min-height: 44px; display: flex; align-items: center; }
.pie-in a { min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; color: var(--pie-ink); }
.pie-in nav { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* 404 */
.nf { flex: 1 0 auto; background: var(--hero); transition: background .3s; }
.nf-in { max-width: 1440px; margin: 0 auto; padding: clamp(24px, 5vw, 72px) clamp(20px, 4vw, 64px) clamp(72px, 9vw, 130px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(36px, 5vw, 88px); align-items: center; }
.nf-copy { display: flex; flex-direction: column; gap: 22px; }
.nf-num { font-weight: 800; font-size: clamp(120px, 22vw, 340px); line-height: .78; letter-spacing: -.07em; margin-left: -.02em; }
.nf-sub { font-family: 'Alegreya', serif; font-style: italic; font-weight: 400; font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: -.01em; padding-left: clamp(0px, 5vw, 80px); }
.nf-hdr { font-size: 14px; font-weight: 600; line-height: 1.7; color: var(--muted); white-space: pre-line; border-left: 3px solid var(--acc); padding-left: 16px; }
.nf-lead { font-size: 18px; line-height: 1.6; max-width: 520px; text-wrap: pretty; }
.nf-lead a { font-weight: 700; }
.nf-chat { display: flex; flex-direction: column; gap: 16px; max-width: 480px; justify-self: end; width: 100%; }
.wa { background: var(--sobre); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: background .3s; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--hero); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.wa-head b { display: block; font-size: 16px; }
.wa-head span { font-size: 13px; color: var(--muted); }
.wa-body { padding: 22px 18px 26px; }
.wa-bubble { background: var(--hero); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 14px 16px 10px; max-width: 92%; font-size: 17px; line-height: 1.5; }
.wa-time { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: right; }
.nf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.nf-back { min-height: 52px; display: inline-flex; align-items: center; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 600; text-decoration: none; transition: background .3s, color .3s; }
.nf-back:hover { background: var(--ink); color: var(--hero); }
.nf-foot { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media print { .theme-btn, .skip { display: none !important; } body { background: #fff; color: #000; } }
