/*
Theme Name: APJSD Card
Theme URI: https://apjsd.com
Author: APJSD
Description: Tarjeta de presentación para APJSD — paleta uruguaya, cuatro páginas, español oficial.
Version: 1.0.0
Requires at least: 6.0
Text Domain: apjsd-card
*/

:root {
  --paper: #f7f9fc;
  --ivory: #eef3f9;
  --ink: #0f1c2e;
  --ink-soft: #3a4b63;
  --celeste: #6aa6d8;
  --celeste-deep: #1f5f9a;
  --bandera: #0038a8;
  --oro: #c9a227;
  --oro-soft: #e6c96a;
  --white: #ffffff;
  --line: rgba(15, 28, 46, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(106, 166, 216, 0.18) 0 10px,
      rgba(255, 255, 255, 0.55) 10px 20px
    ),
    linear-gradient(90deg, var(--bandera) 0 6px, transparent 6px),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 380;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header);
  padding: 14px 7vw 14px calc(7vw + 6px);
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body.admin-bar .site-header { top: 32px; }

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.55rem;
}
.brand-dot {
  font-family: var(--sans);
  font-weight: 520;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--celeste-deep);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 520;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--oro);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100vh - var(--header));
  background: var(--white);
}
.hero-copy {
  padding: 7vh 6vw 8vh calc(7vw + 6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(106, 166, 216, 0.14), transparent 42%),
    var(--white);
}
.kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--celeste-deep);
  font-weight: 520;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  font-weight: 460;
  max-width: 11em;
}
.hero h1 span {
  display: block;
  margin-top: 10px;
  font-size: 0.42em;
  letter-spacing: 0.08em;
  color: var(--bandera);
  font-weight: 460;
}
.lede {
  max-width: 38rem;
  font-size: 1.16rem;
  color: var(--ink-soft);
  margin: 22px 0 0;
}
.tagline {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 460;
}
.hero-photo {
  position: relative;
  min-height: 420px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #f7f9fc;
  background: rgba(0, 56, 168, 0.62);
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}
.facts article {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}
.facts article:first-child { padding-left: calc(7vw + 6px); }
.facts article:last-child {
  border-right: 0;
  padding-right: 7vw;
}
.facts .num {
  font-family: var(--serif);
  color: var(--oro);
  font-size: 0.95rem;
}
.facts h2 {
  margin: 8px 0 6px;
  font-size: 1.55rem;
  font-weight: 460;
}
.facts p { margin: 0; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 80px 7vw 80px calc(7vw + 6px);
  background: var(--white);
}
.split.reverse { grid-template-columns: 0.85fr 1.15fr; }
.frame {
  background: var(--ivory);
  padding: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 28, 46, 0.08);
}
.frame img { width: 100%; height: auto; }
.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--bandera);
  font-weight: 520;
}
.split h2, .sheet h2, .band h2, .mission-copy h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 16px;
  font-weight: 460;
}
.prose p { margin: 0 0 16px; }
.prose a { color: var(--celeste-deep); }

.band {
  background:
    linear-gradient(135deg, rgba(0, 56, 168, 0.94), rgba(31, 95, 154, 0.96)),
    var(--bandera);
  color: #f4f8fc;
  padding: 72px 7vw 72px calc(7vw + 6px);
}
.band .eyebrow { color: var(--oro-soft); }
.engage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 36px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.engage li {
  padding: 12px 0;
  border-top: 1px solid rgba(244, 248, 252, 0.22);
}

.quote-block {
  padding: 72px 7vw 80px calc(7vw + 6px);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.16), transparent 30%),
    var(--ivory);
}
.quote-block blockquote {
  margin: 0;
  max-width: 18em;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 460;
  line-height: 1.25;
}
.quote-block p { margin: 22px 0 0; color: var(--ink-soft); }

.sheet {
  padding: 64px 7vw 90px calc(7vw + 6px);
  background: var(--white);
}
.sheet .split {
  padding: 48px 0 0;
  background: transparent;
}
.sheet-narrow { max-width: 760px; }
.chapter { margin: 48px 0; }
.chapter h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.story-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 20px;
}
.story-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  margin: 0;
  font-weight: 460;
}
.deck {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.35;
  margin: 12px 0 0;
  font-weight: 460;
}
.bleed {
  margin: 36px calc(7vw * -1) 36px calc((7vw + 6px) * -1);
}
.bleed img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.list {
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
}
.list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--celeste-deep);
  position: absolute;
  left: 0;
  top: 18px;
}

.uruguay-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  color: #f7f9fc;
}
.uruguay-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uruguay-hero .veil {
  position: relative;
  width: 100%;
  padding: 64px 7vw 48px calc(7vw + 6px);
  background: linear-gradient(180deg, transparent, rgba(8, 22, 48, 0.84) 70%);
}
.uruguay-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 460;
  max-width: 14em;
}
.expertise {
  counter-reset: item;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.expertise li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.expertise li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--celeste-deep);
  font-size: 1.15rem;
}

.mission-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: calc(100vh - var(--header));
  background: var(--white);
}
.mission-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}
.mission-copy { padding: 8vh 7vw 10vh 6vw; }
.mission-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin: 0 0 18px;
  font-weight: 460;
}
.closing {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.closing strong {
  display: block;
  font-family: var(--serif);
  font-weight: 460;
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.site-footer {
  background: #0b1a33;
  color: #eef3f9;
  padding: 42px 7vw 48px calc(7vw + 6px);
  display: grid;
  gap: 8px;
}
.site-footer .brand-mark { font-size: 1.8rem; }
.site-footer p { margin: 0; color: rgba(238, 243, 249, 0.78); }
.site-footer .sig {
  font-family: var(--serif);
  color: var(--oro-soft);
  font-size: 1.15rem;
  margin-top: 8px;
}

.page-prose { padding-top: 48px; }
.page-prose h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 460;
  margin-top: 0;
}

@media (max-width: 860px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    gap: 8px;
  }
  .nav { width: 100%; flex-wrap: nowrap; }
  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.86rem;
  }
  .hero, .split, .split.reverse, .story-hero, .mission-wrap, .facts {
    grid-template-columns: 1fr;
  }
  .hero-photo { min-height: 280px; }
  .hero-photo img { position: relative; height: 280px; }
  .facts article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .engage { grid-template-columns: 1fr; }
  .bleed {
    margin-left: calc((7vw + 6px) * -1);
    margin-right: calc(7vw * -1);
  }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
