/* Páginas de contenido (por disciplina y artículos). Misma paleta Tatami que
   index.html: papel, tinta, rojo sólo para la acción principal. Las rutas van
   desde la raíz porque estas páginas viven en carpetas (/software-academia-bjj/). */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/fonts/archivo-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;
}
:root {
  --bg: #F5F4F0; --bg2: #FFFFFF; --bg3: #ECE9E3;
  --text: #17140F; --text2: #57534C; --text3: #6B6760;
  --brand: #C41E24; --brand-dark: #9B1419;
  --accent-text: #7A5A12;
  --ink: #17140F; --on-dark: #F5F4F0; --on-dark-2: #9CA3AF;
  --border: #E2DFD8;
  --font: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
}
html { color-scheme: only light; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); }
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 16px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); font-weight: 700; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--on-dark-2); text-decoration: none; }
.nav-links a:hover { color: var(--on-dark); }
.nav-links .nav-cta { background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 640px) { .nav-links .solo-escritorio { display: none; } }

.migas { max-width: 760px; margin: 0 auto; padding: 20px 16px 0; font-size: 13px; color: var(--text3); }
.migas a { color: var(--text3); }

.contenido { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 10px;
}
.contenido h1 {
  font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 800; font-stretch: 85%;
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.bajada { font-size: 19px; color: var(--text2); margin-bottom: 24px; }
.meta { font-size: 13px; color: var(--text3); margin-bottom: 28px; }
.contenido h2 { font-size: 26px; line-height: 1.2; font-weight: 800; font-stretch: 90%; margin: 44px 0 12px; }
.contenido h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.contenido p, .contenido li { font-size: 16.5px; color: var(--text2); margin-bottom: 14px; }
.contenido strong { color: var(--text); }
.contenido ul, .contenido ol { padding-left: 22px; margin-bottom: 18px; }
.contenido li { margin-bottom: 8px; }
.contenido figure { margin: 28px 0; }
.contenido figure img { border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(23,20,15,.12); }
.contenido figcaption { font-size: 13px; color: var(--text3); margin-top: 8px; text-align: center; }

.tabla-envoltura { overflow-x: auto; margin: 18px 0 24px; }
.contenido table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg2); }
.contenido th, .contenido td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.contenido th { background: var(--bg3); color: var(--text); font-weight: 700; }
.contenido td { color: var(--text2); }

.caja {
  background: var(--bg2); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 18px 20px; margin: 24px 0;
}
.caja p:last-child { margin-bottom: 0; }

.cta {
  background: var(--ink); color: var(--on-dark); border-radius: 16px; padding: 28px 24px; margin: 44px 0 8px; text-align: center;
}
.contenido .cta h2 { color: var(--on-dark); margin: 0 0 8px; }
.contenido .cta p { color: var(--on-dark-2); margin-bottom: 18px; }
.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
  padding: 14px 22px; border-radius: 10px; min-height: 44px;
}
.btn:hover { background: var(--brand-dark); }
.cta .nota { font-size: 13px; margin: 12px 0 0; }

.relacionados { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; }
.relacionados h2 { font-size: 20px; margin-top: 0; }
.relacionados ul { list-style: none; padding: 0; }

.footer { background: var(--ink); color: var(--on-dark-2); font-size: 13px; padding: 32px 16px; }
.footer-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: var(--on-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 640px) { .footer-links a { min-height: 44px; display: inline-flex; align-items: center; } }
