:root {
  font-family: system-ui, sans-serif;
  color: #183329;
  background: #f7f4ea;
  --bosque: #102d24;
  --oro: #e5c27c;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 3px solid #bd8439; outline-offset: 5px; }
.saltar { position: absolute; left: 1rem; top: 1rem; padding: .6rem; background: white; z-index: 3; transform: translateY(-200%); }
.saltar:focus { transform: none; }
.cabecera { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem clamp(1rem, 5vw, 5rem); }
.logo img { width: clamp(11rem, 25vw, 18rem); display: block; }
nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(.85rem, 3vw, 2.4rem); }
nav a { padding: .45rem 0; text-decoration: none; font-weight: 650; }
nav a:hover, nav a[aria-current] { box-shadow: 0 2px #94713c; }
.portada { display: grid; grid-template-columns: 1fr 1.15fr; background: #0b211a; color: #f9f3e3; min-height: 34rem; }
.portada-texto { align-self: center; padding: clamp(2rem, 6vw, 7rem) 1.5rem clamp(2.5rem, 6vw, 7rem) clamp(1rem, 6vw, 6rem); }
.etiqueta { margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .13em; font-size: .77rem; font-weight: 750; }
.portada .etiqueta { color: var(--oro); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { font-size: clamp(2.75rem, 7vw, 6.65rem); line-height: .98; letter-spacing: -.055em; margin: 0 0 1.35rem; }
h1 em { font-style: normal; color: var(--oro); }
.entrada { font-size: clamp(1rem, 1.5vw, 1.24rem); max-width: 39rem; line-height: 1.65; }
.boton { display: inline-flex; gap: 1rem; align-items: center; width: fit-content; padding: .9rem 1.2rem; margin-top: .6rem; border-radius: .3rem; font: inherit; font-weight: 750; background: var(--oro); color: #172b22; border: 0; text-decoration: none; }
a.boton:hover { background: #f4d99e; }
.boton:disabled { background: #e4e0d2; color: #4e564d; }
.escena { position: relative; overflow: hidden; min-height: 23rem; }
.escena img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.escena::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b211a, transparent 28%); pointer-events: none; }
.destello { position: absolute; z-index: 1; height: .3rem; width: .3rem; border-radius: 50%; background: #ffe6a7; box-shadow: 0 0 12px 4px #e8c77780; pointer-events: none; animation: brillo 4s ease-in-out infinite alternate; }
.uno { left: 31%; top: 70%; }
.dos { left: 75%; top: 25%; animation-delay: -1s; }
.tres { left: 83%; top: 73%; animation-delay: -2s; }
@keyframes brillo { from { opacity: .2; transform: translateY(0); } to { opacity: .9; transform: translateY(-.6rem); } }
.franja { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.5rem clamp(1rem, 6vw, 6rem); border-bottom: 1px solid #d8d6ca; }
.franja p { margin: 0; font-weight: 700; }
.franja p span { display: block; margin-top: .25rem; font-weight: 400; }
.interior { width: min(90%, 72rem); margin: 0 auto; padding: clamp(2.5rem, 6vw, 6rem) 0; }
.interior h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.presentacion { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.emblema { width: min(26vw, 15rem); height: auto; display: block; border-radius: .5rem; }
.tarjetas { margin: 2.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.tarjetas article, .inscripcion { padding: clamp(1.3rem, 4vw, 2.5rem); background: #fffdf6; border-top: 3px solid #347056; }
h2 { margin: 0 0 .75rem; font-size: 1.75rem; }
article p, .contacto address { line-height: 1.7; }
.contacto { display: flex; flex-wrap: wrap; gap: 2rem 5rem; background: var(--bosque); color: #f7f4ea; padding: 2rem; }
address { font-style: normal; margin-bottom: .55rem; }
.estado { color: #48594e; }
footer { padding: 1.3rem clamp(1rem, 6vw, 6rem); color: #f6f4eb; background: var(--bosque); font-size: .87rem; }
@media (max-width: 700px) {
  .cabecera { flex-wrap: wrap; }
  .portada, .presentacion { grid-template-columns: 1fr; }
  .escena { min-height: clamp(17rem, 70vw, 29rem); }
  .escena::after { background: linear-gradient(180deg, #0b211a, transparent 26%); }
  .emblema { width: 9rem; }
}
@media (prefers-reduced-motion: reduce) { .destello { animation: none; } }
@media (prefers-reduced-motion: no-preference) {
  .escena img { animation: acercamiento 16s ease-in-out infinite alternate; }
  @keyframes acercamiento { to { transform: scale(1.055); } }
}
