/* GARTA — hoja de estilos del sitio público (minimalista) */
:root {
  --bg: #FFFFFF;
  --soft: #F5F4F0;
  --ink: #111111;
  --ink-2: #3D3D3A;
  --muted: #7A7872;
  --line: #E6E4DE;
  --gold: #A8834A;
  --sans: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Aviso superior */
.ribbon { background: var(--ink); color: #fff; text-align: center; font-size: 12px; padding: 7px 12px; letter-spacing: .02em; }
.ribbon a { color: #fff !important; }

/* Cabecera */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.emblem { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 17px; letter-spacing: .32em; font-weight: 600; }
.brand-sub { display: none; }
.main-nav { flex: 1; }
.main-nav #nav-links { display: flex; justify-content: center; gap: 2px; flex-wrap: nowrap; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; padding: 8px 11px; border-radius: 999px; white-space: nowrap; transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); background: var(--soft); }
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 500 12px var(--sans); letter-spacing: .06em; cursor: pointer; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px 8px; }
.menu-btn span:not(.sr-only) { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; }

/* Tipografía */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(44px, 6.2vw, 92px); letter-spacing: -.04em; font-weight: 500; }
h2 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.03em; }
h3 { font-size: 22px; letter-spacing: -.015em; }
h4 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.kicker { font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: block; }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 820px; letter-spacing: -.01em; }
.rule { width: 100%; height: 1px; background: var(--line); border: 0; margin: 36px 0; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { letter-spacing: 0; }

/* Secciones */
.section { padding: 128px 0; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--soft); }
.page-head { padding: 120px 0 72px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 14ch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 14px var(--sans); padding: 14px 24px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn::after { content: "→"; transition: transform .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:hover::after { transform: translateX(3px); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #333; }
.hero.has-image .btn { color: #fff; border-color: #fff; }
.hero.has-image .btn.solid { background: #fff; color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link:hover { color: var(--muted); border-color: var(--muted); }

/* Portada */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; min-height: calc(100vh - 72px); max-height: 900px; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { max-width: 11ch; }
.hero p { color: var(--ink-2); font-size: 19px; max-width: 520px; }
.hero-art { width: 100%; height: auto; }
.hero-art [stroke-width] { stroke-width: .7px; }
.hero.has-image { background-size: cover; background-position: center; color: #fff; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1) 100%); }
.hero.has-image .hero-inner { position: relative; grid-template-columns: 1fr; }
.hero.has-image h1, .hero.has-image p, .hero.has-image .kicker { color: #fff; }
.hero-pattern { display: none; }

/* Cuenta regresiva */
.countdown { padding: 40px 0; border-bottom: 1px solid var(--line); }
.countdown .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cd-title { font-size: 15px; font-weight: 500; }
.cd-date { color: var(--muted); font-size: 14px; }
.cd-units { display: flex; gap: 40px; }
.cd-unit { min-width: 64px; }
.cd-unit b { display: block; font-size: 44px; font-weight: 400; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: 12px; color: var(--muted); }

/* Principios */
.pillar { border-top: 1px solid var(--ink); padding-top: 24px; }
.pillar .num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pillar h3 { margin: 28px 0 4px; }
.pillar .sub { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.pillar p { color: var(--ink-2); }

/* Bloques destacados */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; border-bottom: 1px solid var(--line); }
.feature .visual { background: var(--soft); display: flex; align-items: center; justify-content: center; padding: 64px; background-size: cover; background-position: center; }
.feature .text { padding: 96px 80px; display: flex; flex-direction: column; justify-content: center; }
.feature.reverse .visual { order: 2; }
.medal { width: min(320px, 78%); height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.18)); }
.materials { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.chip { border: 1px solid var(--line); padding: 6px 14px; font-size: 13px; border-radius: 999px; background: #fff; }

/* Imagen pendiente */
.ph { position: relative; background-color: var(--soft); background-size: 80px 80px; display: flex; align-items: flex-end; overflow: hidden; }
.ph > span { display: none; }
body.demo .ph > span { display: block; }
body.demo .ph > span, .ph > span { position: relative; margin: 12px; font-size: 11px; letter-spacing: .06em; color: var(--muted); background: rgba(255,255,255,.85); padding: 3px 8px; border-radius: 999px; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* Noticias */
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.news-head h2 { margin: 0; max-width: 18ch; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; font: 500 13px var(--sans); cursor: pointer; color: var(--ink-2); }
.tab:hover { border-color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.subhead { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin: 0 0 20px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card .img { aspect-ratio: 3 / 2; margin-bottom: 20px; overflow: hidden; }
.card .img img { transition: transform .6s ease; }
.card:hover .img img { transform: scale(1.03); }
.meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.meta .cat { color: var(--ink); font-weight: 500; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card p { color: var(--ink-2); font-size: 15px; }
.headlines { border-top: 1px solid var(--ink); }
.headline { display: grid; grid-template-columns: 130px 1fr 200px; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: baseline; transition: background .15s; }
.headline:hover h4 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.headline h4 { margin: 0 0 6px; font-size: 19px; }
.headline .meta { margin-bottom: 6px; }
.headline p { margin: 0; color: var(--muted); font-size: 14px; }
.headline .src { font-size: 12.5px; color: var(--muted); text-align: right; }
.headline time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; }

/* Artículo */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(36px, 4.6vw, 64px); }
.article .img { aspect-ratio: 16 / 9; margin: 40px 0; }
.article-body p { font-size: 19px; line-height: 1.7; color: var(--ink-2); }

/* Listas */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 20px 0 20px 56px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 21px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 14px 0 14px 28px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 1px; background: var(--ink); }

/* Laureados */
.laureate { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 32px; padding: 56px 0; border-bottom: 1px solid var(--line); align-items: start; }
.laureate:first-child { padding-top: 0; }
.laureate .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.laureate .bw img { filter: grayscale(1) contrast(1.06); }
.laureate .badge { display: inline-block; font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; margin-bottom: 18px; }
.laureate .badge.mention { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.laureate h3 { font-size: 34px; letter-spacing: -.03em; margin-bottom: 8px; }
.laureate blockquote { margin: 24px 0 0; padding-left: 20px; border-left: 1px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.empty { text-align: center; padding: 96px 24px; background: var(--soft); }
.empty .medal { width: 170px; margin: 0 auto 32px; }
.jury-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.person .frame { aspect-ratio: 1; overflow: hidden; margin-bottom: 14px; }
.person .frame img { filter: grayscale(1); }
.person .ph > span { display: none; }

/* Ediciones de la beca */
.editions { display: grid; grid-template-columns: 1fr; gap: 24px; }
.edition { background: #fff; display: grid; grid-template-columns: 320px 1fr; align-items: start; border: 1px solid var(--line); }
.edition .img { aspect-ratio: 4 / 3; }
.edition .body { padding: 28px 32px; }
.edition .num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.edition h4 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 8px; }
.status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.status.open { border-color: #1E7A46; color: #1E7A46; }
.edition .fellows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin-top: 24px; }
.edition .fellows > .kicker, .edition .fellows > p { grid-column: 1 / -1; }
.fellow { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.fellow .frame { width: 48px; height: 48px; overflow: hidden; border-radius: 50%; }
.fellow .frame img { filter: grayscale(1); }
.fellow .ph > span { display: none; }

/* Eventos */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.gallery figure { margin: 0; }
.gallery .img { aspect-ratio: 3 / 2; overflow: hidden; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 14px; }
.gallery figcaption strong { color: var(--ink); font-size: 17px; font-weight: 500; display: block; margin-bottom: 2px; }

/* Contacto */
.contact-box { border-top: 1px solid var(--ink); padding: 28px 0 0; }
.contact-box a.mail { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.02em; color: var(--ink); text-decoration: none; word-break: break-all; border-bottom: 1px solid var(--ink); }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 0; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 56px; padding-bottom: 64px; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: var(--ink); margin-bottom: 14px; }
.footer-brand strong { font-size: 17px; letter-spacing: .32em; font-weight: 600; }
.footer-brand .emblem { width: 30px; height: 30px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer-nav a, .footer-contact a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.admin-link { color: var(--muted); text-decoration: none; }
.admin-link:hover { color: var(--ink); }

/* Adaptación */
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav #nav-links { flex-direction: column; padding: 8px 40px 20px; }
  .main-nav a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .main-nav a.active { background: none; font-weight: 600; }
}
@media (max-width: 1000px) {
  .grid-3, .news-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .jury-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
  .laureate { grid-template-columns: 1fr 1fr; }
  .laureate .info { grid-column: 1 / -1; }
  .edition { grid-template-columns: 1fr; }
  .edition .fellows { grid-template-columns: 1fr; }
  .headline { grid-template-columns: 110px 1fr; }
  .headline .src { grid-column: 2; text-align: left; }
}
@media (max-width: 860px) {
  .hero-inner, .grid-2, .feature { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  .feature .visual { order: 0 !important; min-height: 360px; }
  .feature .text { padding: 64px 24px; }
  .headline { grid-template-columns: 1fr; gap: 4px; }
  .headline .src { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .page-head { padding: 80px 0 48px; }
  .grid-2 { gap: 48px; }
}
@media (max-width: 560px) {
  .grid-3, .news-grid, .gallery, .jury-grid, .grid-4 { grid-template-columns: 1fr; }
  .cd-units { gap: 18px; }
  .cd-unit b { font-size: 34px; }
  .wrap { padding: 0 22px; }
  .main-nav #nav-links { padding: 8px 22px 20px; }
  .footer-bottom { padding: 20px 22px; }
}
