/* Encuentro Mundial del Asperger — 2026 refresh */
:root {
  --navy: #020b1e;
  --navy-2: #071735;
  --card: rgba(7, 23, 53, .82);
  --card-2: rgba(4, 15, 35, .92);
  --ink: #fffaf0;
  --muted: #c7d1e4;
  --line: rgba(239, 191, 108, .22);
  --brand: #eec16d;
  --brand-2: #fff0b8;
  --accent: #f2c46d;
  --donate: #d9a84f;
  --donate-hover: #f2c46d;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Newsreader", Georgia, "Times New Roman", "Times", serif;
  --display: "Fraunces", "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

h1, h2, h3, h4, .nav__brand, .card h3, .post-card h3, .speakers__year, .article__body h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.01em;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.02rem;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(238, 193, 109, .07), transparent 60%),
    var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.section { padding: 72px 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem);
  margin: 0 0 8px;
  color: var(--brand-2);
  letter-spacing: 0;
}
.section .lead { color: var(--muted); margin: 0 0 36px; max-width: 60ch; }
.section h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
  background: rgba(2, 11, 30, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; width: min(100% - 40px, var(--wrap)); }
.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; color: var(--ink); }
.nav__brand img { width: 48px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; }
.nav__brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__links { display: flex; gap: 20px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 800; font-size: .9rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.nav__lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--ink) !important; letter-spacing: .04em; }
.nav__lang:hover { border-color: var(--brand); color: var(--brand) !important; }

