:root {
  --bordo: #aa3a3a;
  --ocre: #e08e00;
  --rosa: #eeb8b8;
  --creme: #f5efe4;
  --tinta: #1a1a1a;
  --texto-suave: #5b5650;
  --whatsapp: #25d366;
  --whatsapp-escuro: #0b5d2a;
  --branco: #fffdf8;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
.page-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 20px 0 56px; }
.bio-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid var(--rosa);
  border-radius: 999px;
  background: #fffaf2;
  box-shadow: 0 8px 28px #aa3a3a12;
}
.bio-nav a { color: var(--bordo); text-decoration: none; font-weight: 700; }
.bio-nav .brand { font-size: 1.08rem; letter-spacing: .05em; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.bio-nav .nav-whatsapp { background: var(--whatsapp); color: #102717; padding: 9px 17px; border-radius: 999px; }
.crumbs { margin: 34px 0 16px; color: var(--texto-suave); font-size: .9rem; }
.crumbs a { color: var(--bordo); }
.bio-header { max-width: 900px; padding: 30px 0 68px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--bordo); font-weight: 800; font-size: .76rem; }
h1, h2 { font-family: "Trebuchet MS", "Segoe UI", sans-serif; color: var(--bordo); line-height: 1.08; }
h1 { margin: 0 0 22px; font-size: clamp(2.7rem, 6vw, 5.6rem); max-width: 950px; }
.bio-header > p:last-child { margin: 0; max-width: 700px; color: var(--texto-suave); font-size: 1.2rem; }
.story-row { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(38px, 7vw, 92px); align-items: center; padding: 54px 0; border-top: 1px solid #d8c7ba; }
.story-row.reverse .story-image { order: 2; }
.story-row.reverse .story-copy { order: 1; }
.story-image {
  margin: 0;
  position: relative;
  border-radius: 32px;
  background-color: #fff;
  background-image: url("assets/biografia/simbolo-instituto.png");
  background-repeat: no-repeat;
  background-position: center 9%;
  background-size: 70% auto;
}
.story-image::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--ocre); border-radius: 38% 62% 54% 46% / 48% 38% 62% 52%; z-index: -1; }
.story-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 32px; box-shadow: 0 24px 55px #5e302426; }
.story-image.portrait img { object-position: center; }
.section-number { margin: 0 0 4px; color: var(--ocre); font-size: .9rem; font-weight: 800; letter-spacing: .18em; }
.story-copy h2 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.3rem); }
.story-copy p:not(.section-number) { color: #413d39; font-size: 1.05rem; }
.bio-actions { margin-top: 64px; padding: clamp(28px, 5vw, 50px); border-radius: 30px; background: var(--bordo); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.bio-actions .eyebrow { color: #ffdf90; }
.bio-actions h2 { color: #fff; margin: 0; max-width: 600px; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.button-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #24100e33; }
.button:focus-visible, .bio-nav a:focus-visible { outline: 3px solid var(--ocre); outline-offset: 4px; }
.button-lattes { background: var(--branco); color: var(--bordo); }
.button-whatsapp { background: var(--whatsapp); color: #102717; }
footer { padding-top: 34px; text-align: center; color: var(--texto-suave); font-size: .9rem; }

@media (max-width: 780px) {
  .page-shell { width: min(100% - 28px, var(--max)); padding-top: 14px; }
  .bio-nav { border-radius: 24px; align-items: flex-start; }
  .nav-actions > a:first-child { display: none; }
  .bio-nav .nav-whatsapp { padding: 8px 12px; font-size: .86rem; }
  .bio-header { padding-bottom: 42px; }
  h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
  .story-row { grid-template-columns: 1fr; gap: 34px; padding: 42px 0; }
  .story-row.reverse .story-image, .story-row.reverse .story-copy { order: initial; }
  .story-image { width: calc(100% - 12px); }
  .story-image::after { inset: 12px -12px -12px 12px; }
  .bio-actions { align-items: stretch; flex-direction: column; }
  .button-group { justify-content: stretch; flex-direction: column; }
  .button { width: 100%; }
}

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