/*
Theme Name: Archivo del Gol
Theme URI: https://archivodelgol.tusejemplos.com/
Author: Archivo del Gol
Description: Tema editorial ligero para una hemeroteca de goles históricos.
Version: 1.0.0
Text Domain: archivo-del-gol
*/

:root {
  --adg-ink: #0b1623;
  --adg-ink-2: #172536;
  --adg-paper: #f6f3eb;
  --adg-white: #fffdf8;
  --adg-green: #18a669;
  --adg-green-dark: #0e6f49;
  --adg-gold: #ffc64b;
  --adg-red: #f25d50;
  --adg-muted: #607080;
  --adg-line: #dce2e5;
  --adg-radius: 18px;
  --adg-shadow: 0 18px 50px rgba(11, 22, 35, .10);
  --adg-wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--adg-paper);
  color: var(--adg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: var(--adg-green-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--adg-red); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; z-index: 10000; left: 16px; top: 16px; padding: 12px 18px;
  background: var(--adg-white); color: var(--adg-ink); border-radius: 8px;
}
.adg-wrap { width: var(--adg-wrap); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 22, 35, .96); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand:hover { color: #fff; }
.brand__mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--adg-gold); color: var(--adg-ink); box-shadow: inset 0 0 0 5px rgba(11,22,35,.12);
  font-size: 21px;
}
.brand__text { font-size: 1.08rem; }
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: #e9f0f4; text-decoration: none; font-size: .92rem; font-weight: 720; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: rgba(255,255,255,.09); color: #fff; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; padding: 8px 11px; border-radius: 8px; }

