/* Hacienda Live. Night sky blue from the dance-floor film, bulb cream for text, one amber for the lights. */
:root {
  --noche: #10304d;
  --hondo: #0b2238;
  --papel: #f2e6cf;
  --neblina: #a9b6c4;
  --foco: #f0b04a;
  --raya: rgba(242, 230, 207, 0.28);
  --cartel: "Avenir Next Condensed", "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --lectura: "Hoefler Text", Garamond, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--papel);
  font: 1.15rem/1.6 var(--lectura);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--foco); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }

.menu { font: 600 1.05rem/1 var(--cartel); font-stretch: condensed; }
.menu a { text-decoration: none; margin-left: 1.25rem; }
.menu a:hover { text-decoration: underline; }

/* ---- portada: the stage ---- */
.escenario {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  background: var(--hondo);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.clip, .quieta {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}
.quieta { display: none; }
.escenario::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(to top, var(--noche) 4%, rgba(16, 48, 77, 0.72) 42%, rgba(16, 48, 77, 0));
}
.escenario .menu {
  position: absolute;
  top: 1.2rem; right: clamp(1rem, 3vw, 2.5rem);
  z-index: 2;
}
.cartel {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}
.cartel h1 {
  margin: 0;
  font: 700 clamp(2.6rem, 12.5vw, 11rem)/0.84 var(--cartel);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 9ch;
}
.cartel p { margin: 0.9rem 0 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 26rem; }

/* ---- the string of bulbs between the stage and the programme ---- */
.guirnalda {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(0.5rem, 3vw, 2rem);
  height: 3.2rem;
}
.guirnalda::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1.3rem;
  height: 2.6rem;
  border-bottom: 1px solid var(--raya);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.guirnalda i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--foco);
  box-shadow: 0 0 0.6rem 0.15rem rgba(240, 176, 74, 0.45);
  margin-top: calc(1.2rem - 1.15rem * (1 - sin(var(--n) * 180deg / 13)));
}

/* ---- portada: the programme ---- */
.programa { max-width: 66rem; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.programa h2 {
  margin: 0 0 1.2rem;
  font: 600 clamp(1.8rem, 4vw, 2.6rem)/1 var(--cartel);
  font-stretch: condensed;
}
.programa ol { list-style: none; margin: 0; padding: 0; }
.programa li { border-top: 1px dotted var(--raya); }
.programa li:last-child { border-bottom: 1px dotted var(--raya); }
.programa li a {
  display: grid;
  grid-template-columns: 2.2rem 1fr 4.5rem;
  grid-template-areas: "num tit cuadro" "num ent cuadro";
  column-gap: 0.8rem;
  align-items: start;
  padding: 1.3rem 0;
  text-decoration: none;
}
.num { grid-area: num; font: 700 1.5rem/1.1 var(--cartel); font-stretch: condensed; color: var(--foco); }
.tit { grid-area: tit; font: 600 clamp(1.45rem, 3vw, 2.1rem)/1.08 var(--cartel); font-stretch: condensed; }
.ent { grid-area: ent; margin-top: 0.45rem; color: var(--neblina); font-size: 1.02rem; }
.cuadro { grid-area: cuadro; }
.cuadro img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.programa li a:hover .tit, .programa li a:focus-visible .tit { text-decoration: underline; text-decoration-color: var(--foco); }
@media (min-width: 52rem) {
  .programa li a { grid-template-columns: 5rem 1fr 10rem; column-gap: 2rem; padding: 1.8rem 0; }
  .num { font-size: 2.6rem; }
  .ent { max-width: 34rem; font-size: 1.1rem; }
}

/* ---- inner pages ---- */
.cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--hondo);
}
.marca {
  font: 700 1.7rem/1 var(--cartel);
  font-stretch: condensed;
  text-transform: uppercase;
  text-decoration: none;
}
.cabecera .menu a:first-child { margin-left: 0; }

.texto { max-width: 38rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 1.25rem) 4.5rem; }
.texto h1 {
  margin: 0;
  font: 700 clamp(2.4rem, 7vw, 4.2rem)/0.98 var(--cartel);
  font-stretch: condensed;
}
.entrada { margin: 1rem 0 2.2rem; font-size: 1.3rem; line-height: 1.45; color: var(--neblina); }
.texto h2 { margin: 2.5rem 0 0.5rem; font: 600 1.6rem/1.15 var(--cartel); font-stretch: condensed; }
.texto ul, .texto ol { padding-left: 1.4rem; }
.texto li { margin-bottom: 0.5rem; }
.texto li::marker { color: var(--foco); }

.foto-arriba { max-width: 62rem; margin: 0 auto; }
.foto-arriba img { width: 100%; }
.con-pie { margin: 0 0 2.2rem; }
.con-pie figcaption { margin-top: 0.55rem; font-size: 0.95rem; color: var(--neblina); }
figure.dentro { margin: 2.2rem 0; }
@media (min-width: 62rem) {
  .con-pie { margin-left: -10rem; margin-right: -10rem; }
  figure.dentro { margin-left: -4rem; margin-right: -4rem; }
}

.indice h2 { margin-top: 2rem; }
.indice h2 a { text-decoration: none; }
.indice h2 a:hover { text-decoration: underline; }
.indice p { margin: 0.3rem 0 0; color: var(--neblina); }

.pie-de-pagina {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px dotted var(--raya);
  font: 600 1rem/1 var(--cartel);
  font-stretch: condensed;
  color: var(--neblina);
}

/* ---- motion: the film and the bulbs only, text stays put ---- */
@media (prefers-reduced-motion: reduce) {
  .clip { display: none; }
  .quieta { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .guirnalda i {
    animation: hl-titila 3.4s ease-in-out infinite alternate;
    animation-delay: calc(var(--n) * -0.53s);
  }
  @keyframes hl-titila {
    0%   { opacity: 1; }
    55%  { opacity: 0.82; }
    100% { opacity: 0.94; box-shadow: 0 0 0.9rem 0.25rem rgba(240, 176, 74, 0.55); }
  }
}
