@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=IM+Fell+English+SC&family=Pirata+One&display=swap');

:root {
  --navy: #063747;
  --deep: #052f3e;
  --cream: #fbf2dc;
  --paper: #fff9ee;
  --gold: #f2b735;
  --orange: #df6e2b;
  --coral: #ef8154;
  --teal: #0a6871;
  --ink: #173c47;
  --muted: #5c7378;
  --shadow: 0 18px 45px rgba(3, 42, 55, .18);
}

/* CTA de confirmación: alto contraste y tamaño apto para todas las edades. */
.nav-cta {
  min-height: 58px;
  padding: 14px 26px;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 20px !important;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .nav-cta {
    min-height: 52px;
    padding: 12px 16px;
    font-size: 17px !important;
  }
}

/* Ajustes finales de jerarquía y textura. */
.adventure h2 {
  max-width: 1200px;
  margin-inline: auto;
  font-size: clamp(64px, 7vw, 112px);
  line-height: .92;
}

.map-card .compass {
  font-size: clamp(86px, 8vw, 118px);
}

.route {
  gap: clamp(8px, 1.6vw, 22px);
}

.route img {
  width: clamp(84px, 11vw, 132px);
  height: clamp(84px, 11vw, 132px);
}

.route b {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.map-card {
  padding-bottom: 100px;
}

.rsvp {
  width: min(80vw, 1320px);
  margin: 46px auto 30px;
  border: 0;
  border-radius: 0;
  padding: 72px 7vw;
  background-color: transparent;
  background-image: url('./assets/pergamino-laterales-transparentes.webp');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: none;
  color: #2b160c;
}

.rsvp .eyebrow.light,
.rsvp h2,
.rsvp p,
.rsvp label { color: #4a2919; }

.rsvp h2 { text-shadow: 0 1px rgba(255, 244, 198, .9); }

.rsvp input,
.rsvp select {
  border-color: #8c5d2c;
  background: rgba(255, 247, 211, .72);
  color: #2b160c;
}

.rsvp input::placeholder { color: rgba(70, 39, 20, .62); }
.rsvp .success { background: rgba(112, 68, 27, .13); }
.rsvp .success span { color: #4a2919; }

@media (max-width: 560px) {
  .adventure h2 { font-size: clamp(54px, 15vw, 72px); }
  .route img { width: 72px; height: 72px; }
  .map-card .compass { font-size: 86px; }
  .map-card { padding-bottom: 72px; }
  .rsvp { width: 90vw; padding: 54px 9vw; }
}

/* Los elementos principales de la invitación mantienen su escala al final de la cascada. */
.adventure h2 {
  max-width: 1200px;
  margin-inline: auto;
  font-size: clamp(64px, 7vw, 112px);
  line-height: .92;
}

.map-card .compass {
  font-size: clamp(86px, 8vw, 118px);
}

.route {
  gap: clamp(8px, 1.6vw, 22px);
}

.route img {
  width: clamp(84px, 11vw, 132px);
  height: clamp(84px, 11vw, 132px);
}

.route b {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .adventure h2 { font-size: clamp(54px, 15vw, 72px); }
  .route img { width: 72px; height: 72px; }
  .map-card .compass { font-size: 86px; }
}

/* El estado del juego necesita respirar dentro de los bordes del pergamino. */
.mini-game .game-footer {
  width: 100%;
  min-height: 126px;
  margin-top: auto;
  padding: 20px clamp(30px, 5vw, 64px) 28px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.mini-game .game-footer small {
  display: block;
  max-width: 100%;
  font-size: 26px !important;
  line-height: 1.25;
  text-align: center;
}

.mini-game .game-footer .game-replay {
  margin-left: 0;
}

@media (max-width: 560px) {
  .mini-game .game-footer {
    min-height: 112px;
    padding: 18px 28px 24px;
  }

  .mini-game .game-footer small {
    font-size: 21px !important;
  }
}

/* Telón de bienvenida: el primer toque abre la invitación y desbloquea el audio. */
body.intro-active { overflow: hidden; }

.welcome-curtain {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020d10;
  opacity: 1;
  transition: opacity .72s ease 1.12s;
}

.welcome-curtain__panel {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse at 50% 10%, #246b73, #06242a 58%, #020d10 100%);
  transition: transform 1.15s cubic-bezier(.66, 0, .34, 1);
}

.welcome-curtain__panel--left { left: 0; }
.welcome-curtain__panel--right { right: 0; }
.welcome-curtain.is-opening .welcome-curtain__panel--left { transform: translateX(-102%); }
.welcome-curtain.is-opening .welcome-curtain__panel--right { transform: translateX(102%); }
.welcome-curtain.is-opening { opacity: 0; pointer-events: none; }

.welcome-curtain__message {
  position: relative;
  z-index: 2;
  width: min(90vw, 690px);
  padding: clamp(28px, 5vw, 64px);
  border: 2px solid rgba(242, 183, 53, .74);
  border-radius: 10px 26px 12px 24px;
  background: rgba(3, 24, 28, .86);
  box-shadow: 0 0 0 9px rgba(5, 51, 59, .54), 0 18px 45px rgba(0, 0, 0, .45);
  color: #fff1bf;
  text-align: center;
  transition: opacity .24s ease, transform .24s ease;
}

.welcome-curtain__message > span { color: var(--gold); font-size: 42px; }
.welcome-curtain__message p { margin: 12px 0 8px; color: #f1c96b; font-size: 14px; font-weight: 800; letter-spacing: 2px; }
.welcome-curtain__message h1 { margin: 0 0 30px; color: #fff4d1; font-size: clamp(38px, 7vw, 74px); line-height: .96; text-shadow: 3px 4px 0 #3e1b0d; }

.welcome-curtain__message button {
  min-height: 70px;
  padding: 14px clamp(22px, 4vw, 42px);
  border: 2px solid #754315;
  border-radius: 7px 17px 8px 15px;
  background: linear-gradient(180deg, #ffe580, #c88623);
  box-shadow: 0 5px 0 #6f3b12;
  color: #2b160c;
  cursor: pointer;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: 1px;
}

.welcome-curtain__message button:hover,
.welcome-curtain__message button:focus-visible { filter: brightness(1.1); transform: translateY(-2px); }
.welcome-curtain.is-opening .welcome-curtain__message { opacity: 0; transform: scale(.92); pointer-events: none; }

@media (max-width: 560px) {
  .welcome-curtain__message { padding: 30px 20px; }
  .welcome-curtain__message p { font-size: 11px; }
  .welcome-curtain__message h1 { font-size: 42px; }
  .welcome-curtain__message button { width: 100%; min-height: 64px; font-size: 22px; }
}

.eyebrow {
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1;
  letter-spacing: 2px;
}

header nav a:not(.nav-cta) {
  font-size: clamp(18px, 1.61vw, 25px);
  line-height: 1;
}

header nav .nav-cta {
  min-height: 58px;
  padding: 12px 22px;
  font-size: clamp(21px, 1.85vw, 29px) !important;
  line-height: .9;
}

.adventure > .eyebrow {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 2px;
  line-height: 1;
}

.adventure h2 {
  max-width: 1200px;
  margin-inline: auto;
  font-size: clamp(66px, 7.2vw, 108px);
  line-height: .92;
}

.map-card > p:first-of-type {
  margin-bottom: 14px;
  font-size: clamp(25px, 2.8vw, 38px);
  line-height: 1;
}

.map-card .gps-link {
  min-width: min(100%, 680px);
  min-height: 96px;
  padding: 20px 38px;
  font-size: clamp(30px, 3.8vw, 48px) !important;
  line-height: 1;
}

.map-card .map-embed {
  width: 80%;
  margin-inline: auto;
}

.rsvp form > .gold-btn {
  justify-self: center;
  width: min(100%, 780px);
  min-height: 104px;
  padding: 20px 36px;
  font-size: clamp(30px, 3.7vw, 48px) !important;
  line-height: 1;
}

@media (max-width: 560px) {
  header nav a:not(.nav-cta) { font-size: 16px; }
  header nav .nav-cta { min-height: 52px; padding: 11px 15px; font-size: 16px !important; }
  .adventure > .eyebrow { font-size: 29px; }
  .adventure h2 { font-size: 54px; }
  .map-card > p:first-of-type { font-size: 27px; }
  .map-card .gps-link { min-height: 78px; padding: 16px 22px; font-size: 29px !important; }
  .rsvp form > .gold-btn { min-height: 82px; padding: 16px 20px; font-size: 28px !important; }
}

/* Cierre de la invitación: el mismo pergamino del resto de piezas. */
.rsvp {
  width: min(80vw, 1320px);
  margin: 46px auto 30px;
  border: 0;
  border-radius: 0;
  padding: 72px 7vw;
  background-color: transparent;
  background-image: url('./assets/pergamino-laterales-transparentes.webp');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: none;
  color: #2b160c;
}

.rsvp .eyebrow.light,
.rsvp h2,
.rsvp p,
.rsvp label { color: #4a2919; }

.rsvp h2 { text-shadow: 0 1px rgba(255, 244, 198, .9); }
.rsvp input,
.rsvp select {
  border-color: #8c5d2c;
  background: rgba(255, 247, 211, .72);
  color: #2b160c;
}

.rsvp input::placeholder { color: rgba(70, 39, 20, .62); }
.rsvp .success { background: rgba(112, 68, 27, .13); }
.rsvp .success span { color: #4a2919; }
.rsvp .bottle { filter: drop-shadow(0 2px rgba(64, 35, 14, .3)); }

.map-context {
  display: block;
  margin: -6px 0 12px;
  color: #6c401f;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 17px;
}

.map-embed {
  width: 100%;
  max-width: none;
}

.gps-link {
  min-width: min(100%, 420px);
  min-height: 72px;
  padding: 16px 30px;
  font-size: 24px !important;
}

@media (max-width: 900px) {
  .hero { padding: 27px 0 44px; }
  .hero-copy { width: 80vw; padding: 0 0 28px; }
  .scene { width: 80vw; min-height: 0; padding: 0; }
  .scene img { width: 100%; }
  .game-roster > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .rsvp { width: 90vw; padding: 54px 9vw; }
  .map-card { width: 90vw; }
  .hero-copy, .scene { width: 90vw; }
}

/* La llamada principal debe leerse de un vistazo. */
.nav-cta {
  min-height: 68px;
  padding: 16px 30px;
  font-size: 30px !important;
}

.memory button:not(.flipped) {
  border: 0;
  background-color: transparent;
  background-image: url('./assets/pergamino-laterales-transparentes.webp');
  background-position: center;
  background-size: 155% 155%;
  background-repeat: no-repeat;
  box-shadow: none;
  color: #633718;
  text-shadow: 0 1px rgba(255, 244, 198, .85);
}

.catcher {
  width: 112px;
  height: 86px;
  background: none;
}

.catcher img {
  width: 118px;
  height: 96px;
  object-fit: contain;
  filter: none;
}

.falling-item {
  width: 52px;
  height: 52px;
}

.falling-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.falling-item.caught {
  z-index: 3;
  animation: none;
  transform: translateY(var(--fall-distance)) scale(.72) rotate(-8deg);
  opacity: .45;
  transition: transform .2s ease, opacity .2s ease;
}

/* Escenario de juego ampliado con apertura de cortinilla. */
.game-stage {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(16px, 3vw, 42px);
  background: rgba(0, 0, 0, .82);
}

.game-stage__curtain {
  position: fixed;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    repeating-linear-gradient(92deg, rgba(255, 215, 124, .06) 0 2px, transparent 2px 16px),
    linear-gradient(125deg, #1c4b50, #03191d 74%);
  transition: transform .52s cubic-bezier(.66, 0, .34, 1);
}

.game-stage__curtain--left { left: 0; border-right: 3px solid rgba(242, 183, 53, .5); }
.game-stage__curtain--right { right: 0; border-left: 3px solid rgba(242, 183, 53, .5); }
.game-stage.is-open .game-stage__curtain--left { transform: translateX(-102%); }
.game-stage.is-open .game-stage__curtain--right { transform: translateX(102%); }

.game-stage__content {
  position: relative;
  z-index: 3;
  width: min(94vw, 1040px);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .28s ease .34s, transform .35s ease .34s;
}

.game-stage.is-open .game-stage__content { opacity: 1; transform: none; }

.stage-close {
  position: relative;
  z-index: 2;
  min-height: 52px;
  margin: 0 0 12px;
  padding: 10px 18px;
  border: 2px solid #9b652d;
  border-radius: 10px 4px 12px 6px;
  background: #211209;
  color: #ffe07c;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 18px;
  cursor: pointer;
}

.game-stage .mini-game {
  width: 100%;
  min-height: min(820px, calc(100vh - 120px)) !important;
  padding: clamp(26px, 4vw, 46px);
}

.game-stage .treasure-scene,
.game-stage .coin-field { min-height: min(500px, 55vh); }

.game-stage .memory { max-width: 680px; margin: 10px auto 18px; gap: 16px; }
.game-stage .memory button { min-height: 84px; }

.game-roster {
  max-width: 1160px;
  margin: 50px auto 0;
  text-align: center;
}

.game-roster > div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.game-roster article {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 8px;
  border: 1px solid rgba(242, 183, 53, .34);
  border-radius: 10px 18px 9px 14px;
  background: rgba(1, 10, 11, .28);
  color: #ffe4a0;
  font-size: 30px;
}

.game-roster b { font-size: 17px; }
.game-roster span { color: #d6c39b; font-size: 13px; }

.game-footer small {
  font-size: 26px !important;
  line-height: 1.25;
}

.game-footer .game-replay {
  font-size: 22px !important;
}

@media (max-width: 560px) {
  .game-stage { padding: 10px; }
  .game-stage__content { width: 100%; }
  .stage-close { font-size: 15px; }
  .game-stage .mini-game { padding: 22px; }
  .game-stage .treasure-scene,
  .game-stage .coin-field { min-height: 390px; }
  .game-stage .memory { gap: 9px; }
  .game-stage .memory button { min-height: 60px; }
  .game-roster > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-footer small { font-size: 21px !important; }
}

@media (max-width: 560px) {
  .nav-cta {
    min-height: 58px;
    padding: 13px 18px;
    font-size: 22px !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'IM Fell English', Georgia, serif;
}

p {
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-weight: 400;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .55), transparent 24%),
    linear-gradient(rgba(111, 82, 41, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 82, 41, .04) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

a {
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  padding: 0 7vw 0 max(7vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(6, 55, 71, .96);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 24, 32, .3);
  backdrop-filter: blur(10px);
}

.audio-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(242, 183, 53, .72);
  border-radius: 50%;
  background: var(--deep);
  box-shadow: 0 4px 14px rgba(0, 24, 32, .32);
  color: var(--gold);
  cursor: pointer;
  font-size: 20px;
  transition: transform .18s ease, background .18s ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  background: #0a5263;
  outline: 0;
  transform: translateY(-2px);
}

.audio-toggle[aria-pressed='false'] {
  color: #c3d0cd;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.25;
  white-space: nowrap;
}

.brand > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(242, 183, 53, .6);
  border-radius: 50%;
  color: var(--gold);
  font-size: 25px;
}

.brand b {
  display: block;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  color: #fff;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}

nav a:hover {
  color: var(--gold);
}

.nav-cta,
.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 13px 22px;
  background: linear-gradient(180deg, #ffd86a, var(--gold));
  color: var(--deep) !important;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .3px;
  box-shadow: 0 5px 0 #b87517;
  cursor: pointer;
}

.nav-cta:hover,
.gold-btn:hover {
  transform: translateY(-1px);
  color: var(--deep);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: stretch;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 7% 0%, rgba(239, 129, 84, .35), transparent 26%),
    linear-gradient(116deg, #064353 0 46%, #0b7280 72%, #178992);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 82px 4vw 72px 9vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.script {
  margin: 30px 0 3px;
  color: var(--coral);
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 38px;
  transform: rotate(-3deg);
}

h1 {
  margin: 0;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 2px 4px rgba(0, 47, 59, .65);
}

h1 em {
  color: var(--gold);
  font-style: normal;
}

.intro {
  max-width: 520px;
  margin: 20px 0 0;
  color: #d9eff0;
  font-size: 17px;
  line-height: 1.7;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 30px;
}

.date-row > div {
  width: 74px;
  height: 86px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  text-align: center;
}

.date-row span {
  display: block;
  padding: 5px;
  background: var(--coral);
  font-size: 11px;
  font-weight: 800;
}

.date-row b {
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
}

.date-row p {
  margin: 0;
  color: #e2f5f4;
  font-size: 14px;
  line-height: 1.7;
}

.date-row strong {
  font-size: 15px;
  color: #fff;
}

.hero-btn {
  width: fit-content;
}

.scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 650px;
  padding: 44px 5vw 40px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 56%),
    radial-gradient(circle at 76% 22%, rgba(255, 216, 106, .4), transparent 15%);
}

.scene img {
  width: min(122%, 920px);
  max-width: none;
  transform: translateX(-5.5%);
  filter: drop-shadow(0 26px 28px rgba(0, 38, 49, .32));
}

.adventure,
.games {
  position: relative;
  text-align: center;
  padding: 82px 8vw;
}

.eyebrow {
  margin: 0;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.adventure h2,
.games h2,
.rsvp h2,
.map-card h2 {
  margin: 12px 0;
  color: var(--navy);
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
}

.section-intro {
  max-width: 610px;
  margin: 0 auto 48px;
  color: var(--muted);
  line-height: 1.65;
}

.features {
  max-width: 1080px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  text-align: left;
}

/* Dense, shallow tears: more texture without the large bites. */
.adventure,
.games {
  clip-path: polygon(
    0 2.1%, 1% 1.2%, 2% 2%, 3% .5%, 4% 1.7%, 5% .2%, 6% 1.5%, 7% .7%, 8% 2%, 9% .3%,
    10% 1.4%, 11% .5%, 12% 2.1%, 13% .2%, 14% 1.6%, 15% .7%, 16% 1.9%, 17% .3%, 18% 1.5%, 19% .5%,
    20% 2%, 21% .2%, 22% 1.7%, 23% .6%, 24% 1.9%, 25% .3%, 26% 1.5%, 27% .6%, 28% 2.1%, 29% .2%,
    30% 1.6%, 31% .5%, 32% 2%, 33% .3%, 34% 1.4%, 35% .6%, 36% 2.1%, 37% .2%, 38% 1.7%, 39% .5%,
    40% 1.9%, 41% .3%, 42% 1.5%, 43% .7%, 44% 2%, 45% .2%, 46% 1.6%, 47% .5%, 48% 2.1%, 49% .3%,
    50% 1.5%, 51% .6%, 52% 1.9%, 53% .2%, 54% 1.7%, 55% .5%, 56% 2%, 57% .3%, 58% 1.4%, 59% .7%,
    60% 2.1%, 61% .2%, 62% 1.6%, 63% .5%, 64% 1.9%, 65% .3%, 66% 1.5%, 67% .6%, 68% 2%, 69% .2%,
    70% 1.7%, 71% .5%, 72% 2.1%, 73% .3%, 74% 1.4%, 75% .7%, 76% 1.9%, 77% .2%, 78% 1.6%, 79% .5%,
    80% 2%, 81% .3%, 82% 1.5%, 83% .6%, 84% 2.1%, 85% .2%, 86% 1.7%, 87% .5%, 88% 1.9%, 89% .3%,
    90% 1.4%, 91% .7%, 92% 2%, 93% .2%, 94% 1.6%, 95% .5%, 96% 2.1%, 97% .3%, 98% 1.5%, 99% .6%, 100% .2%,
    99.1% 2%, 100% 4%, 98.8% 6%, 100% 8%, 98.7% 10%, 100% 12%, 98.9% 14%, 100% 16%, 98.6% 18%, 100% 20%,
    98.8% 22%, 100% 24%, 98.7% 26%, 100% 28%, 98.9% 30%, 100% 32%, 98.6% 34%, 100% 36%, 98.8% 38%, 100% 40%,
    98.7% 42%, 100% 44%, 98.9% 46%, 100% 48%, 98.6% 50%, 100% 52%, 98.8% 54%, 100% 56%, 98.7% 58%, 100% 60%,
    98.9% 62%, 100% 64%, 98.6% 66%, 100% 68%, 98.8% 70%, 100% 72%, 98.7% 74%, 100% 76%, 98.9% 78%, 100% 80%,
    98.6% 82%, 100% 84%, 98.8% 86%, 100% 88%, 98.7% 90%, 100% 92%, 98.9% 94%, 100% 96%, 99% 98%,
    98% 99.2%, 97% 98.1%, 96% 99.8%, 95% 98.3%, 94% 99.5%, 93% 97.9%, 92% 99.7%, 91% 98.2%, 90% 99.9%,
    89% 98%, 88% 99.4%, 87% 98.1%, 86% 99.8%, 85% 98.3%, 84% 99.5%, 83% 97.9%, 82% 99.7%, 81% 98.2%, 80% 99.9%,
    79% 98%, 78% 99.4%, 77% 98.1%, 76% 99.8%, 75% 98.3%, 74% 99.5%, 73% 97.9%, 72% 99.7%, 71% 98.2%, 70% 99.9%,
    69% 98%, 68% 99.4%, 67% 98.1%, 66% 99.8%, 65% 98.3%, 64% 99.5%, 63% 97.9%, 62% 99.7%, 61% 98.2%, 60% 99.9%,
    59% 98%, 58% 99.4%, 57% 98.1%, 56% 99.8%, 55% 98.3%, 54% 99.5%, 53% 97.9%, 52% 99.7%, 51% 98.2%, 50% 99.9%,
    49% 98%, 48% 99.4%, 47% 98.1%, 46% 99.8%, 45% 98.3%, 44% 99.5%, 43% 97.9%, 42% 99.7%, 41% 98.2%, 40% 99.9%,
    39% 98%, 38% 99.4%, 37% 98.1%, 36% 99.8%, 35% 98.3%, 34% 99.5%, 33% 97.9%, 32% 99.7%, 31% 98.2%, 30% 99.9%,
    29% 98%, 28% 99.4%, 27% 98.1%, 26% 99.8%, 25% 98.3%, 24% 99.5%, 23% 97.9%, 22% 99.7%, 21% 98.2%, 20% 99.9%,
    19% 98%, 18% 99.4%, 17% 98.1%, 16% 99.8%, 15% 98.3%, 14% 99.5%, 13% 97.9%, 12% 99.7%, 11% 98.2%, 10% 99.9%,
    9% 98%, 8% 99.4%, 7% 98.1%, 6% 99.8%, 5% 98.3%, 4% 99.5%, 3% 97.9%, 2% 99.7%, 1% 98.2%, 0 97%,
    .9% 95%, 0 93%, 1.2% 91%, 0 89%, .8% 87%, 0 85%, 1.1% 83%, 0 81%, .9% 79%, 0 77%, 1.2% 75%,
    0 73%, .8% 71%, 0 69%, 1.1% 67%, 0 65%, .9% 63%, 0 61%, 1.2% 59%, 0 57%, .8% 55%,
    0 53%, 1.1% 51%, 0 49%, .9% 47%, 0 45%, 1.2% 43%, 0 41%, .8% 39%, 0 37%, 1.1% 35%,
    0 33%, .9% 31%, 0 29%, 1.2% 27%, 0 25%, .8% 23%, 0 21%, 1.1% 19%, 0 17%, .9% 15%,
    0 13%, 1.2% 11%, 0 9%, .8% 7%, 0 5%, 1.1% 3%
  );
}

.features article,
.game-card {
  border: 1px solid #e3d8bf;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.features article {
  display: flex;
  gap: 18px;
  padding: 28px;
}

.features article > span,
.game-icon {
  font-size: 40px;
}

.features b {
  color: var(--navy);
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
}

.features p,
.map-card p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.features p {
  margin: 9px 0 0;
  font-size: 14px;
}

.map-section {
  position: relative;
  padding: 72px 12vw;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 216, 106, .24), transparent 18%),
    linear-gradient(135deg, var(--teal), #074b5d);
}

.map-card {
  position: relative;
  max-width: 980px;
  margin: auto;
  border: 7px double #a67e43;
  border-radius: 8px;
  padding: 46px 42px;
  background-color: #eee0b9;
  background-image:
    linear-gradient(rgba(128, 109, 77, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 109, 77, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  text-align: center;
  box-shadow: 0 18px 0 rgba(3, 73, 83, .7), var(--shadow);
}

.compass {
  position: absolute;
  left: 30px;
  top: 26px;
  color: #a67338;
  font-size: 68px;
}

.route {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.route i {
  font-size: 34px;
  font-style: normal;
}

.route img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px rgba(64, 35, 15, .28));
}

.route b {
  overflow: hidden;
  color: #ad7d3d;
  letter-spacing: 5px;
}

.map-card > p:first-of-type {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
}

.games {
  background: #f3ead4;
}

.game-layout {
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.game-card {
  padding: 28px;
}

.game-layout > .game-card {
  min-height: 430px;
}

.game-title {
  display: flex;
  gap: 15px;
  align-items: center;
}

.game-title p {
  margin: 0;
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.game-title h3 {
  margin: 4px 0;
  color: var(--navy);
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.memory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 25px 0;
}

.memory button,
.dig-grid button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.memory button {
  aspect-ratio: 1;
  background: var(--teal);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 0 #00464e;
}

.memory button:hover,
.dig-grid button:hover {
  transform: translateY(-2px);
}

.memory button.flipped {
  background: var(--gold);
  color: var(--deep);
}

.hint {
  color: #718083;
  font-size: 14px;
  line-height: 1.55;
}

.dig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.dig-grid button {
  min-height: 58px;
  border: 1px dashed #bd8f4c;
  background: #e9d49c;
  color: #a7672c;
  font-size: 25px;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-footer small {
  color: #738282;
}

.game-footer button,
.success button,
footer button {
  border: 0;
  background: none;
  color: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.rsvp {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(320px, 1.3fr);
  gap: 30px;
  align-items: center;
  padding: 64px 9vw;
  background:
    radial-gradient(circle at 8% 20%, rgba(239, 129, 84, .18), transparent 22%),
    var(--deep);
  color: #fff;
}

.bottle {
  font-size: 65px;
  transform: rotate(-25deg);
}

.eyebrow.light {
  color: var(--gold);
}

.rsvp h2 {
  color: #fff;
  font-size: 31px;
}

.rsvp p {
  color: #b8d0d3;
  font-size: 14px;
}

.rsvp form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.rsvp label {
  color: #c5d8da;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.rsvp input,
.rsvp select {
  display: block;
  width: 100%;
  height: 45px;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  padding: 0 12px;
  font: inherit;
}

.rsvp input::placeholder {
  color: rgba(255, 255, 255, .58);
}

.rsvp select option {
  color: #111;
}

.rsvp form button {
  grid-column: 1 / -1;
}

.success {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, .1);
}

.success span {
  color: #c5d8da;
  font-size: 12px;
}

.success button {
  width: fit-content;
  padding: 0;
  color: var(--gold);
  text-align: left;
}

footer {
  min-height: 110px;
  padding: 0 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #032a37;
  color: #83a6a9;
  font-size: 12px;
}

footer button {
  color: var(--gold);
  font-size: 10px;
}

/* Acabado de carta náutica y cubierta de barco. */
#root {
  overflow: hidden;
}

body {
  background-color: #4c301d;
  background-image:
    repeating-linear-gradient(96deg, rgba(35, 18, 9, .22) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(5deg, rgba(255, 206, 111, .06) 0 1px, transparent 1px 9px),
    linear-gradient(110deg, #3d2618, #6e4729 48%, #382217);
}

body::before {
  z-index: -1;
  opacity: .55;
  background:
    radial-gradient(ellipse at 18% 6%, rgba(255, 231, 157, .22), transparent 25%),
    radial-gradient(ellipse at 86% 92%, rgba(16, 8, 3, .34), transparent 24%),
    repeating-radial-gradient(ellipse at 30% 50%, rgba(255, 239, 188, .08) 0 1px, transparent 1px 11px);
}

header {
  min-height: 92px;
  padding-top: 6px;
  padding-bottom: 10px;
  background:
    linear-gradient(180deg, rgba(121, 76, 39, .98), rgba(62, 35, 20, .98)),
    #4b2c1a;
  border-bottom: 5px solid #26160d;
  box-shadow: inset 0 -2px rgba(239, 184, 83, .22), 0 8px 18px rgba(21, 10, 4, .42);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 88% 95%, 80% 100%, 71% 96%, 63% 100%, 54% 95%, 46% 100%, 36% 96%, 28% 100%, 18% 95%, 8% 100%, 0 94%);
}

header::after {
  content: none;
  position: absolute;
  right: 7vw;
  bottom: 5px;
  color: rgba(244, 193, 96, .3);
  font-size: 9px;
  letter-spacing: 10px;
  white-space: nowrap;
}

.brand > span,
.audio-toggle {
  border-color: #dfb457;
  background: radial-gradient(circle at 35% 28%, #895d31, #2a180e 72%);
  box-shadow: inset 0 0 0 2px rgba(20, 9, 4, .48), 0 4px 0 #231209;
}

nav {
  gap: 14px;
}

nav a:not(.nav-cta) {
  padding: 8px 10px;
  color: #ffe8ae;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .7px;
  transform: rotate(-1deg);
}

nav a:not(.nav-cta),
.eyebrow,
.game-title p {
  font-family: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
}

nav a:nth-child(2) { transform: rotate(1deg); }

.nav-cta,
.gold-btn {
  border: 2px solid #754315;
  border-radius: 3px 11px 4px 9px;
  background:
    linear-gradient(100deg, transparent 0 7%, rgba(255, 255, 255, .22) 8% 9%, transparent 10% 88%, rgba(116, 64, 20, .22) 89% 100%),
    linear-gradient(180deg, #ffd668, #c88724);
  box-shadow: 0 5px 0 #6f3b12, inset 0 1px rgba(255, 250, 198, .7);
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-weight: 400;
}

.hero {
  position: relative;
  min-height: 670px;
  margin: 0 2.2vw;
  clip-path: polygon(0 2%, 3% 0, 9% 2%, 16% 0, 25% 1%, 34% 0, 42% 2%, 53% 0, 62% 1%, 71% 0, 82% 2%, 91% 0, 100% 2%, 100% 96%, 95% 100%, 89% 97%, 81% 100%, 72% 98%, 64% 100%, 53% 97%, 44% 100%, 33% 98%, 25% 100%, 15% 97%, 7% 100%, 0 96%);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 211, 91, .35), transparent 15%),
    radial-gradient(circle at 10% 8%, rgba(255, 181, 85, .26), transparent 21%),
    repeating-linear-gradient(14deg, rgba(255,255,255,.035) 0 1px, transparent 1px 11px),
    linear-gradient(120deg, #123f44 0 44%, #286f68 68%, #1c7c77);
  box-shadow: 0 22px 32px rgba(28, 13, 5, .38);
}

.hero::before {
  content: '✦  ·  MAPA SELLADO POR LA CAPITANA  ·  ✦';
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 4vw;
  padding: 8px 17px;
  border: 2px solid rgba(255, 218, 127, .58);
  border-radius: 48% 52% 46% 54%;
  color: rgba(255, 231, 166, .86);
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  transform: rotate(4deg);
}

.hero-copy {
  padding-left: 10vw;
}

.scene {
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 216, 106, .48), transparent 16%),
    repeating-radial-gradient(ellipse at 72% 72%, rgba(246, 226, 163, .09) 0 1px, transparent 1px 13px);
}

.adventure,
.games {
  margin: 0 2.2vw;
  background-color: #ead6a0;
  background-image:
    radial-gradient(circle at 8% 14%, rgba(107, 61, 24, .14), transparent 21%),
    radial-gradient(circle at 89% 80%, rgba(107, 61, 24, .12), transparent 22%),
    repeating-linear-gradient(8deg, rgba(104, 68, 31, .07) 0 1px, transparent 1px 8px);
  clip-path: polygon(0 1.5%, 5% 0, 13% 1%, 21% 0, 31% 1%, 41% 0, 50% 1.2%, 61% 0, 72% 1%, 82% 0, 92% 1%, 100% 0, 100% 98.5%, 94% 100%, 85% 98%, 76% 100%, 66% 98%, 56% 100%, 46% 98%, 36% 100%, 27% 98%, 17% 100%, 8% 98%, 0 100%);
}

.adventure {
  margin-top: 18px;
}

.eyebrow {
  color: #a94f23;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-weight: 400;
}

.adventure h2,
.games h2,
.map-card h2 {
  color: #4a2919;
  text-shadow: 1px 1px rgba(255, 248, 209, .7);
}

.features article,
.game-card {
  border: 2px solid #9a6b37;
  border-radius: 4px 16px 6px 19px;
  background:
    radial-gradient(circle at 92% 8%, rgba(116, 72, 30, .1), transparent 16%),
    repeating-linear-gradient(5deg, rgba(118, 76, 36, .055) 0 1px, transparent 1px 8px),
    #f5e5b8;
  box-shadow: 6px 8px 0 rgba(84, 45, 18, .23), 0 15px 24px rgba(53, 28, 11, .18);
}

.features article:nth-child(1) { transform: rotate(-1.2deg); }
.features article:nth-child(2) { transform: translateY(9px) rotate(.7deg); }
.features article:nth-child(3) { transform: rotate(-.5deg); }

.map-section {
  margin: 0 2.2vw;
  padding-top: 92px;
  padding-bottom: 92px;
  background:
    radial-gradient(circle at 18% 42%, rgba(253, 218, 111, .2), transparent 15%),
    repeating-linear-gradient(92deg, rgba(18, 66, 66, .15) 0 2px, transparent 2px 19px),
    linear-gradient(135deg, #164e50, #082f38);
  clip-path: polygon(0 2%, 7% 0, 16% 2%, 26% 0, 35% 1%, 45% 0, 54% 2%, 65% 0, 75% 1%, 84% 0, 94% 2%, 100% 0, 100% 98%, 92% 100%, 84% 98%, 74% 100%, 64% 98%, 55% 100%, 45% 98%, 35% 100%, 26% 98%, 16% 100%, 7% 98%, 0 100%);
}


.map-card {
  border: 9px double #70421f;
  border-radius: 6px 19px 7px 24px;
  background-color: #ddc387;
  box-shadow: 9px 12px 0 rgba(3, 25, 28, .5), 0 18px 28px rgba(3, 19, 21, .4);
  transform: rotate(-.6deg);
}

/* Pergamino limpio con borde quemado para los módulos de contenido. */
.features article,
.game-card,
.map-card {
  border: 0;
  border-radius: 0;
  background-color: #efd18c;
  background-image: url('./assets/pergamino-laterales-transparentes.webp');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  /* The image contains its own alpha silhouette, so no artificial crop is needed. */
  clip-path: none;
}

.features article,
.game-card {
  padding: 34px 36px;
}

.map-card {
  padding: 58px 56px;
}

.features b,
.game-title h3,
.map-card h2 {
  color: #2b160c;
  text-shadow: 0 1px 0 rgba(255, 244, 198, .92);
}

.features b { font-size: 16.5px; }
.game-title h3 { font-size: 23.1px; }
.map-card h2 { font-size: 41.8px; }

.features p,
.map-card p:last-child,
.hint,
.game-footer small {
  color: #3f2717;
  font-weight: 700;
  font-size: 15.4px;
  text-shadow: 0 1px 0 rgba(255, 244, 198, .8);
}

.map-card p:last-child { font-size: 17.6px; }
.game-footer small { font-size: 14.7px; }

.game-title p,
.map-card > p:first-of-type {
  color: #822d16;
  font-weight: 800;
  font-size: 11px;
  text-shadow: 0 1px 0 rgba(255, 239, 182, .9);
}

.game-footer button {
  color: #8a2e13;
  font-size: 14.3px;
  text-shadow: 0 1px 0 rgba(255, 244, 198, .9);
}

.games {
  background-color: #d8be79;
}

.game-card:nth-child(1) { transform: rotate(.45deg); }
.game-card:nth-child(2) { transform: rotate(-.55deg); }

.iframe-game {
  grid-column: 1 / -1;
  transform: rotate(.18deg) !important;
}

.iframe-shell {
  overflow: hidden;
  margin-top: 22px;
  border: 6px solid #5b3219;
  border-radius: 11px 23px 9px 19px;
  background: #20150e;
  box-shadow: 0 0 0 3px #c28b3e, inset 0 0 0 1px rgba(255, 235, 170, .4);
}

.iframe-shell iframe {
  display: block;
  width: 100%;
  min-height: 650px;
  border: 0;
  background: #20150e;
}

.rsvp {
  margin: 18px 2.2vw 0;
  border: 5px solid #2c180d;
  border-radius: 10px 26px 9px 22px;
  background:
    radial-gradient(circle at 8% 20%, rgba(240, 174, 70, .22), transparent 22%),
    repeating-linear-gradient(96deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 27px),
    linear-gradient(135deg, #61371f, #1b392f);
  box-shadow: 8px 10px 0 rgba(37, 19, 9, .4);
}

footer {
  margin-top: 18px;
  min-height: 126px;
  background:
    repeating-linear-gradient(94deg, rgba(255, 199, 94, .07) 0 1px, transparent 1px 28px),
    #2d1a10;
}

/* Noche cerrada alrededor de las piezas de pergamino. */
body {
  background: #000;
}

body::before {
  display: none;
}

header,
.hero,
.map-section,
.rsvp,
footer {
  background: #000;
}

/* Keep transparent parchment pixels truly transparent: no colored fallback layer. */
.adventure,
.games {
  background: #000;
}

.adventure {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(142, 91, 29, .42), transparent 66%),
    #120b05;
}

.games {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(25, 105, 111, .42), transparent 66%),
    #031114;
}

/* Rough parchment-like deckle around the coloured section blocks. */
.adventure,
.games {
  clip-path: polygon(
    0 5%, 2% 2%, 5% 4.5%, 8% 1%, 12% 3.5%, 16% .5%,
    20% 4%, 25% 1.5%, 29% 4.5%, 34% .5%, 38% 3.5%, 43% 1%,
    48% 4.5%, 53% .5%, 57% 3.5%, 62% 1.5%, 67% 4.5%, 72% .5%,
    77% 3.5%, 82% 1%, 87% 4.5%, 92% .5%, 96% 3.5%, 100% 1%,
    98% 8%, 100% 14%, 97.5% 21%, 100% 28%, 98% 35%, 100% 42%,
    97.5% 50%, 100% 57%, 98% 64%, 100% 72%, 97.5% 79%, 100% 87%,
    98% 95%, 94% 98%, 90% 95%, 86% 99.5%, 81% 96%, 76% 98.5%,
    71% 95%, 66% 99.5%, 61% 96%, 56% 98.5%, 51% 95%, 46% 99.5%,
    41% 96%, 36% 98.5%, 31% 95%, 26% 99.5%, 21% 96%, 16% 98.5%,
    11% 95%, 6% 99.5%, 2% 96%, 0 90%, 2.5% 83%, 0 76%,
    2% 69%, 0 62%, 2.5% 55%, 0 48%, 2% 41%, 0 34%,
    2.5% 27%, 0 20%, 2% 13%
  );
}

/* Extra vertices make the deckled edge feel torn rather than geometrically zig-zagged. */
.adventure,
.games {
  clip-path: polygon(
    0 6%, 1.5% 3.5%, 3% 5.5%, 4.5% 2%, 6% 4.5%, 7.5% .7%, 9% 3.8%,
    10.5% 1.5%, 12% 4.8%, 13.5% 2.5%, 15% .5%, 16.5% 3.5%, 18% 1.2%,
    19.5% 4.5%, 21% 2%, 22.5% 5%, 24% 1%, 25.5% 3.8%, 27% .4%,
    28.5% 4%, 30% 1.7%, 31.5% 4.7%, 33% 2.2%, 34.5% .6%, 36% 3.6%,
    37.5% 1%, 39% 4.6%, 40.5% 2%, 42% 5%, 43.5% .5%, 45% 3.7%,
    46.5% 1.4%, 48% 4.8%, 49.5% 2.3%, 51% .4%, 52.5% 3.8%, 54% 1.2%,
    55.5% 4.5%, 57% 2%, 58.5% 5%, 60% .5%, 61.5% 3.5%, 63% 1%,
    64.5% 4.8%, 66% 2.1%, 67.5% .5%, 69% 3.7%, 70.5% 1.3%, 72% 4.6%,
    73.5% 2%, 75% 5%, 76.5% .6%, 78% 3.8%, 79.5% 1%, 81% 4.5%,
    82.5% 2.2%, 84% .4%, 85.5% 3.6%, 87% 1.5%, 88.5% 4.8%, 90% 2%,
    91.5% 5%, 93% .7%, 94.5% 3.7%, 96% 1.2%, 97.5% 4.5%, 100% 2%,
    98.3% 5.5%, 100% 8%, 97.2% 11%, 99.5% 14%, 96.5% 17%, 100% 20%,
    97% 23%, 99.5% 26%, 96.3% 29%, 100% 32%, 97.2% 35%, 99.5% 38%,
    96.5% 41%, 100% 44%, 97% 47%, 99.5% 50%, 96.3% 53%, 100% 56%,
    97.2% 59%, 99.5% 62%, 96.5% 65%, 100% 68%, 97% 71%, 99.5% 74%,
    96.3% 77%, 100% 80%, 97.2% 83%, 99.5% 86%, 96.5% 89%, 100% 92%,
    97.5% 96%, 94.5% 98%, 92% 95.5%, 89.5% 99%, 87% 96%, 84.5% 99.5%,
    82% 95.7%, 79.5% 98.5%, 77% 96%, 74.5% 99.5%, 72% 95.6%, 69.5% 98.7%,
    67% 96%, 64.5% 99.5%, 62% 95.8%, 59.5% 98.5%, 57% 96%, 54.5% 99.5%,
    52% 95.6%, 49.5% 98.7%, 47% 96%, 44.5% 99.5%, 42% 95.8%, 39.5% 98.5%,
    37% 96%, 34.5% 99.5%, 32% 95.6%, 29.5% 98.7%, 27% 96%, 24.5% 99.5%,
    22% 95.8%, 19.5% 98.5%, 17% 96%, 14.5% 99.5%, 12% 95.6%, 9.5% 98.7%,
    7% 96%, 4.5% 99.5%, 2% 96%, 0 92%, 2.5% 89%, .5% 86%, 3% 83%,
    0 80%, 2.5% 77%, .5% 74%, 3% 71%, 0 68%, 2.5% 65%, .5% 62%,
    3% 59%, 0 56%, 2.5% 53%, .5% 50%, 3% 47%, 0 44%, 2.5% 41%,
    .5% 38%, 3% 35%, 0 32%, 2.5% 29%, .5% 26%, 3% 23%, 0 20%,
    2.5% 17%, .5% 14%, 3% 11%, 0 8%
  );
}

.features article,
.game-card,
.map-card {
  background-color: transparent;
  box-shadow: none;
  clip-path: none;
}

.adventure h2,
.games h2 {
  color: #ffe2a0;
  text-shadow: 0 2px 10px rgba(196, 129, 36, .35);
}

.adventure .section-intro,
.games .section-intro {
  color: #f4e3bf;
}

/* Final contour: frequent, shallow nicks including both vertical sides. */
.adventure,
.games {
  clip-path: polygon(
    0 2%, 2% .8%, 4% 1.9%, 6% .3%, 8% 1.7%, 10% .7%, 12% 2.1%, 14% .4%, 16% 1.8%, 18% .6%,
    20% 2%, 22% .3%, 24% 1.6%, 26% .8%, 28% 2.1%, 30% .4%, 32% 1.9%, 34% .6%, 36% 1.7%, 38% .3%,
    40% 2%, 42% .7%, 44% 1.8%, 46% .4%, 48% 2.1%, 50% .6%, 52% 1.7%, 54% .3%, 56% 1.9%, 58% .7%,
    60% 2%, 62% .4%, 64% 1.8%, 66% .6%, 68% 2.1%, 70% .3%, 72% 1.7%, 74% .8%, 76% 1.9%, 78% .4%,
    80% 2%, 82% .6%, 84% 1.8%, 86% .3%, 88% 2.1%, 90% .7%, 92% 1.7%, 94% .4%, 96% 1.9%, 98% .6%, 100% .3%,
    99.1% 2%, 100% 4%, 98.8% 6%, 100% 8%, 98.7% 10%, 100% 12%, 98.9% 14%, 100% 16%, 98.6% 18%, 100% 20%,
    98.8% 22%, 100% 24%, 98.7% 26%, 100% 28%, 98.9% 30%, 100% 32%, 98.6% 34%, 100% 36%, 98.8% 38%, 100% 40%,
    98.7% 42%, 100% 44%, 98.9% 46%, 100% 48%, 98.6% 50%, 100% 52%, 98.8% 54%, 100% 56%, 98.7% 58%, 100% 60%,
    98.9% 62%, 100% 64%, 98.6% 66%, 100% 68%, 98.8% 70%, 100% 72%, 98.7% 74%, 100% 76%, 98.9% 78%, 100% 80%,
    98.6% 82%, 100% 84%, 98.8% 86%, 100% 88%, 98.7% 90%, 100% 92%, 98.9% 94%, 100% 96%, 99% 98%,
    98% 99.2%, 96% 98.1%, 94% 99.8%, 92% 98.3%, 90% 99.5%, 88% 97.9%, 86% 99.7%, 84% 98.2%, 82% 99.9%, 80% 98%,
    78% 99.4%, 76% 98.1%, 74% 99.8%, 72% 98.3%, 70% 99.5%, 68% 97.9%, 66% 99.7%, 64% 98.2%, 62% 99.9%, 60% 98%,
    58% 99.4%, 56% 98.1%, 54% 99.8%, 52% 98.3%, 50% 99.5%, 48% 97.9%, 46% 99.7%, 44% 98.2%, 42% 99.9%, 40% 98%,
    38% 99.4%, 36% 98.1%, 34% 99.8%, 32% 98.3%, 30% 99.5%, 28% 97.9%, 26% 99.7%, 24% 98.2%, 22% 99.9%, 20% 98%,
    18% 99.4%, 16% 98.1%, 14% 99.8%, 12% 98.3%, 10% 99.5%, 8% 97.9%, 6% 99.7%, 4% 98.2%, 2% 99.9%, 0 98%,
    1.1% 96%, 0 94%, .8% 92%, 0 90%, 1.2% 88%, 0 86%, .9% 84%, 0 82%, 1.1% 80%, 0 78%,
    .8% 76%, 0 74%, 1.2% 72%, 0 70%, .9% 68%, 0 66%, 1.1% 64%, 0 62%, .8% 60%, 0 58%,
    1.2% 56%, 0 54%, .9% 52%, 0 50%, 1.1% 48%, 0 46%, .8% 44%, 0 42%, 1.2% 40%, 0 38%,
    .9% 36%, 0 34%, 1.1% 32%, 0 30%, .8% 28%, 0 26%, 1.2% 24%, 0 22%, .9% 20%, 0 18%,
    1.1% 16%, 0 14%, .8% 12%, 0 10%, 1.2% 8%, 0 6%, .9% 4%
  );
}

/* Escala homogénea para todos los párrafos. */
p { font-size: 17.6px; }
.script { font-size: 41.8px; }
.intro { font-size: 18.7px; }
.date-row p { font-size: 15.4px; }
.eyebrow { font-size: 12.1px; }
.features p,
.hint { font-size: 16.9px; }
.game-title p,
.map-card > p:first-of-type { font-size: 12.1px; }
.map-card p:last-child { font-size: 19.4px; }
.rsvp p { font-size: 15.4px; }

/* Escala de lectura accesible. */
body {
  font-size: 21px;
  line-height: 1.7;
}

p {
  font-size: 26px;
  line-height: 1.7;
}

.script { font-size: 52px; }
.intro { font-size: 26px; }
.date-row p { font-size: 20px; }
.eyebrow { font-size: 16px; }
.features b { font-size: 22px; }
.features p,
.hint { font-size: 24px; }
.game-title h3 { font-size: 32px; }
.game-title p,
.map-card > p:first-of-type { font-size: 18px; }
.map-card p:last-child { font-size: 26px; }
.game-footer small { font-size: 20px; }
.game-footer button { font-size: 20px; }
.rsvp p { font-size: 24px; }
.rsvp label { font-size: 17px; }
.rsvp input,
.rsvp select { font-size: 22px; }
nav a:not(.nav-cta) { font-size: 19px; }
footer { font-size: 18px; }

h1 { font-size: clamp(54px, 6vw, 88px); }
h1,
h2,
h3,
.brand b,
.game-title h3 {
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
}
.adventure h2,
.games h2,
.map-card h2 { font-size: 48px; }
.rsvp h2 { font-size: 42px; }
.brand { font-size: 15px; }
.brand b { font-size: 27px; }

/* Mapa y acceso directo a la navegación. */
.map-embed {
  overflow: hidden;
  margin: 34px auto 28px;
  border: 3px solid #5b3219;
  border-radius: 6px 14px 8px 18px;
  background: #111;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

.gps-link {
  min-height: 56px;
  font-size: 18px;
}

.map-section {
  padding-right: 5vw;
  padding-left: 5vw;
}

.map-card {
  width: 80vw;
  max-width: none;
}

.features {
  max-width: 1320px;
  gap: 32px;
}

.features article {
  min-height: 290px;
  padding: 40px;
}

/* Zona de minijuegos: controles grandes y claros para dedos pequeños. */
.games-progress {
  max-width: 680px;
  margin: 0 auto 38px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(242, 183, 53, .55);
  border-radius: 18px 8px 16px 10px;
  background: rgba(0, 0, 0, .36);
  color: #fff0bc;
}

.games-progress > span { font-size: 32px; }
.games-progress b { color: var(--gold); font-size: 26px; }
.games-progress small { color: #f6e5c0; font-size: 15px; }

.game-layout { align-items: stretch; }

.mini-game {
  min-height: 580px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  touch-action: manipulation;
}

.mini-game .hint {
  min-height: 54px;
  margin: 0;
  color: #3f2717;
  font-size: 18px;
  line-height: 1.35;
}

.game-start,
.game-replay {
  min-height: 52px;
  padding: 11px 20px;
  border: 2px solid #754315 !important;
  border-radius: 5px 13px 6px 11px !important;
  background: linear-gradient(180deg, #ffe27d, #c88724) !important;
  box-shadow: 0 4px 0 #6f3b12 !important;
  color: #2b160c !important;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 18px !important;
  letter-spacing: 1px;
}

.game-start {
  padding-inline: 15px;
}

.game-replay { margin-left: auto; }
.game-footer { margin-top: auto; min-height: 48px; }
.game-footer small { font-size: 16px; }

.treasure-scene,
.coin-field {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 3px solid #5b3219;
  border-radius: 12px 24px 14px 20px;
  touch-action: none;
}

.treasure-scene {
  background:
    linear-gradient(rgba(244, 229, 158, .12), rgba(25, 71, 58, .18)),
    url('./assets/isla-aerea-caza-tesoro.webp') center / cover no-repeat;
  background-color: #338f98;
}

.treasure-scene::before {
  content: 'ISLA DEL TESORO';
  position: absolute;
  top: 12px;
  left: 50%;
  color: rgba(62, 62, 29, .58);
  font-family: 'Pirata One', serif;
  font-size: 18px;
  letter-spacing: 2px;
  transform: translateX(-50%) rotate(-3deg);
  text-shadow: 0 1px rgba(255, 247, 202, .6);
}

.hidden-treasure {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(14, 63, 62, .35);
  cursor: pointer;
  font-size: 34px;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.hidden-treasure:focus-visible,
.hidden-treasure:hover { outline: 3px dashed #ffe47a; outline-offset: 3px; }
.hidden-treasure.found { color: #fff; filter: drop-shadow(0 2px 1px #2f3415); transform: translate(-50%, -50%) scale(1.18) rotate(7deg); }
.hidden-treasure.mistake { opacity: .18; filter: grayscale(1); transform: translate(-50%, -50%) scale(.72); }

.treasure-targets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  color: #3f2717;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 18px;
}

.treasure-targets span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.treasure-targets .real-icon { width: 28px; height: 28px; }

.coin-field {
  min-height: 300px;
  background:
    linear-gradient(rgba(240, 231, 181, .58), rgba(103, 144, 88, .48)),
    url('./assets/ruta-isla.webp') center / min(62%, 360px) no-repeat,
    linear-gradient(145deg, #b7cfb0, #759b70);
}

.parrot-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  width: min(100%, 520px);
  margin: 4px auto 12px;
  padding: clamp(14px, 2vw, 22px);
  border: 3px solid #5b3219;
  border-radius: 20px 34px 24px 30px;
  background:
    linear-gradient(rgba(48, 94, 78, .58), rgba(31, 71, 69, .7)),
    url('./assets/isla-aerea-caza-tesoro.webp') center / cover;
}

.parrot-pad {
  min-height: clamp(104px, 16vh, 154px);
  display: grid;
  place-items: center;
  border: 3px solid #503015;
  border-radius: 24px 14px 28px 16px;
  box-shadow: inset 0 2px rgba(255, 255, 255, .24), 0 5px 0 rgba(57, 30, 12, .85);
  cursor: pointer;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
  touch-action: manipulation;
}

.parrot-pad:hover,
.parrot-pad:focus-visible { filter: brightness(1.13); outline: 3px dashed #fff0a3; outline-offset: 3px; }
.parrot-pad:active { transform: translateY(4px) scale(.98); box-shadow: inset 0 2px rgba(0, 0, 0, .18), 0 1px 0 rgba(57, 30, 12, .85); }
.parrot-pad--sun { background: linear-gradient(145deg, #f3be40, #ad641b); }
.parrot-pad--sea { background: linear-gradient(145deg, #4aa7b8, #236080); }
.parrot-pad--leaf { background: linear-gradient(145deg, #79ad51, #3f7136); }
.parrot-pad--coral { background: linear-gradient(145deg, #df7157, #9f3e33); }

.parrot-pad .real-icon {
  width: clamp(68px, 10vw, 98px);
  height: clamp(68px, 10vw, 98px);
  filter: drop-shadow(0 3px 1px rgba(47, 24, 9, .55));
}

.parrot-pad.is-singing {
  transform: translateY(-5px) scale(1.06) rotate(-2deg);
  filter: brightness(1.3) saturate(1.28);
  box-shadow: inset 0 0 0 3px rgba(255, 249, 192, .72), 0 0 24px rgba(255, 231, 104, .85), 0 7px 0 rgba(57, 30, 12, .85);
}

.catcher {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 68px;
  height: 54px;
  place-items: center;
  border-radius: 18px 18px 8px 8px;
  background: none;
  box-shadow: none;
  font-size: 42px;
  transform: translateX(-50%);
  transition: left .12s ease-out;
}

.falling-item {
  position: absolute;
  top: -48px;
  z-index: 1;
  font-size: 36px;
  animation: item-fall var(--fall-duration, 1.75s) linear forwards;
  pointer-events: none;
}

.is-coin { filter: drop-shadow(0 2px 1px rgba(61, 41, 5, .45)); }
.is-junk { filter: grayscale(.4); }

@keyframes item-fall { to { transform: translateY(var(--fall-distance, 350px)) rotate(var(--spin-angle, 300deg)); } }

.memory { margin: 4px 0 12px; gap: 10px; }
.memory button {
  min-width: 50px;
  border: 2px solid #6e421f;
  border-radius: 10px 16px 9px 14px;
  background: #245d62;
  box-shadow: 0 3px 0 #13383b;
  font-size: clamp(22px, 4vw, 32px);
  touch-action: manipulation;
}

.memory button.flipped { background: #ffd66c; }

.memory-card-image {
  display: block;
  width: 86%;
  aspect-ratio: 1;
  height: auto;
  margin: auto;
  background-image: url('./assets/parejas-oceano-sprite.webp');
  background-position: var(--sprite-x) var(--sprite-y);
  background-repeat: no-repeat;
  background-size: 400% 200%;
}

.memory button > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

/* Flecha de retorno fija y táctil. */
#back-top {
  position: fixed;
  right: max(20px, 3vw);
  bottom: max(20px, 3vw);
  z-index: 40;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid rgba(223, 180, 87, .64);
  border-radius: 16px 8px 18px 10px;
  background:
    repeating-linear-gradient(100deg, rgba(255, 224, 140, .08) 0 1px, transparent 1px 10px),
    rgba(48, 29, 17, .72);
  box-shadow: 0 3px 10px rgba(15, 8, 4, .28), inset 0 0 0 1px rgba(255, 205, 103, .14);
  backdrop-filter: blur(5px);
  color: #ffd76b;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, transform .18s ease;
}

#back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#back-top span {
  display: block;
  font-family: Georgia, serif;
  font-size: 37px;
  line-height: 1;
  text-shadow: 1px 2px #251307;
  transform: rotate(-90deg);
}

#back-top:hover,
#back-top:focus-visible { transform: translateY(-4px); outline: 3px solid #ffe181; outline-offset: 3px; }

/* El control de música comparte la madera tallada de la flecha de retorno. */
#audio-toggle {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(223, 180, 87, .64);
  border-radius: 16px 8px 18px 10px;
  background:
    repeating-linear-gradient(100deg, rgba(255, 224, 140, .08) 0 1px, transparent 1px 10px),
    rgba(48, 29, 17, .72);
  box-shadow: 0 3px 10px rgba(15, 8, 4, .28), inset 0 0 0 1px rgba(255, 205, 103, .14);
  backdrop-filter: blur(5px);
  color: #ffd76b;
  font-size: 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .18s ease, background .18s ease;
}

#audio-toggle.is-header-visible {
  opacity: 1;
  pointer-events: auto;
}

#audio-toggle:hover,
#audio-toggle:focus-visible {
  background: rgba(117, 68, 35, .86);
  outline: 3px solid #ffe181;
  outline-offset: 3px;
  transform: translateY(-4px);
}

#audio-toggle[aria-pressed='false'] { color: #d9b874; }

@media (max-width: 560px) {
  #audio-toggle { width: 56px; height: 56px; }
}

/* Hero en dos niveles: la invitación precede al mapa, sin solaparse con él. */
.hero {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  padding: 35px 0 58px;
}

.hero-copy {
  width: min(80vw, 1120px);
  padding: 0 0 32px;
  align-items: center;
  text-align: center;
}

.hero-copy .intro { max-width: 720px; }
.hero-copy .date-row { justify-content: center; }
.hero h1 {
  color: #c4c8c6;
  text-shadow: 2px 4px rgba(0, 0, 0, .6);
}
.hero::before { display: none; }

.hero-details {
  width: min(80vw, 800px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 34px;
  text-align: center;
}

.hero-details .intro { max-width: 720px; }
.hero-details .date-row { justify-content: center; }

.hero-btn {
  width: min(100%, 520px);
  min-height: 94px;
  padding: 22px 38px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: .8px;
}

.adventure h2 {
  max-width: 1200px;
  margin-inline: auto;
  font-size: clamp(64px, 7vw, 112px);
  line-height: .92;
}

.map-card .compass {
  font-size: clamp(86px, 8vw, 118px);
}

.route {
  gap: clamp(8px, 1.6vw, 22px);
}

.route img {
  width: clamp(84px, 11vw, 132px);
  height: clamp(84px, 11vw, 132px);
}

.route b {
  flex: 0 1 115px;
  min-width: 0;
  white-space: nowrap;
}

.scene {
  width: min(80vw, 1280px);
  min-height: 0;
  padding: 0;
}

.scene img {
  width: 100%;
  transform: none;
}


@media (max-width: 900px) {
  header {
    padding: 0 5vw 0 78px;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

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

  .hero-copy {
    padding: 58px 8vw 34px;
  }

  .scene {
    min-height: 420px;
    padding: 0 6vw 44px;
  }

  .scene img {
    width: min(110%, 650px);
    transform: none;
  }

  .features,
  .game-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-layout > .game-card {
    min-height: 0;
  }

  .iframe-game {
    grid-column: auto;
  }

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

  .bottle {
    display: none;
  }

  .rsvp form {
    grid-template-columns: 1fr;
  }

  .map-section {
    padding: 50px 5vw;
  }

  .compass {
    opacity: .18;
  }
}

@media (max-width: 560px) {
  header {
    min-height: 74px;
    padding-left: 72px;
  }

  .audio-toggle {
    top: 13px;
    left: 12px;
    width: 44px;
    height: 44px;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 1.4px;
  }

  .brand > span {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .brand b {
    font-size: 22px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .hero-copy {
    padding-top: 42px;
  }

  .script {
    font-size: 40px;
  }

  .date-row {
    align-items: flex-start;
  }

  .scene {
    min-height: 320px;
  }

  .adventure,
  .games {
    padding: 58px 5vw;
  }

  .game-layout { grid-template-columns: 1fr; }
  .mini-game { min-height: 0 !important; }
  .games-progress { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
  .games-progress small { flex-basis: 100%; }
  .map-embed iframe { height: 260px; }
  #back-top { width: 56px; height: 56px; right: 14px; bottom: 40px; }

  .adventure h2,
  .games h2,
  .map-card h2 {
    font-size: 40px;
  }

  .features article,
  .game-card {
    padding: 22px;
  }

  .map-card {
    padding: 36px 16px;
  }

  .route b {
    max-width: 58px;
    letter-spacing: 1px;
  }

  .game-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .iframe-shell iframe {
    min-height: 520px;
  }

  .rsvp {
    padding: 52px 7vw;
  }

  footer {
    min-height: 96px;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    min-height: 52px;
    padding: 12px 16px;
    font-size: 17px !important;
  }
}

/* Acabados de pergamino y proporción, después de las reglas adaptables base. */
.map-card {
  padding-bottom: 100px;
}

.rsvp {
  width: min(80vw, 1320px);
  margin: 46px auto 30px;
  border: 0;
  border-radius: 0;
  padding: 72px 7vw;
  background-color: transparent;
  background-image: url('./assets/pergamino-laterales-transparentes.webp');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: none;
  color: #2b160c;
}

.rsvp .eyebrow.light,
.rsvp h2,
.rsvp p,
.rsvp label { color: #4a2919; }

.rsvp h2 { text-shadow: 0 1px rgba(255, 244, 198, .9); }

.rsvp input,
.rsvp select {
  border-color: #8c5d2c;
  background: rgba(255, 247, 211, .72);
  color: #2b160c;
}

.rsvp input::placeholder { color: rgba(70, 39, 20, .62); }
.rsvp .success { background: rgba(112, 68, 27, .13); }
.rsvp .success span { color: #4a2919; }

@media (max-width: 560px) {
  .map-card { padding-bottom: 72px; }
  .rsvp { width: 90vw; padding: 54px 9vw; }
}

.mini-game .game-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mini-game .game-footer small,
.mini-game .game-footer .game-replay {
  margin-inline: auto;
  text-align: center;
}

.stage-close {
  min-height: 76px;
  margin: 0 0 28px;
  padding: 18px 32px;
  font-size: 26px;
}

@media (max-width: 560px) {
  .stage-close {
    min-height: 66px;
    margin-bottom: 22px;
    padding: 16px 24px;
    font-size: 20px;
  }
}

/* La salida del minijuego se resuelve con un fundido, sin cerrar el telón. */
.game-stage.is-closing .game-stage__curtain {
  opacity: 0;
  transition: opacity .25s ease;
}

.game-stage.is-closing .game-stage__content {
  opacity: 0;
  transform: scale(.98);
  transition: opacity .25s ease, transform .25s ease;
}

@media (max-width: 560px) {
  .adventure {
    padding: 54px 6vw;
  }

  .adventure > .eyebrow {
    margin-bottom: 12px;
    font-size: 25px;
    letter-spacing: 1px;
  }

  .adventure h2 {
    max-width: 100%;
    font-size: clamp(48px, 14vw, 60px);
    line-height: .98;
  }

  .adventure .section-intro {
    margin-bottom: 34px;
    font-size: 20px;
    line-height: 1.45;
  }

  .features {
    max-width: 460px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features article {
    align-items: flex-start;
    gap: 16px;
    padding: 26px 24px;
  }

  .features p {
    font-size: 20px;
    line-height: 1.45;
  }
}

/* Iconos pintados: sustituyen los emojis de la interfaz. */
.real-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -.14em;
  background: center / 400% 300% no-repeat url('./assets/iconos-piratas-reales.webp');
}

.real-icon--skull { background-position: 0 0; }
.real-icon--coconut { background-position: 33.333% 0; }
.real-icon--gift { background-position: 66.667% 0; }
.real-icon--puzzle { background-position: 100% 0; }
.real-icon--target { background-position: 0 50%; }
.real-icon--broom { background-position: 33.333% 50%; }
.real-icon--spyglass { background-position: 66.667% 50%; }
.real-icon--route { background-position: 100% 50%; }
.real-icon--bottle { background-position: 0 100%; }
.real-icon--audio-off { background-position: 33.333% 100%; }
.real-icon--audio-on { background-position: 66.667% 100%; }
.real-icon--sparkle { background-position: 100% 100%; }

.real-icon--anchor,
.real-icon--parrot,
.real-icon--map,
.real-icon--gem,
.real-icon--coin,
.real-icon--boat,
.real-icon--compass,
.real-icon--chest {
  background-image: url('./assets/parejas-oceano-sprite.webp');
  background-size: 400% 200%;
}

.real-icon--anchor { background-position: 0 0; }
.real-icon--parrot { background-position: 33.333% 0; }
.real-icon--map { background-position: 66.667% 0; }
.real-icon--gem { background-position: 100% 0; }
.real-icon--coin { background-position: 0 100%; }
.real-icon--boat { background-position: 33.333% 100%; }
.real-icon--compass { background-position: 66.667% 100%; }
.real-icon--chest { background-position: 100% 100%; }

.welcome-curtain__message .real-icon--skull { width: 74px; height: 74px; }
.features article > .real-icon,
.features article > span > .real-icon { width: 104px; height: 104px; }
.game-icon > .real-icon { width: 96px; height: 96px; }
.games-progress > .real-icon { width: 38px; height: 38px; }
.game-roster article > .real-icon { width: 44px; height: 44px; margin-inline: auto; }
.bottle > .real-icon {
  width: 163px;
  height: 163px;
}

@media (min-width: 901px) {
  .rsvp {
    grid-template-columns: 180px minmax(0, 1fr) minmax(320px, 1.3fr);
  }
}

.game-layout > .mini-game {
  padding: clamp(52px, 5vw, 64px);
}

.features b {
  font-size: 30px;
  line-height: 1;
}

.features p {
  font-size: 22px;
  line-height: 1.45;
}

.mini-game {
  text-align: center;
}

.mini-game .game-title {
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.mini-game .hint {
  text-align: center;
}

.mini-game .game-title p { font-size: 32px; }
.mini-game .game-title h3 { font-size: 54px; }
.mini-game .hint { font-size: 40px; }
.mini-game .game-start,
.mini-game .game-replay { font-size: 27px !important; }
.mini-game .game-footer small { font-size: 39px !important; }

.rsvp label {
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: .8px;
}

.rsvp input,
.rsvp select {
  font-family: 'IM Fell English', Georgia, serif;
}

@media (max-width: 560px) {
  .game-layout > .mini-game { padding: 42px 36px; }
  .features b { font-size: 26px; }
  .features p { font-size: 21px; }
  .mini-game .game-title p { font-size: 28px; }
  .mini-game .game-title h3 { font-size: 46px; }
  .mini-game .hint { font-size: 34px; }
  .mini-game .game-start,
  .mini-game .game-replay { font-size: 24px !important; }
  .mini-game .game-footer small { font-size: 32px !important; }
  .rsvp label { font-size: 28px; }
}
.compass.real-icon { width: 118px; height: 118px; }
.hidden-treasure > .real-icon { width: 46px; height: 46px; }
.audio-toggle > .real-icon {
  width: 34px;
  height: 34px;
  vertical-align: middle;
  transform: rotate(-10deg);
}

.map-card .compass { display: none; }

/* Los tableros solo existen visualmente cuando se inicia la partida. */
.mini-game [hidden] { display: none !important; }

/* La cabecera de juegos comparte el dibujo tipográfico del nombre del lugar,
   conservando el dorado propio de esta sección. */
.games h2 {
  margin: 12px 0;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: normal;
  text-transform: none;
}

@media (max-width: 560px) {
  .games h2 { font-size: 40px; }
}

.game-stage {
  overflow: hidden;
}

/* Una franja de mar SVG animada cierra la invitación. */
footer {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

#footer-water {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 60px;
  pointer-events: none;
  overflow: visible;
  background: transparent;
}

footer > :not(#footer-water):not(#back-top) { position: relative; z-index: 3; }
#footer-water svg { display: block; width: 100%; height: 60px; overflow: hidden; }
#footer-wave-back { opacity: .92; }
#footer-wave { filter: drop-shadow(0 -1px 0 rgba(234, 255, 255, .5)); }

.footer-ship {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  left: -170px;
  width: clamp(96px, 11vw, 150px);
  pointer-events: none;
  animation: footer-ship-sail 60s linear infinite;
}

.footer-ship img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 3px rgba(0, 22, 31, .62));
  animation: footer-ship-bob 6s ease-in-out infinite;
}

@keyframes footer-ship-sail {
  to { transform: translateX(calc(100vw + 340px)); }
}

@keyframes footer-ship-bob {
  0%, 100% { transform: translateY(1px) rotate(-2deg); }
  25% { transform: translateY(-4px) rotate(2deg); }
  50% { transform: translateY(2px) rotate(-1.5deg); }
  75% { transform: translateY(-3px) rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-ship { left: calc(50% - 65px); animation: none; }
  .footer-ship img { animation: none; }
}

/* Ajuste móvil final: conserva jerarquía, legibilidad y márgenes de toque sin
   forzar proporciones de escritorio en pantallas estrechas. */
@media (max-width: 560px) {
  html,
  body { max-width: 100%; overflow-x: clip; }

  img,
  iframe { max-width: 100%; }

  .map-section { padding-inline: 4vw; }

  .map-card {
    width: 100%;
    box-sizing: border-box;
    padding: 42px clamp(18px, 6vw, 30px) 72px;
  }

  .map-card h2 {
    font-size: clamp(32px, 10.5vw, 42px);
    line-height: .98;
    overflow-wrap: anywhere;
  }

  .map-card p:last-child {
    font-size: clamp(20px, 6.4vw, 26px);
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .map-embed,
  .map-embed iframe,
  .gps-link { width: 100%; }

  .map-card .gps-link {
    min-height: 66px;
    padding-inline: 14px;
    font-size: clamp(20px, 6.3vw, 26px) !important;
    text-align: center;
  }

  .games { padding-inline: 6vw; }

  .game-layout { width: min(100%, 460px); }

  .game-layout > .mini-game { padding: 32px clamp(22px, 7vw, 34px); }

  .mini-game .game-title p { font-size: clamp(20px, 6.4vw, 27px); }
  .mini-game .game-title h3 { font-size: clamp(34px, 10.8vw, 44px); line-height: .96; }
  .mini-game .hint { font-size: clamp(21px, 7.2vw, 29px); line-height: 1.2; }
  .mini-game .game-start,
  .mini-game .game-replay { min-height: 52px; font-size: clamp(19px, 6vw, 23px) !important; }
  .mini-game .game-footer { min-height: 0; padding: 16px 0 4px; }
  .mini-game .game-footer small { font-size: clamp(20px, 6.8vw, 27px) !important; }

  .rsvp {
    width: 94vw;
    padding: 46px 8vw 54px;
    box-sizing: border-box;
  }

  .rsvp h2 { font-size: clamp(38px, 11vw, 48px); line-height: .96; }
  .rsvp p { font-size: clamp(20px, 6.1vw, 25px); }
  .rsvp label { font-size: clamp(23px, 7vw, 28px); }
  .rsvp input,
  .rsvp select { height: 54px; font-size: clamp(18px, 5.6vw, 22px); }
}

@media (max-width: 360px) {
  .hero-copy { padding-inline: 6vw; }
  .hero-btn { min-height: 78px; padding: 16px; font-size: 26px; }
  .features article { gap: 12px; padding: 22px 18px; }
  .features article > .real-icon,
  .features article > span > .real-icon { width: 82px; height: 82px; }
  .mini-game .game-title h3 { font-size: 35px; }
  .mini-game .hint { font-size: 23px; }
  .rsvp { padding-inline: 7vw; }
}

@media (min-width: 561px) and (max-width: 900px) {
  .games { padding-inline: 6vw; }
  .game-layout { max-width: 760px; gap: 22px; }
  .game-layout > .mini-game { padding: 38px 30px; }
  .mini-game .game-title p { font-size: 25px; }
  .mini-game .game-title h3 { font-size: 42px; line-height: .98; }
  .mini-game .hint { font-size: 28px; line-height: 1.22; }
  .mini-game .game-start,
  .mini-game .game-replay { font-size: 22px !important; }
  .mini-game .game-footer small { font-size: 27px !important; }
  .rsvp { width: min(90vw, 720px); }
}

@media (min-width: 561px) and (max-width: 800px) {
  .features,
  .game-layout { max-width: 520px; grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .games { padding-inline: 6vw; }
  .game-layout { gap: 24px; }
  .game-layout > .mini-game { padding: 42px 34px; }
  .mini-game .game-title p { font-size: 26px; }
  .mini-game .game-title h3 { font-size: 46px; line-height: .98; }
  .mini-game .hint { font-size: 30px; line-height: 1.22; }
  .mini-game .game-start,
  .mini-game .game-replay { font-size: 23px !important; }
  .mini-game .game-footer small { font-size: 29px !important; }
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  header {
    position: sticky;
    padding: 8px max(16px, 5vw) 12px 78px;
    gap: 12px;
  }

  .nav-toggle {
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    margin-left: auto;
    place-content: center;
    gap: 6px;
    border: 2px solid #dfb457;
    border-radius: 10px 5px 12px 6px;
    background: rgba(44, 25, 14, .9);
    box-shadow: inset 0 0 0 1px rgba(255, 222, 136, .2);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 999px;
    background: #ffe3a1;
    transition: transform .2s ease, opacity .2s ease;
  }

  header.is-nav-open { clip-path: none; }
  header.is-nav-open .nav-toggle span:first-child { transform: translateY(9px) rotate(45deg); }
  header.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.is-nav-open .nav-toggle span:last-child { transform: translateY(-9px) rotate(-45deg); }

  header nav {
    position: absolute;
    top: calc(100% - 6px);
    right: max(12px, 4vw);
    left: max(12px, 4vw);
    z-index: 3;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 2px solid rgba(223, 180, 87, .78);
    border-radius: 8px 18px 10px 16px;
    background: linear-gradient(145deg, #56311c, #21140d);
    box-shadow: 0 14px 25px rgba(0, 0, 0, .42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
  }

  header.is-nav-open nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  header nav a:not(.nav-cta) {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 225, 151, .2);
    color: #ffe8ae;
    font-size: 22px;
    text-align: center;
    transform: none;
  }

  header nav .nav-cta {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    font-size: 21px !important;
  }
}

@media (max-width: 560px) {
  header { min-height: 74px; }
  .nav-toggle { width: 46px; height: 46px; }
  header nav a:not(.nav-cta) { font-size: 20px; }
}

.game-stage__content {
  height: 100%;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.game-stage .mini-game {
  min-height: 0 !important;
  height: 100%;
  max-height: none;
  padding: clamp(16px, 2.5vh, 30px);
  gap: clamp(6px, 1.2vh, 12px);
  overflow: hidden;
}

.game-stage .treasure-scene,
.game-stage .coin-field,
.game-stage .parrot-board {
  min-height: 0;
  flex: 1 1 auto;
}

.game-stage .parrot-board { margin: 0 auto; }

.game-stage .memory {
  width: min(100%, 50vh);
  max-width: 680px;
  margin: 0 auto;
}

.game-stage .game-title {
  gap: clamp(4px, 1vh, 10px);
}

.game-stage .game-title p { font-size: clamp(18px, 2.5vh, 27px); }
.game-stage .game-title h3 { font-size: clamp(28px, 4vh, 42px); }
.game-stage .hint {
  min-height: 0;
  font-size: clamp(16px, 2.5vh, 24px);
  line-height: 1.2;
}

.game-stage .game-start,
.game-stage .game-replay {
  min-height: clamp(42px, 6vh, 52px);
  padding-block: 7px;
  font-size: clamp(16px, 2.5vh, 22px) !important;
}

.game-stage .game-footer {
  min-height: 0;
  margin-top: 0;
  padding: 6px;
  gap: 5px;
}

.game-stage .game-footer small {
  font-size: clamp(15px, 2.2vh, 21px) !important;
  line-height: 1.15;
}

.guybrush-easter-egg {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}

.guybrush-easter-egg.is-visible { opacity: 1; }

.guybrush-easter-egg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cuenta atrás sobre el pergamino que marca la fecha de la aventura. */
.countdown {
  padding: 92px 6vw;
  text-align: center;
}

.countdown__card {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 68px) clamp(20px, 6vw, 72px);
  box-sizing: border-box;
  color: #4a2919;
}

.countdown h2 {
  margin: 0 0 42px;
  color: #4a2919;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
}

.countdown__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  max-width: 860px;
  margin: auto;
}

.countdown__units > div {
  min-width: 0;
  padding: 12px 8px 4px;
}

.countdown__units b,
.countdown__units span {
  display: block;
}

.countdown__units b {
  color: #593019;
  font-family: 'Pirata One', 'IM Fell English', Georgia, serif;
  font-size: clamp(56px, 8vw, 108px);
  font-weight: 400;
  line-height: .9;
}

.countdown__units span {
  margin-top: 9px;
  color: #8b4d25;
  font-family: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  font-size: clamp(13px, 1.55vw, 18px);
  font-weight: 800;
  letter-spacing: 1px;
}

.countdown__status {
  margin: 28px 0 0;
  color: #62371e;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.25;
}

/* Los dos antetítulos solicitados se muestran al doble de su escala anterior. */
#mapa .map-card > p:first-of-type { font-size: 36px; }
#juegos > .eyebrow { font-size: 32px; }

@media (max-width: 560px) {
  .countdown__card { padding: 38px 18px 48px; }
  .countdown__units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mapa .map-card > p:first-of-type { font-size: 36px; line-height: 1.05; }
  #juegos > .eyebrow { font-size: 32px; line-height: 1.1; }
}

/* El aviso de bienvenida usa el mismo pergamino transparente de los juegos. */
.welcome-curtain__message {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url('./assets/pergamino-laterales-transparentes.webp');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  color: #2b160c;
}

.welcome-curtain__message p {
  color: #822d16;
  text-shadow: 0 1px 0 rgba(255, 239, 182, .9);
}

.welcome-curtain__message h1 {
  color: #2b160c;
  text-shadow: 0 1px 0 rgba(255, 244, 198, .92);
}

.hero-details .intro { font-size: 52px; }
