/* deporte.com — starter stylesheet. No frameworks, no external requests. */

:root {
  --ink: #1b1a17;
  --muted: #6a645b;
  --line: #e5e0d7;
  --bg: #fbfaf7;
  --card: #ffffff;
  --accent: #1f5f4a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: 700px; margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0 .9rem;
  margin-bottom: 2.25rem;
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; }

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}

nav.sections { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
nav.sections a { font-size: .87rem; color: var(--muted); text-decoration: none; }
nav.sections a:hover, nav.sections a.on { color: var(--accent); }
nav.sections a.on { font-weight: 600; }

main { padding-bottom: 3rem; }

h1 { font-size: clamp(1.85rem, 5.5vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .4rem; }
h2 { font-size: 1.1rem; letter-spacing: -.01em; margin: 2rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1.6rem 0 .4rem; }

.tag, .meta { color: var(--muted); }
.tag { font-size: .95rem; margin: 0 0 1.5rem; }
.meta { font-size: .82rem; margin: 0 0 1.75rem; }

.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); }

ul.index { list-style: none; padding: 0; margin: 0; }
ul.index li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
ul.index li:last-child { border-bottom: 0; }
.hint { color: var(--muted); font-size: .8rem; }

article p { margin: 0 0 1rem; }
article ul, article ol { margin: 0 0 1rem; padding-left: 1.4rem; }
article li { margin: .3rem 0; }
article strong { font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 1.75rem 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }

code { font-size: .9em; background: #f0ece4; padding: .1em .3em; border-radius: 4px; }
pre { overflow-x: auto; padding: 1rem; background: #f0ece4; border-radius: 8px; }
pre code { background: none; padding: 0; }

footer.site { border-top: 1px solid var(--line); padding: 1.25rem 0 2.5rem; color: var(--muted); font-size: .85rem; }
footer.site p { margin: 0; }

@media (prefers-color-scheme: dark) {
  :root { --ink: #ece7df; --muted: #a79e92; --line: #322e28; --bg: #15140f; --card: #1c1a15; --accent: #7fc3a5; }
  code, pre { background: #232018; }
}

table.ficha { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
table.ficha th, table.ficha td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ficha th { font-weight: 650; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
table.ficha td:first-child { white-space: nowrap; color: var(--muted); }

figure.foto { margin: 0 0 1.75rem; }
figure.foto { text-align: center; }
figure.foto img { max-width: 100%; width: auto; height: auto; display: block; margin: 0 auto; border-radius: 8px; }
figure.foto figcaption { font-size: .8rem; color: var(--muted); margin-top: .55rem; line-height: 1.45; }

figure.video { margin: 0 0 1.75rem; text-align: center; }
figure.video video { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto;
                     border-radius: 10px; background: #000; }
figure.video figcaption { font-size: .8rem; color: var(--muted); margin-top: .55rem; }
footer.site .legal { margin-top: .5rem; font-size: .8rem; }
footer.site .legal a { color: var(--muted); }

/* Relacionados: cierre de la ficha con lecturas del mismo tema. */
nav.relacionados { margin: 2.5rem 0 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
nav.relacionados h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
nav.relacionados ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
nav.relacionados li { margin: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
nav.relacionados a { font-weight: 650; text-decoration: none; }
nav.relacionados a:hover { text-decoration: underline; }
nav.relacionados .relsec { color: var(--muted); font-size: .78rem; margin-left: .35rem; }

/* Índice de sección con columnas (fútbol): guías arriba, clubes en dos columnas. */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2.5rem; margin: 2rem 0 1rem; }
.cols .col h2 { font-size: 1.05rem; margin: 0 0 .25rem; }
.cols .coldesc { color: var(--muted); font-size: .85rem; margin: 0 0 .9rem; }
ul.clubs { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
ul.clubs li { margin: 0; }
ul.clubs a { text-decoration: none; font-weight: 600; }
ul.clubs a:hover { text-decoration: underline; }
ul.clubs .st { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-left: .35rem; }
.cols section.guias { grid-column: 1 / -1; }
.cols section.guias h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
