/* Ley y Código — cascarón compartido (2026-10): fuentes, colores, menú y pie.
   Lo cargan TODAS las páginas: las nuevas (con lc.css) y las editoriales heredadas (con styles.css).
   Todas las clases llevan el prefijo lcx- para no chocar con styles.css. */

@font-face { font-family: "Fraunces LC"; src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter LC"; src: url("/assets/fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Mono LC"; src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --lc-plum: #3B1E4A;
  --lc-plum-2: #4E2A62;
  --lc-night: #150920;
  --lc-night-2: #1E0F2B;
  --lc-coral: #E8735E;
  --lc-coral-2: #F2937F;
  --lc-blue: #2E5AAC;
  --lc-cyan: #7FB2FF;
  --lc-cream: #FBF8F3;
  --lc-paper: #F4EEE6;
  --lc-ink: #1F1426;
  --lc-muted: #6A5B73;
  --lc-line: rgba(59, 30, 74, .12);
  --lc-line-dark: rgba(251, 248, 243, .12);
  --lc-serif: "Fraunces LC", "Fraunces", Georgia, serif;
  --lc-sans: "Inter LC", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lc-mono: "Mono LC", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --lc-radius: 18px;
  --lc-wrap: 1180px;
}

/* ---------- Saltar al contenido ---------- */
.lcx-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--lc-coral); color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 14px var(--lc-sans); text-decoration: none; transition: top .2s; }
.lcx-skip:focus { top: 12px; }

/* ---------- Menú ---------- */
.lcx-header { position: sticky; top: 0; z-index: 100; background: rgba(21, 9, 32, .82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--lc-line-dark); font-family: var(--lc-sans); box-shadow: none; padding: 0; margin: 0; }
.lcx-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 115, 94, .7), rgba(127, 178, 255, .7), transparent); opacity: .55; pointer-events: none; }
.lcx-wrap { width: 100%; max-width: var(--lc-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.lcx-bar { display: flex; align-items: center; gap: 18px; height: 68px; }
.lcx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lc-cream); flex-shrink: 0; }
.lcx-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); }
.lcx-brand-mark img { width: 26px; height: auto; display: block; }
.lcx-wordmark { font-family: var(--lc-serif); font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1; color: var(--lc-cream); }
.lcx-wordmark i { font-style: normal; color: var(--lc-coral); }
.lcx-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.lcx-nav a { color: rgba(251, 248, 243, .78); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; white-space: nowrap; }
.lcx-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.lcx-nav a.active, .lcx-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); box-shadow: inset 0 -2px 0 var(--lc-coral); }
.lcx-nav .lcx-nav-cta-m { display: none; }
.lcx-actions { display: flex; align-items: center; gap: 8px; }
.lcx-icon-btn, .lcx-menu { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--lc-cream); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); cursor: pointer; text-decoration: none; padding: 0; }
.lcx-icon-btn:hover, .lcx-menu:hover { background: rgba(255,255,255,.1); }
.lcx-icon-btn svg, .lcx-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lcx-menu { display: none; }
.lcx-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--lc-coral); color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; box-shadow: 0 6px 20px -6px rgba(232, 115, 94, .7), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.lcx-cta:hover { background: #EF7F6A; transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(232, 115, 94, .85); }
.lcx-header a:focus-visible, .lcx-header button:focus-visible, .lcx-footer a:focus-visible { outline: 2px solid var(--lc-cyan); outline-offset: 2px; }

@media (max-width: 1060px) {
  .lcx-nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 960px) {
  .lcx-menu { display: grid; }
  .lcx-cta { display: none; }
  .lcx-nav { position: fixed; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 16px 20px 24px; background: #150920; height: calc(100vh - 68px); height: calc(100dvh - 68px); border-bottom: 1px solid var(--lc-line-dark); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100vh - 68px); overflow-y: auto; }
  .lcx-nav.open { transform: none; opacity: 1; visibility: visible; }
  .lcx-nav a { font-size: 17px; padding: 14px 12px; }
  .lcx-nav .lcx-nav-cta-m { display: block; margin-top: 8px; text-align: center; background: var(--lc-coral); color: #fff; font-weight: 600; }
  .lcx-actions { margin-left: auto; }
}
@media (max-width: 380px) {
  .lcx-wordmark { font-size: 18px; }
  .lcx-bar { gap: 10px; }
}

/* ---------- Pie ---------- */
.lcx-footer { position: relative; background: var(--lc-night); color: rgba(251, 248, 243, .74); font-family: var(--lc-sans); font-size: 14.5px; line-height: 1.6; padding: 64px 0 28px; margin: 0; overflow: hidden; border-top: 1px solid var(--lc-line-dark); }
.lcx-footer::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, #000, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); pointer-events: none; }
.lcx-footer .lcx-wrap { position: relative; }
.lcx-foot-top { display: grid; grid-template-columns: 1.3fr 2.7fr; gap: 48px; }
.lcx-foot-brand p { margin: 14px 0 18px; max-width: 34ch; }
.lcx-foot-lexy { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--lc-line-dark); max-width: 320px; }
.lcx-foot-lexy img { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.06); }
.lcx-foot-lexy span { font-size: 13.5px; }
.lcx-foot-lexy b { color: var(--lc-cream); }
.lcx-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lcx-foot-cols b { display: block; color: var(--lc-cream); font-family: var(--lc-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.lcx-foot-cols a { display: block; color: rgba(251, 248, 243, .7); text-decoration: none; padding: 4px 0; }
.lcx-foot-cols a:hover { color: var(--lc-coral-2); }
.lcx-social { display: flex; gap: 8px; margin-top: 4px; }
.lcx-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--lc-line-dark); color: var(--lc-cream); background: rgba(255,255,255,.03); }
.lcx-social a:hover { border-color: var(--lc-coral); color: var(--lc-coral-2); }
.lcx-social svg { width: 17px; height: 17px; fill: currentColor; }
.lcx-foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--lc-line-dark); display: grid; gap: 14px; }
.lcx-foot-legal p { margin: 0; font-size: 13px; color: rgba(251, 248, 243, .58); max-width: 110ch; }
.lcx-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--lc-mono); font-size: 12px; color: rgba(251, 248, 243, .5); }
.lcx-foot-bottom a { color: rgba(251, 248, 243, .7); }
@media (max-width: 900px) {
  .lcx-foot-top { grid-template-columns: 1fr; gap: 36px; }
  .lcx-foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .lcx-foot-cols { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lcx-header *, .lcx-footer * { transition: none !important; }
}

/* Ícono del menú: se convierte en X al abrir */
.lcx-menu path { transition: transform .2s, opacity .2s; transform-origin: 12px 12px; }
.lcx-menu-abierto .lcx-m1 { transform: translateY(5px) rotate(45deg); }
.lcx-menu-abierto .lcx-m2 { opacity: 0; }
.lcx-menu-abierto .lcx-m3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 960px) { .lcx-menu-abierto body { overflow: hidden; } }

/* Las páginas editoriales piden "Fraunces" e "Inter" a Google Fonts; estas copias locales sirven de respaldo. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