/* ---------- Donate button ---------- */
.btn-donate {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--brand-2), var(--donate)); color: #1e1505; font-weight: 900;
  padding: 11px 20px; border-radius: 999px;
  border: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(217, 168, 79, .28);
  transition: transform .15s ease, filter .15s ease;
}
.btn-donate:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn-donate--lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-prepare {
  display: inline-flex; align-items: center;
  padding: 16px 28px; border-radius: 999px;
  background: rgba(238, 193, 109, .1); color: var(--brand-2); font-weight: 900;
  border: 1px solid rgba(238, 193, 109, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .24);
}
.btn-prepare:hover { text-decoration: none; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 94px;
  background:
    linear-gradient(90deg, rgba(2, 11, 30, .98) 0%, rgba(2, 11, 30, .88) 45%, rgba(2, 11, 30, .38) 100%),
    url("encuentro-mundial-del-asperger.jpg") center / cover no-repeat,
    var(--navy);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 1rem + 4.5vw, 3.6rem);
  line-height: 1.05; letter-spacing: 0; margin: 0 0 18px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.hero h1 .grad {
  background: linear-gradient(180deg, var(--brand-2), var(--brand) 55%, #b57928);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #e2e8f5; font-size: 1.12rem; margin: 0 0 28px; max-width: 52ch; text-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; font-weight: 800;
  color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
}
.btn-ghost:hover { background: rgba(238, 193, 109, .12); text-decoration: none; }
.hero__badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero__badges div { display: flex; flex-direction: column; padding-left: 16px; border-left: 1px solid var(--line); }
.hero__badges b { color: var(--brand-2); font-family: var(--display); font-size: 1.5rem; letter-spacing: 0; }
.hero__badges span { color: var(--muted); font-size: .85rem; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}
.card h3 { margin: 0 0 6px; color: var(--brand-2); font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* link cards */
a.card { color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
a.card .tag { color: var(--brand); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 0; }
.card--featured { grid-column: 1 / -1; border-color: var(--brand); background: linear-gradient(180deg, rgba(238, 193, 109, .14), var(--card-2)); }
.card--featured h3 { font-size: 1.3rem; }

/* ---------- World clocks ---------- */
.clock {
  text-align: center; padding: 18px 14px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(238, 193, 109, .11), var(--card-2));
  border: 1px solid var(--line);
}
.clock h3 { margin: 0 0 6px; font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.clock time { color: var(--brand-2); font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- Video ---------- */
.blog-banner {
  width: 100%; height: auto; max-height: 340px; object-fit: cover;
  border: 4px solid var(--brand); border-radius: var(--radius);
  margin-bottom: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--brand); background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block { margin-bottom: 40px; }
.video-block h3 { margin: 0 0 14px; font-size: 1.15rem; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- Speakers ---------- */
.speakers { columns: 2; column-gap: 24px; }
.speakers li { break-inside: avoid; margin-bottom: 10px; list-style: none; }
.speakers { padding: 0; margin: 0; }
.speakers a, .speakers strong { color: var(--ink); font-weight: 700; }
.speakers span { display: block; color: var(--muted); font-size: .88rem; font-weight: 400; }
.speakers__year { margin: 34px 0 12px; font-size: 1.15rem; }
.speakers__note { color: var(--muted); font-size: .88rem; margin: 12px 0 0; }

/* ---------- Sponsors ---------- */
.sponsors { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.sponsors img {
  height: 90px; width: auto; border-radius: 12px;
  background: #fff; padding: 8px; object-fit: contain;
}
.organiza img { height: 160px; margin: 0 auto; border-radius: 16px; background: #fff; padding: 10px; }

/* ---------- Donate band ---------- */
.donate-band {
  text-align: center; padding: 64px 0;
  background:
    radial-gradient(60% 140% at 50% 0%, rgba(238, 193, 109, .14), transparent 65%),
    var(--navy-2);
  border-block: 1px solid var(--line);
}
.donate-band h2 { color: var(--brand-2); font-family: var(--display); margin: 0 0 10px; }
.donate-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  background: rgba(2, 11, 30, .78);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .speakers { columns: 1; }
  .nav .wrap { flex-wrap: wrap; gap: 10px 14px; }
  .nav__brand { flex: 1 1 220px; }
  .nav__links {
    order: 3; flex: 1 0 100%;
    gap: 14px; overflow-x: auto; padding-bottom: 2px;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
  }
  .nav__links::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .wrap, .nav .wrap { width: min(100% - 28px, var(--wrap)); }
  .nav { padding: 10px 0; }
  .nav__brand { flex-basis: 0; }
  .nav__brand span { max-width: 190px; }
  .nav .btn-donate { padding: 9px 14px; }
  .hero { padding: 58px 0 54px; }
  .hero__cta > a { width: 100%; justify-content: center; padding-inline: 18px; text-align: center; }
  .hero__badges { gap: 16px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .clock time { font-size: 1.45rem; }
}

/* ---------- Blog ---------- */
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .post-list { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; gap: 8px; }
.post-card time { color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.post-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.post-card p { margin: 0; }
.post-card--featured { grid-column: 1 / -1; border-color: var(--brand); background: linear-gradient(180deg, rgba(238,193,109,.14), rgba(4,15,35,.5)); }
.post-card--featured h3 { font-size: 1.6rem; }
.post-card--featured time { color: var(--brand-2); }

.article { max-width: 760px; margin-inline: auto; padding: 56px 0 72px; }
.article__head h1 { color: var(--brand-2); font-family: var(--display); font-size: clamp(1.7rem, 1rem + 3vw, 2.6rem); line-height: 1.12; letter-spacing: 0; margin: 8px 0 12px; }
.article__meta { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.article__body { font-size: 1.06rem; }
.article__body h2 { color: var(--brand-2); font-family: var(--display); font-size: 1.4rem; margin: 36px 0 10px; letter-spacing: 0; }
.article__body h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.article__body p { margin: 14px 0; }
.article__body ul { margin: 14px 0; padding-left: 22px; }
.article__body li { margin: 6px 0; }
.article__body blockquote {
  margin: 22px 0; padding: 12px 20px; border-left: 3px solid var(--brand);
  background: rgba(255,255,255,.04); border-radius: 8px; color: var(--ink);
}
.answer-box {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.answer-box strong { display: block; margin-bottom: 6px; color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: 0; }
.faq { margin-top: 40px; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 10px 0;
  background: rgba(255,255,255,.03);
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 8px; }
.article__cta { margin: 40px 0 0; padding: 24px; text-align: center; background: rgba(238, 193, 109, .1); border: 1px solid rgba(238, 193, 109, .32); border-radius: 14px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-donate, .btn-ghost, .btn-prepare, a.card { transition: none; }
}
