:root {
  --navy: #0b2140;
  --navy2: #12335e;
  --ink: #102238;
  --gold: #d7aa4f;
  --gold2: #efd599;
  --ivory: #f7f1e6;
  --cream: #fcfaf6;
  --muted: #647185;
  --line: #dfe3e7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cabecera */

header {
  height: 88px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(252, 250, 246, 0.96);
  border-bottom: 1px solid rgba(11, 33, 64, 0.1);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold2);
  font: 700 15px Georgia, serif;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 0 0 2px var(--navy),
    inset 0 0 0 3px rgba(239, 213, 153, 0.7);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font: 700 18px Georgia, serif;
  color: var(--navy);
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

nav {
  display: flex;
  gap: clamp(20px, 2.5vw, 42px);
  font-size: 13px;
  font-weight: 700;
  color: #3c4a5e;
}

nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--gold);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.header-cta {
  min-height: 44px;
  padding: 0 20px;
  background: var(--navy);
  color: white;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11, 33, 64, 0.16);
}

/* Portada */

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  background: var(--ivory);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(72px, 9vw, 130px) clamp(36px, 7vw, 110px);
  padding-right: clamp(38px, 5vw, 78px);
}

.eyebrow,
.kicker {
  margin-bottom: 25px;
  color: #8d691e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1 {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--navy);
  font-size: clamp(50px, 5.2vw, 80px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  font-weight: 500;
}

h1 em {
  color: #a77923;
  font-weight: 500;
}

.lead {
  max-width: 570px;
  margin-bottom: 36px;
  color: #4e5c6b;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.button {
  min-height: 54px;
  padding: 0 25px;
  background: var(--gold);
  color: #17263a;
}

.underlink {
  padding: 12px 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid rgba(11, 33, 64, 0.28);
}

.principles {
  margin-top: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  color: #667184;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.principles i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-photo {
  min-height: 650px;
  position: relative;
  background:
    linear-gradient(0deg, rgba(11, 33, 64, 0.35), transparent 50%),
    url("assets/somospai-hero.png") 61% center / cover no-repeat;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 36px 0 36px auto;
  width: 22px;
  border: 1px solid rgba(239, 213, 153, 0.78);
  border-right: 0;
}

.quote {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 54px;
  width: min(380px, 88%);
  padding: 25px 28px;
  display: flex;
  gap: 15px;
  background: rgba(9, 31, 59, 0.93);
  color: white;
  border-left: 3px solid var(--gold);
}

.quote b {
  color: var(--gold);
  font: 42px/1 Georgia, serif;
}

.quote p {
  margin: 3px 0 0;
  font: 19px/1.45 Georgia, serif;
}

/* Secciones generales */

.section {
  padding: clamp(80px, 9vw, 135px) clamp(24px, 7vw, 108px);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(50px, 9vw, 150px);
}

.intro h2,
.section-heading h2,
.events h2,
.collaborate h2,
.transparency h2,
.contact h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(39px, 4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.intro-copy {
  padding-top: 40px;
  border-top: 1px solid #c8b783;
}

.intro-copy p {
  color: #586575;
  font-size: 16px;
  line-height: 1.8;
}

.intro-copy p:first-child {
  color: var(--ink);
  font-size: 19px;
}

/* Acciones */

.actions {
  color: white;
  background: var(--navy);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 62px;
}

.light {
  color: var(--gold2);
}

.section-heading h2,
.transparency h2 {
  color: white;
  max-width: 720px;
}

.section-heading > p {
  max-width: 330px;
  margin-bottom: 8px;
  color: #b7c1ce;
  line-height: 1.7;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.action-grid article {
  min-height: 330px;
  padding: 35px 38px 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.action-grid article:last-child {
  border: 0;
}

.action-grid article > span {
  position: absolute;
  right: 24px;
  top: 27px;
  color: rgba(255, 255, 255, 0.34);
  font: 13px Georgia, serif;
}

.action-grid svg {
  width: 36px;
  height: 36px;
  margin: 20px 0 70px;
  color: var(--gold2);
  stroke-width: 1.3;
}

.action-grid h3 {
  margin-bottom: 15px;
  color: white;
  font: 25px/1.2 Georgia, serif;
}

.action-grid p {
  margin: 0;
  color: #b7c1ce;
  font-size: 14px;
  line-height: 1.7;
}

/* Eventos */

.events {
  background: var(--ivory);
}

.event-panel {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  min-height: 440px;
  background: white;
  box-shadow: 0 28px 65px rgba(19, 40, 64, 0.09);
}

.event-copy {
  padding: clamp(46px, 6vw, 80px);
}

.event-copy > p:last-child {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.event-status {
  padding: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  position: relative;
  overflow: hidden;
}

.event-status::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  bottom: -90px;
  border: 1px solid rgba(11, 33, 64, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(11, 33, 64, 0.05),
    0 0 0 58px rgba(11, 33, 64, 0.04);
}

.event-status span {
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.event-status strong {
  font: 48px/1.05 Georgia, serif;
}

.event-status p {
  max-width: 220px;
  margin: 20px 0 0;
  line-height: 1.6;
}

/* Colaboración */

.collaborate {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(60px, 10vw, 150px);
}

.ways article {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 25px;
  padding: 33px 0;
  border-top: 1px solid var(--line);
}

.ways article:last-child {
  border-bottom: 1px solid var(--line);
}

.ways article > span {
  padding-top: 5px;
  color: #a77923;
  font: 14px Georgia, serif;
}

.ways h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font: 28px Georgia, serif;
}

.ways p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Transparencia */

.transparency {
  padding-top: 0;
}

.transparency-card {
  padding: clamp(44px, 6vw, 78px);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 38px;
  background: var(--navy2);
  color: white;
}

.seal {
  width: 86px;
  height: 86px;
  border: 1px solid var(--gold2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold2);
  font-size: 34px;
}

.transparency h2 {
  font-size: clamp(35px, 3.5vw, 52px);
}

.transparency-card p:last-child {
  max-width: 760px;
  margin: 25px 0 0;
  color: #c5ced8;
  font-size: 16px;
  line-height: 1.75;
}

/* Contacto */

.contact {
  text-align: center;
  background: var(--ivory);
}

.contact h2 {
  max-width: 760px;
  margin: 0 auto;
}

.contact > p:not(.kicker) {
  max-width: 610px;
  margin: 28px auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact > span {
  display: inline-flex;
  padding: 15px 20px;
  border: 1px solid #d1be91;
  color: #795b1f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

/* Pie de página */

footer {
  padding: 52px clamp(24px, 7vw, 108px) 38px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 50px;
  color: white;
  background: #071a32;
}

.footer-brand .brand-copy strong {
  color: white;
}

.footer-brand .brand-copy small {
  color: #94a0ae;
}

footer > p {
  margin: 0;
  color: #aeb9c6;
  font-size: 13px;
}

footer > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  color: #aeb9c6;
  font-size: 11px;
}

footer > div strong {
  color: var(--gold2);
}

/* Tabletas */

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 620px;
  }

  .intro,
  .collaborate {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .action-grid svg {
    margin-bottom: 45px;
  }

  .event-panel {
    grid-template-columns: 1fr;
  }

  .event-status {
    min-height: 300px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer > p {
    display: none;
  }
}

/* Teléfonos móviles */

@media (max-width: 620px) {
  header {
    height: 76px;
    padding: 0 18px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero-copy {
    padding: 75px 24px 65px;
  }

  h1 {
    font-size: 49px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .principles {
    margin-top: 44px;
    gap: 9px;
    font-size: 9px;
  }

  .hero-photo {
    min-height: 490px;
  }

  .quote {
    bottom: 25px;
    padding: 20px;
  }

  .quote p {
    font-size: 16px;
  }

  .section {
    padding: 76px 24px;
  }

  .intro h2,
  .section-heading h2,
  .events h2,
  .collaborate h2,
  .transparency h2,
  .contact h2 {
    font-size: 39px;
  }

  .action-grid article {
    padding: 30px 10px;
  }

  .event-copy,
  .event-status {
    padding: 38px 28px;
  }

  .transparency {
    padding-top: 0;
  }

  .transparency-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

  .seal {
    width: 70px;
    height: 70px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer > div {
    align-items: flex-start;
  }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  background: var(--gold2);
  color: var(--navy);
}