/* Hero */
.adg-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 79% 16%, rgba(255,198,75,.24), transparent 24%),
    linear-gradient(128deg, var(--adg-ink) 0%, #112d2a 58%, #126748 130%);
  padding: clamp(74px, 10vw, 138px) 0 82px;
}
.adg-hero::after {
  content: ""; position: absolute; width: 440px; height: 440px; right: -130px; bottom: -250px;
  border: 2px solid rgba(255,255,255,.11); border-radius: 50%; box-shadow: 0 0 0 66px rgba(255,255,255,.025), 0 0 0 132px rgba(255,255,255,.018);
}
.adg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); gap: clamp(40px, 7vw, 100px); align-items: end; }
.eyebrow { margin: 0 0 18px; color: var(--adg-gold); text-transform: uppercase; letter-spacing: .17em; font-size: .75rem; font-weight: 900; }
.adg-hero h1 { max-width: 850px; margin: 0; font-size: clamp(3.2rem, 8.2vw, 7.2rem); line-height: .91; letter-spacing: -.075em; }
.adg-hero h1 em { color: var(--adg-gold); font-style: normal; }
.adg-hero__lead { max-width: 720px; margin: 28px 0 0; color: #ced9df; font-size: clamp(1.05rem, 2vw, 1.32rem); line-height: 1.55; }
.adg-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.adg-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 13px 19px; border-radius: 10px; background: var(--adg-gold); color: var(--adg-ink); text-decoration: none; font-weight: 850; box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.adg-button:hover { color: var(--adg-ink); transform: translateY(-1px); }
.adg-button--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: none; }
.adg-button--ghost:hover { color: #fff; background: rgba(255,255,255,.08); }
.adg-scoreboard { position: relative; z-index: 2; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--adg-radius); padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.adg-scoreboard__top { display: flex; justify-content: space-between; gap: 16px; color: #b9c8d0; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adg-scoreboard__minute { margin: 22px 0 4px; color: var(--adg-gold); font-weight: 950; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; letter-spacing: -.07em; }
.adg-scoreboard__caption { margin: 0; color: #fff; font-weight: 780; font-size: 1.05rem; }

/* General sections */
.adg-section { padding: clamp(64px, 8vw, 100px) 0; }
.adg-section--white { background: var(--adg-white); }
.adg-section--ink { background: var(--adg-ink); color: #fff; }
.adg-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.adg-heading-row h2, .adg-section h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.03; letter-spacing: -.055em; }
.adg-heading-row p { max-width: 580px; margin: 0; color: var(--adg-muted); }
.adg-section--ink .adg-heading-row p { color: #b6c3cb; }
.adg-kicker { display: block; margin-bottom: 10px; color: var(--adg-green); font-size: .76rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 900; }

.adg-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.adg-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--adg-line); border-radius: var(--adg-radius); box-shadow: 0 12px 36px rgba(11,22,35,.06); }
.adg-card__visual { position: relative; min-height: 182px; padding: 24px; display: flex; align-items: end; background: linear-gradient(142deg, #102235, #174b42); color: #fff; }
.adg-card:nth-child(2n) .adg-card__visual { background: linear-gradient(142deg, #301c21, #a33d32); }
.adg-card:nth-child(3n) .adg-card__visual { background: linear-gradient(142deg, #182437, #5e4b15); }
.adg-card__visual::after { content: ""; position: absolute; width: 130px; height: 130px; right: -34px; top: -44px; border: 22px solid rgba(255,255,255,.08); border-radius: 50%; }
.adg-card__minute { position: relative; z-index: 2; color: var(--adg-gold); font-weight: 950; font-size: 2.9rem; letter-spacing: -.05em; line-height: 1; }
.adg-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.adg-card__meta { color: var(--adg-green-dark); font-size: .75rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.adg-card h3 { margin: 10px 0; font-size: 1.42rem; line-height: 1.15; letter-spacing: -.025em; }
.adg-card h3 a { color: var(--adg-ink); text-decoration: none; }
.adg-card h3 a:hover { color: var(--adg-green-dark); }
.adg-card__excerpt { margin: 0 0 20px; color: var(--adg-muted); font-size: .95rem; }
.adg-card__link { margin-top: auto; font-size: .9rem; font-weight: 850; }

.adg-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.adg-filter { padding: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; color: #fff; text-decoration: none; background: rgba(255,255,255,.045); }
.adg-filter:hover { color: #fff; background: rgba(255,255,255,.09); }
.adg-filter strong { display: block; margin-bottom: 5px; color: var(--adg-gold); font-size: 1.1rem; }
.adg-filter span { color: #b7c5cd; font-size: .87rem; }

.adg-method { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.adg-method__steps { counter-reset: steps; display: grid; gap: 18px; }
.adg-step { position: relative; padding: 22px 22px 22px 74px; background: #fff; border-radius: 14px; border: 1px solid var(--adg-line); }
.adg-step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 22px; top: 21px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--adg-green); color: #fff; font-weight: 900; }
.adg-step strong { display: block; margin-bottom: 4px; }
.adg-step p { margin: 0; color: var(--adg-muted); font-size: .93rem; }

.adg-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: clamp(30px, 5vw, 55px); background: var(--adg-green); color: #fff; border-radius: 22px; box-shadow: var(--adg-shadow); }
.adg-cta h2 { margin: 0 0 8px; }
.adg-cta p { margin: 0; color: rgba(255,255,255,.82); }

/* Article and archives */
.adg-page-hero { padding: 72px 0 50px; background: var(--adg-ink); color: #fff; }
.adg-page-hero h1 { max-width: 920px; margin: 0; font-size: clamp(2.5rem, 6.6vw, 5.4rem); line-height: .99; letter-spacing: -.06em; }
.adg-page-hero p { max-width: 720px; color: #bdcbd3; }
.adg-breadcrumbs { margin-bottom: 18px; color: #9eb0ba; font-size: .8rem; }
.adg-breadcrumbs a { color: #dbe5e9; }
.adg-article { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 66px 0 90px; }
.adg-article > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.adg-article h2 { margin-top: 2.2em; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.04em; }
.adg-article h3 { margin-top: 1.8em; line-height: 1.22; }
.adg-article p, .adg-article li { color: #263846; }
.adg-article blockquote { margin: 34px auto; padding: 22px 26px; border-left: 5px solid var(--adg-gold); background: #fff; border-radius: 0 12px 12px 0; font-size: 1.13rem; }
.adg-article blockquote p { margin: 0; color: var(--adg-ink); }
.adg-ficha { margin: 34px auto !important; padding: 24px; background: #fff; border: 1px solid var(--adg-line); border-radius: 14px; box-shadow: 0 12px 35px rgba(11,22,35,.05); }
.adg-ficha h2 { margin: 0 0 16px; font-size: 1.4rem; }
.adg-ficha table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.adg-ficha th, .adg-ficha td { padding: 10px 8px; border-bottom: 1px solid var(--adg-line); text-align: left; vertical-align: top; }
.adg-ficha th { width: 34%; color: var(--adg-muted); }
.adg-answer { margin: 30px auto !important; padding: 25px; border-radius: 14px; color: #fff; background: var(--adg-ink-2); }
.adg-answer strong { display: block; margin-bottom: 6px; color: var(--adg-gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.adg-answer p { margin: 0; color: #eaf0f3; font-size: 1.08rem; }
.adg-sources { margin: 45px auto 0 !important; padding: 24px; background: #ece9df; border-radius: 12px; font-size: .9rem; }
.adg-sources h2 { margin-top: 0; font-size: 1.35rem; }
.adg-sources li + li { margin-top: 8px; }
.adg-post-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; color: #aec0c9; font-size: .85rem; }
.adg-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: min(820px, calc(100% - 40px)); margin: 0 auto 90px; }
.adg-post-nav a { display: block; padding: 20px; background: #fff; border: 1px solid var(--adg-line); border-radius: 12px; text-decoration: none; font-weight: 800; }
.adg-results { padding: 60px 0 90px; }
.adg-empty { padding: 45px; background: #fff; border-radius: var(--adg-radius); text-align: center; }

/* Footer */
.site-footer { padding: 58px 0 30px; background: #08111b; color: #aebcc5; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer p { max-width: 520px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #d9e4e9; }
.site-footer__bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); font-size: .82rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--adg-ink); padding: 12px 20px 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
  .adg-hero__grid, .adg-method { grid-template-columns: 1fr; }
  .adg-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adg-filters { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --adg-wrap: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .brand__text { font-size: .98rem; }
  .adg-hero { padding-top: 62px; }
  .adg-card-grid, .adg-filters, .site-footer__grid, .adg-cta, .adg-post-nav { grid-template-columns: 1fr; }
  .adg-heading-row { align-items: start; flex-direction: column; }
  .adg-article { width: min(100% - 28px, 820px); }
}

