:root {
  --sombra-suspendida: 0 3px 6px rgba(24, 46, 42, .16), 0 18px 28px -9px rgba(24, 46, 42, .34);
  --ink: #193f40;
  --teal: #226565;
  --pale: #edf5f2;
  --line: #ccdcd6;
  --edge: clamp(20px, 5vw, 84px);
  --space: clamp(52px, 6vw, 96px);
}
* { box-sizing: border-box; }
body { margin: 0; background: white; color: var(--ink); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; font: inherit; color: inherit; }
button { background: none; border: 0; }
:focus-visible { outline: 3px solid #ad6c17; outline-offset: 4px; }
h1,h2,p,figure { margin: 0; }
h1,h2,.guide-name { font-family: Georgia, serif; font-weight: 400; line-height: 1.06; letter-spacing: -.035em; }
header { display: flex; align-items: center; padding: 10px var(--edge); gap: 20px; }
header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.brand img { width: 116px; height: 54px; object-fit: contain; display: block; }
nav { display: flex; gap: 30px; margin: auto; }
a:hover,summary:hover,#video:hover { text-decoration: underline; }
.header-play { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-weight: 600; }
details { position: relative; }
details div { position: absolute; right: 0; width: 200px; padding: 14px; background: white; box-shadow: 0 10px 35px #1c433328; }
details a { display: block; padding: 7px; }
.mobile-links { display: none; }
header { padding-block: 14px; }
header .brand img { width: clamp(215px, 19vw, 285px); height: auto; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fffaf0;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 24px; min-height: clamp(495px, 66vh, 720px);
  padding: 40px var(--edge) 85px;
}
#slides, #slides img, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
#slides { z-index: -2; background: var(--teal); }
#slides img { object-fit: cover; opacity: 0; transition: opacity 1s ease; }
#slides .current { opacity: 1; }
.hero::before { content: ""; z-index: -1; background: linear-gradient(90deg,#21494ef2,#21494eb5 37%,transparent 80%),linear-gradient(0deg,#193f42d9,transparent 30%); }
h1 { font-size: clamp(42px, 4.9vw, 80px); max-width: 18ch; text-wrap: balance; margin-bottom: 26px; }
h1 em { color: #ffdfaa; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.gold,.explore,.primary,.choices a,.choices button { display: inline-block; border-radius: 24px; background: var(--teal); color: white; padding: 10px 17px; font-weight: 600; }
.gold { background: #f4d497; color: #193f40; }
.explore { background: #ff963f; color: #23231f; }
.explore:hover { background: #ffab63; }
.textlink { display: inline-block; border-bottom: 1px solid currentColor; }
.textlink { margin-top: 16px; }
.alma { width: clamp(280px, 32vw, 455px); }
.avatar-frame { --alma-caption: 44px; position: relative; padding: 0; aspect-ratio: 1; background: #dfd4c1; border: 1px solid #fff9; overflow: hidden; box-shadow: var(--sombra-suspendida); }
.avatar-frame img, #welcome-video { position: absolute; inset: 0 0 auto; z-index: 1; width: 100%; height: calc(100% - var(--alma-caption)); max-height: none; object-fit: contain; }
.avatar-frame span { position: absolute; bottom: 0; left: 0; right: 0; height: var(--alma-caption); display: grid; place-items: center; background: #21494e; color: white; font-weight: 600; }
.avatar-frame:hover span { text-decoration: underline; }
.rail { position: absolute; bottom: 0; left: var(--edge); right: var(--edge); display: flex; align-items: center; gap: 8px; border-top: 1px solid #fff8; min-height: 46px; font-size: 13px; }
#dots { display: flex; margin-left: auto; }
#dots button { width: 19px; height: 36px; padding: 2px; }
#dots button::after { content: ""; display: block; height: 3px; background: #ffffff80; }
#dots [aria-current=true]::after { background: #ffdfaa; }
#pause { min-width: 36px; }
.home-gold {
  display: flow-root;
  background: linear-gradient(145deg, #fff8e9 0%, #efd4a0 46%, #faedcf 76%, #e9ca91 100%);
}
.home-gold .band { background: #fff; }
#bands { padding: var(--space) var(--edge); display: grid; gap: var(--space); }
.band { display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden;
  background-color: white;
  border: 1px solid rgba(31, 57, 52, .14);
  border-radius: 24px;
  box-shadow: var(--sombra-suspendida);
}
.band img { width: 100%; height: auto; display: block; }
.copy { padding: clamp(25px,4vw,70px); }
.copy h2,.play h2 { font-size: clamp(33px,3.3vw,57px); margin: 10px 0 14px; }
.copy p:not(.eyebrow) { max-width: 44ch; }
.care { background: var(--pale); }
.care, .avatar-frame { border-radius: 48px 12px 64px 16px; }
.reverse { background: #f4f3ec; border-radius: 14px 60px 16px 48px; }
.reverse img { grid-column: 1; grid-row: 1; }
.reverse .copy { grid-column: 2; }
.actions,.choices { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.learning { grid-template-columns: 9fr 11fr; }
.learning img { align-self: stretch; height: 100%; object-fit: cover; object-position: 65% center; }
.culture { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); background: radial-gradient(ellipse at 75% 58%, #faf1e2 0%, white 72%); }
.play {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: clamp(32px, 5vw, 76px) var(--edge);
  background: linear-gradient(110deg, #e8c789, #e0bd7e);
}
.play .primary span { margin-right: 6px; }
.site-footer { background: linear-gradient(115deg, #e9ca91, #d8b77b); padding: 48px var(--edge) 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: min(200px, 100%); display: block; margin-bottom: 12px; }
.footer-grid h2 { font: 650 17px/1.4 "Segoe UI", sans-serif; letter-spacing: normal; margin-bottom: 10px; }
.footer-grid a { display: block; width: fit-content; padding-block: 4px; }
.footer-grid address { margin-top: 6px; font-style: normal; }
.footer-base { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.agency-credit { margin-top: 20px; text-align: center; font-size: 14px; }
.agency-credit a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-row: 1 / 3; }
  .footer-grid > :not(.footer-brand) { grid-column: 2; }
}
dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 32px; width: min(640px,94vw); max-height: 90dvh; }
dialog::backdrop { background: #153a39a8; }
dialog h2 { font-size: 34px; margin: 12px 0; }
.close { float: right; font-size: 30px; }
.guide { width: 65px; border-radius: 28px; }
video { width: 100%; max-height: 55vh; }
@media (max-width: 720px) {
  header { gap: 8px; font-size: 13px; }
  nav { gap: 10px; }
  .brand img { width: 68px; height: 40px; }
  .band { grid-template-columns: 1fr; }
  header > nav { display: none; }
  .header-play { margin-left: auto; }
  .mobile-links { display: block; margin: 0; }
  header .brand img { width: min(56vw, 224px); }
  .hero { grid-template-columns: 1fr; gap: 12px; padding-block: 24px 70px; }
  .alma { grid-row: 1; justify-self: end; width: clamp(210px, 62vw, 295px); }
  .hero::before { background: linear-gradient(0deg,#21494ef7,#21494edb 47%,#21494e26 85%); }
  h1 { font-size: clamp(36px, 7.3vw, 49px); margin-bottom: 18px; }
  .hero-actions { gap: 12px; }
  .care, .avatar-frame { border-radius: 30px 8px 36px 12px; }

  .reverse .copy,.reverse img { grid-column: auto; grid-row: auto; }
  .learning img { height: auto; }
  .learning .copy { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) { #slides img { transition: none; } }

#palazzo { margin: var(--space) var(--edge);  }
.sede-gallery { min-width: 0; align-self: stretch; position: relative; aspect-ratio: 3 / 2; margin: 0; }
.sede-photos { position: absolute; inset: 0; overflow: hidden; }
.sede-photos img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.sede-photos img[aria-hidden="false"], .sede-photos img:first-child:not([aria-hidden]) { opacity: 1; }
.gallery-controls { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 14px; }
.gallery-controls button { min-height: 44px; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .sede-photos img { transition: none; } }
.fundacion-reel { position: relative; aspect-ratio: 9 / 16; background: #182223; }
.fundacion-reel video { display: block; width: 100%; height: 100%; max-height: none; }
.reel-controls { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 6px; padding: 24px 8px 8px; background: linear-gradient(transparent, #000d); color: white; }
.reel-controls button { color: inherit; padding: 8px 4px; font-size: 14px; }
.reel-controls input { min-width: 0; width: 0; flex: 1; accent-color: white; }

#alma-backdrop { position: absolute; inset: 0 0 auto; width: 100%; height: calc(100% - var(--alma-caption)); filter: blur(6px); transform: scale(1.05); }
#welcome-video { z-index: 2; }
.avatar-frame:has(#welcome-video:not([hidden])) img { visibility: hidden; }
#start { z-index: 3; position: absolute; inset: 0; width: 100%; height: 100%; }
#start:focus-visible { outline-offset: -4px; }
.hero [hidden] { display: none; }
#alma-guide:not(:empty) { margin-top: 16px; padding: 16px; background: var(--ink); border-radius: 12px; }
.welcome-transcript { margin-top: 16px; }
.welcome-transcript summary { width: fit-content; }


#fundacion .copy { text-align: center; }
#fundacion .copy p { margin-inline: auto; }

.congress { grid-template-columns: minmax(0, 1fr) minmax(240px, min(38vw, 420px)); background: #faf7ef; }
.congress-copy { padding: clamp(25px, 3.8vw, 68px); }
.congress-copy h2 { margin: 14px 0; font: 500 clamp(34px, 3.5vw, 60px)/1.04 Georgia, serif; letter-spacing: -.035em; text-wrap: balance; }
.congress-kicker { margin: 0; color: #805022; font-weight: 700; }
.congress-date { margin: 20px 0 12px; font-weight: 650; }
.congress-venue { margin: 0; align-self: center; }
.congress-venue figcaption { padding: 8px 14px; color: #4d5954; font-size: .8rem; }
.congress-summary summary { display: list-item; width: fit-content; margin-top: 20px; padding: 10px 17px; border-radius: 24px; background: var(--teal); color: white; font-weight: 600; }
@media (max-width: 800px) { .congress { grid-template-columns: 1fr; } }

.congress-video { width: 100%; height: auto; max-height: none; aspect-ratio: 3 / 4; display: block; }

.about .copy { display: grid; justify-items: start; gap: 16px; padding: clamp(24px, 3vw, 48px); }
.about .copy h2, .about .copy p { margin: 0; }
.about .copy p { max-width: 58ch; }
.about .primary { margin-top: 12px; }
@media (min-width: 721px) {
  .about { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); }
  .about > img { align-self: stretch; height: 100%; object-fit: cover; object-position: center; }
}
