@font-face {
  font-family: Pista;
  src: url(/barlow-condensed.woff2);
}
@font-face {
  font-family: DM;
  src: url(/dm-sans.woff2);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  --papel: #f4f6fa;
  --negro: #101f34;
  --lima: #bdcddd;
  --linea: #b4bfcc;
  margin: 0;
  color: var(--negro);
  background: var(--papel);
  font:
    16px/1.45 DM,
    Arial,
    sans-serif;
}
.ancho {
  width: min(1500px, 94%);
  margin-inline: auto;
}
a,
button {
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
header,
nav,
.marca,
.titulo,
.banda,
footer,
.flechas,
.rangos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header {
  min-height: 70px;
}
.marca {
  font:
    30px/0.95 Pista,
    sans-serif;
  text-transform: uppercase;
}
.marca i {
  width: 32px;
  height: 20px;
  background: repeating-linear-gradient(
    110deg,
    transparent 0 4px,
    currentColor 4px 10px
  );
  transform: skewX(-12deg);
}
nav a {
  padding: 8px 12px;
  font-size: 14px;
}
nav a:hover,
footer a:hover {
  text-decoration: underline;
}
.nav-num {
  border: 1px solid;
  border-radius: 20px;
}
h1,
h2,
h3,
figure,
p {
  margin: 0;
}
small,
.origen,
.talon,
output,
.rangos button,
.orden {
  font:
    12px/1.3 Consolas,
    monospace;
}
.afiche {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr 50px;
  overflow: hidden;
  background: var(--lima);
  min-height: 445px;
}
.tinta {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 45% 100%, var(--lima), transparent 62%),
    linear-gradient(130deg, var(--papel), var(--lima) 70%);
}
.tinta:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url(/pista-grano.png);
}
.mensaje {
  padding: clamp(24px, 3.5vw, 64px);
  align-self: center;
}
.origen {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}
.origen span {
  width: 30px;
  border-top: 1px solid;
}
h1 {
  margin: 22px 0;
  font:
    normal clamp(68px, 8.8vw, 148px)/0.75 Pista,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.045em;
}
h1 span,
h1 strong {
  display: block;
  font-weight: 400;
  animation: entrada 0.65s both;
}
h1 strong {
  font-size: 1.48em;
  margin-top: 0.09em;
  animation-delay: 0.1s;
}
.mensaje p {
  max-width: 37ch;
  font-size: clamp(15px, 1.25vw, 20px);
}
.accion {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 10px 14px;
  background: var(--negro);
  color: var(--papel);
  font-size: 14px;
}
.accion i {
  font-style: normal;
  transition: transform 0.2s;
}
.accion:hover i {
  transform: translateY(3px);
}
.retrato {
  position: relative;
  background: #181c17;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -8%;
  overflow: hidden;
}
.retrato img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 64%;
}
.retrato:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, transparent, transparent 48%, #11170d55);
  mix-blend-mode: screen;
}
.retrato figcaption {
  position: absolute;
  bottom: 16px;
  right: 20px;
  color: white;
  background: #191c18;
  padding: 3px 8px;
  font:
    14px Consolas,
    monospace;
}
.talon {
  background: var(--lima);
  border-left: 2px dashed var(--negro);
  display: flex;
  align-items: center;
  justify-content: space-between;
  writing-mode: vertical-rl;
  padding: 14px 0;
}
.talon i {
  height: 48%;
  width: 22px;
  background: repeating-linear-gradient(
    0deg,
    #181e14 0 2px,
    transparent 2px 6px,
    #181e14 6px 7px,
    transparent 7px 9px
  );
}
.bloque {
  padding-block: clamp(32px, 4vw, 72px);
}
h2 {
  font:
    clamp(48px, 5.7vw, 92px)/0.92 Pista,
    sans-serif;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
h2 span {
  color: var(--acento);
}
.titulo {
  align-items: end;
  margin-bottom: 18px;
}
.titulo small,
.tablero small {
  display: block;
  margin-bottom: 6px;
}
.flechas button {
  border: 1px solid #888e7c;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
}
.flechas output {
  margin-right: 10px;
}
.paneles {
  display: flex;
  gap: 7px;
  height: clamp(280px, 26vw, 405px);
  perspective: 1200px;
}
.premio {
  position: relative;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  transition: flex 0.52s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.premio.activo {
  flex: 3.5;
}
.elegir {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #30382b;
  color: white;
  padding: 0;
  text-align: left;
  overflow: hidden;
  position: relative;
}
.medio,
.sombra,
.medio > img,
.vale {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.medio {
  transition:
    transform 0.55s,
    filter 0.55s;
  transform: scale(1.035);
  filter: saturate(0.72);
}
.activo .medio {
  transform: scale(1);
  filter: none;
}
.medio > img {
  object-fit: cover;
}
.p4:not(.activo) .medio > img {
  object-position: 80% center;
}
.sombra {
  background: linear-gradient(to top, #111610e8, transparent 63%);
}
.orden {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #171d17;
  color: white;
  padding: 4px 7px;
}
.elegir:focus-visible {
  outline: 3px solid var(--lima);
  outline-offset: -4px;
  z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .activo .rotulo {
    animation: entrada-premio 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes entrada-premio {
    from {
      clip-path: inset(0 0 100%);
      transform: translateY(9px);
    }
    to {
      clip-path: inset(0);
      transform: translateY(0);
    }
  }
}
.rotulo {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 8px;
}
.descripcion-premio {
  display: none;
}
.activo .descripcion-premio {
  display: block;
  margin: 6px 0 0;
  font: 14px/1.4 DM, sans-serif;
  text-shadow: 0 1px 3px #000;
}
.rotulo small {
  font:
    11px/1.2 DM,
    Arial;
}
.rotulo h3 {
  font:
    clamp(21px, 2.2vw, 35px)/0.98 Pista,
    sans-serif;
  letter-spacing: -0.02em;
}
.activo .rotulo h3 {
  font-size: clamp(33px, 4vw, 60px);
}
.vale {
  display: flex;
  justify-content: center;
  background: #bb001e;
}
.vale img {
  width: 100%;
  height: 72%;
  object-fit: contain;
}
.p3 .medio > img {
  object-position: center 67%;
}
.rangos button {
  border: 1px solid var(--linea);
  padding: 6px 10px;
  background: transparent;
}
button[aria-pressed="true"]:not(.elegir) {
  background: var(--negro) !important;
  color: white;
}
.franja {
  padding: clamp(26px, 3vw, 48px) 0;
  background: var(--papel);
  color: var(--negro);
}
.banda {
  margin-bottom: 18px;
}
.banda h2 {
  font-size: clamp(32px, 3.4vw, 54px);
}
.ventana {
  overflow: auto;
  scrollbar-width: none;
}
.cinta {
  display: flex;
  width: max-content;
  gap: 14px;
  position: relative;
}
.socio {
  display: block;
  width: clamp(225px, 23vw, 325px);
  text-align: center;
}
.foto-socio {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: clamp(72px, 7vw, 100px);
}
.foto-socio::before {
  content: "";
  width: 84%;
  aspect-ratio: 1024 / 275;
  background: var(--negro);
  mask: url(/logos-patrocinadores.png) center var(--fila-logo) / 100% auto no-repeat;
  opacity: 0.77;
}
.socio-solaz { --fila-logo: 3.8%; }
.socio-granja { --fila-logo: 28.3%; }
.socio-ueme { --fila-logo: 50.8%; }
.socio-lola { --fila-logo: 73.9%; }
.socio-mag { --fila-logo: 98.6%; }
.socio:is(:hover, :focus-visible) .foto-socio::before {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .foto-socio::before {
    transition: opacity 220ms ease;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .retrato {
    animation: revelar-retrato 0.95s cubic-bezier(0.18, 0.75, 0.15, 1) both;
  }
  .franja.en-vista .socio:nth-child(-n + 5) .foto-socio {
    animation: revelar-marca 0.65s cubic-bezier(0.2, 0.75, 0.14, 1) both;
  }
  .socio:nth-child(2) {
    --orden: 1;
  }
  .socio:nth-child(3) {
    --orden: 2;
  }
  .socio:nth-child(4) {
    --orden: 3;
  }
  .socio:nth-child(5) {
    --orden: 4;
  }
  .franja.en-vista .socio .foto-socio {
    animation-delay: calc(var(--orden, 0) * 75ms);
  }
}
@keyframes revelar-retrato {
  from {
    opacity: 0.2;
    transform: translateX(5%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes revelar-marca {
  from {
    clip-path: inset(0 0 86% 0);
    transform: rotateX(-9deg);
  }
  to {
    clip-path: inset(0);
    transform: none;
  }
}
.tablero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6%;
}
.tablero p {
  margin: 8px 0 18px;
}
.tablero label {
  font-size: 14px;
}
.tablero input,
.tablero form button {
  padding: 9px;
  border: 1px solid var(--linea);
  font: inherit;
  background: transparent;
}
.tablero input {
  width: 112px;
}
.rangos {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}
.grilla {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.grilla button {
  padding: 7px 0;
  background: none;
  border: 1px solid var(--linea);
  font:
    14px Consolas,
    monospace;
}
.grilla button:hover {
  background: var(--lima);
}
dialog {
  padding: 28px;
  background: var(--lima);
  border: 0;
  width: min(90vw, 350px);
}
dialog::backdrop {
  background: #161a16bc;
}
dialog h2 {
  margin-block: 12px;
}
dialog button {
  float: right;
  background: none;
  border: 0;
  font-size: 24px;
}
footer {
  padding: 20px 0;
  border-top: 1px solid var(--linea);
  font-size: 13px;
}
:focus-visible {
  outline: 3px solid #548bff;
  outline-offset: -3px;
}
[hidden] {
  display: none !important;
}
@keyframes entrada {
  from {
    transform: translateY(0.14em);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .ancho {
    width: 94%;
  }
  header {
    min-height: 54px;
  }
  header .marca {
    font-size: 22px;
  }
  header .marca i {
    width: 22px;
  }
  nav {
    gap: 2px;
  }
  nav a {
    font-size: 12px;
    padding: 5px;
  }
  .afiche {
    grid-template-columns: 1fr 34% 24px;
    min-height: 330px;
  }
  .mensaje {
    padding: 18px 8px 22px 18px;
  }
  .origen {
    font-size: 10px;
    display: block;
  }
  .origen span {
    display: inline-block;
    width: 9px;
    vertical-align: middle;
  }
  .mensaje p {
    font-size: 14px;
  }
  .talon {
    font-size: 9px;
  }
  .talon i {
    width: 12px;
  }
  .retrato {
    margin-left: -18%;
  }
  .retrato figcaption {
    font-size: 9px;
    right: 4px;
  }
  .retrato img {
    object-position: 53% top;
  }
  .titulo h2 {
    font-size: 50px;
  }
  .paneles {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    height: 300px;
  }
  .premio,
  .premio.activo {
    flex: 0 0 79%;
    scroll-snap-align: center;
  }
  .rotulo h3,
  .activo .rotulo h3 {
    font-size: 32px;
  }
  .tablero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .grilla {
    grid-template-columns: repeat(8, 1fr);
  }
  .banda h2 {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: clamp(54px, 15vw, 74px);
  }
  .afiche {
    min-height: 340px;
  }
  .retrato img {
    object-position: 51% top;
  }
  .flechas {
    gap: 5px;
  }
  .flechas output {
    margin-right: 2px;
  }
  .flechas button {
    width: 32px;
    height: 32px;
  }
  .paneles {
    height: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  html {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 480px) {
  .afiche {
    grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr) 18px;
  }
  .mensaje {
    position: relative;
    z-index: 1;
    padding: 18px 8px 18px 12px;
  }
  .retrato {
    margin-left: 0;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  }
  .origen {
    max-width: 15em;
    line-height: 1.45;
  }
  h1 {
    font-size: clamp(40px, 11.4vw, 57px);
    line-height: 0.84;
  }
  .accion {
    gap: 8px;
    padding: 9px 10px;
    font-size: 13px;
  }
}

.tablero {
  display: block;
}
.tablero > div:first-child {
  margin-bottom: 16px;
}
.grilla {
  grid-template-columns: repeat(auto-fit, minmax(49px, 1fr));
}
.grilla button {
  min-height: 36px;
}
.grilla button:disabled {
  cursor: default;
}
.grilla .reservado {
  background: #eed49a;
}
.grilla .pagado {
  background: #d2d3c8;
  text-decoration: line-through;
}
dialog label {
  display: grid;
  margin-top: 10px;
}
dialog input,
dialog .boton {
  font: inherit;
  padding: 8px;
}
.barra {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.barra label {
  font-size: 14px;
}
@media (max-width: 480px) {
  .grilla {
    grid-template-columns: repeat(auto-fit, minmax(39px, 1fr));
  }
  .socio {
    width: 220px;
  }
}

#ficha .cerrar {
  float: right;
}
#ficha .boton {
  float: none;
  background: var(--negro);
  color: white;
  margin-top: 14px;
  font-size: 15px;
}
.barra {
  padding: 14px 0;
}
#ficha form input {
  min-width: 0;
}

.afiche h1 span {
  font-size: 0.79em;
}
.afiche h1 strong {
  font-size: 1.19em;
}
.retrato {
  background: #070809;
  container-type: size;
}
.marca-ueme {
  position: absolute;
  z-index: 1;
  top: clamp(7px, 2cqw, 16px);
  right: clamp(6px, 2cqw, 16px);
  color: rgb(255 255 255 / 85%);
  font-size: clamp(10px, 2cqw, 14px);
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 3px #0009;
}
@media (min-width: 1100px) {
  .afiche {
    grid-template-columns: 1fr min(40%, 575px) 50px;
    min-height: clamp(445px, 36vw, 530px);
  }
  .retrato img {
    object-position: 50% 78%;
  }
}
.marca-ueme strong {
  letter-spacing: 0.08em;
}
.historia {
  background: var(--negro);
  color: var(--papel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 3vw, 52px);
  text-align: center;
  padding: clamp(24px, 4vw, 58px) clamp(16px, 4vw, 64px);
}
.historia h2 {
  font-size: clamp(30px, 3.9vw, 60px);
  color: var(--lima);
  text-wrap: balance;
}
.historia p {
  margin: 14px auto 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
}
.postal {
  width: clamp(70px, 8vw, 120px);
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 0;
}
.remera-gris,
.medio > .remera-gris {
  object-fit: contain;
  mask: url(/mascara-remera.png) center / contain no-repeat;
}
.p2 .medio {
  background: var(--negro);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .postal {
    transition: transform 240ms ease-out;
  }
  .historia .postal:hover {
    animation: balancear-producto 1.45s ease-in-out infinite alternate;
  }
}
@keyframes balancear-producto {
  from {
    transform: translateY(-3px) rotate(-5deg) scale(1.08);
  }
  to {
    transform: translateY(-12px) rotate(6deg) scale(1.16);
  }
}
.postal-tello {
  display: none;
}
.postal-club {
  height: clamp(108px, 10vw, 150px);
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  transform: rotate(-7deg);
}
.postal-prenda {
  transform: rotate(7deg);
  height: clamp(96px, 10vw, 148px);
}
@media (min-width: 761px) and (max-width: 1100px) {
  .historia {
    grid-template-columns: minmax(70px, 1fr) minmax(0, 600px) minmax(70px, 1fr);
  }
  .postal-club {
    height: clamp(112px, 14vw, 145px);
    width: auto;
    aspect-ratio: 0.44;
    object-fit: cover;
  }
  .postal-prenda {
    width: clamp(108px, 14vw, 136px);
    height: auto;
    aspect-ratio: 4 / 5;
  }
}
@media (max-width: 760px) {
  .historia {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 8px;
    padding: 28px 20px;
  }
  .historia > div {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .postal-tello {
    display: block;
    justify-self: start;
    width: min(100%, 76px);
    aspect-ratio: 1;
    border-radius: 50%;
  }
  .postal-club {
    justify-self: end;
    height: 86px;
  }
  .postal-prenda {
    justify-self: center;
    max-width: 100%;
    width: 80px;
    height: 86px;
  }
}
body {
  --acento: #355978;
}
body[data-paleta="dorado"] {
  --papel: #faf8f3;
  --negro: #181715;
  --lima: #dfbd80;
  --acento: #805d24;
  --linea: #c8bcab;
}
body[data-paleta="grafito"] {
  --papel: #f7f7f6;
  --negro: #22272e;
  --lima: #ff9956;
  --acento: #b6420b;
  --linea: #c6c9cb;
}
.paleta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.paleta select {
  font: inherit;
  color: inherit;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 16px;
  padding: 6px;
}
#lectura {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 4px;
  background: var(--acento);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
#subir {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--lima);
  background: var(--negro);
  color: white;
  font-size: 22px;
}
#subir[hidden] {
  display: none;
}
.redes {
  padding-block: clamp(36px, 5vw, 82px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.redes {
  border-top: 1px solid var(--linea);
}
.redes p {
  max-width: 42ch;
}
.perfiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 620px);
  gap: 0 24px;
}
.perfiles a {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--linea);
}
.perfiles i {
  font-style: normal;
  transition: transform 0.22s;
}
.perfiles a:is(:hover, :focus-visible) i {
  transform: translate(2px, -2px);
}
.reloj {
  --superficie: #26282c;
  --base: #1d1e21;
  padding: clamp(46px, 6vw, 88px) 0;
  color: var(--negro);
  background: linear-gradient(
    160deg,
    var(--papel) 25%,
    color-mix(in srgb, var(--lima) 22%, var(--papel))
  );
  border-block: 1px solid var(--linea);
  text-align: center;
}
.fecha h2 {
  font:
    650 clamp(32px, 4vw, 58px)/1.1 DM,
    sans-serif;
  letter-spacing: -0.055em;
  text-transform: none;
}
.fecha time {
  display: block;
  margin-top: 10px;
  color: var(--acento);
  font-size: clamp(13px, 1.4vw, 16px);
}
.digitos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.5vw, 18px);
  max-width: 720px;
  margin: clamp(26px, 3vw, 42px) auto 0;
}
.ficha-reloj {
  --alto: clamp(66px, 14vw, 138px);
  position: relative;
  display: block;
  height: var(--alto);
  border-radius: clamp(9px, 1.3vw, 18px);
  background: linear-gradient(
    to bottom,
    var(--superficie) 50%,
    var(--base) 50%
  );
  box-shadow:
    0 3px 0 #111215,
    0 8px 16px -8px #10141b80;
  font:
    550 clamp(36px, 8vw, 88px)/var(--alto) system-ui,
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: #f8f8fa;
}
.ficha-reloj b {
  font: inherit;
}
.ficha-reloj::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: #0b0c0d;
  box-shadow: 0 1px #ffffff14;
  pointer-events: none;
}
.hoja {
  position: absolute;
  inset: 0;
  perspective: 650px;
  border-radius: inherit;
}
.hoja > span {
  position: absolute;
  inset-inline: 0;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
}
.hoja > span::before {
  content: attr(data-valor);
  display: block;
  height: var(--alto);
}
.respaldo,
.entrante {
  bottom: 0;
  border-radius: 0 0 clamp(9px, 1.3vw, 18px) clamp(9px, 1.3vw, 18px);
  background: var(--base);
}
.respaldo::before,
.entrante::before {
  transform: translateY(-50%);
}
.saliente {
  top: 0;
  border-radius: clamp(9px, 1.3vw, 18px) clamp(9px, 1.3vw, 18px) 0 0;
  background: var(--superficie);
  transform-origin: bottom;
  animation: levantar-hoja 240ms ease-in both;
}
.entrante {
  transform-origin: top;
  animation: caer-hoja 360ms 240ms cubic-bezier(0.18, 0.76, 0.32, 1) both;
}
@keyframes levantar-hoja {
  to {
    transform: rotateX(-90deg);
    filter: brightness(0.6);
  }
}
@keyframes caer-hoja {
  from {
    transform: rotateX(90deg);
    filter: brightness(0.65);
  }
  to {
    transform: rotateX(0);
    filter: brightness(1);
  }
}
.digitos small {
  display: block;
  margin-top: 14px;
  font:
    500 clamp(11px, 1.5vw, 14px)/1.35 DM,
    sans-serif;
  color: var(--negro);
}
@media (prefers-reduced-motion: reduce) {
  .hoja {
    display: none;
  }
}
.plano-club {
  display: grid;
  grid-template-columns: minmax(285px, 360px) 1fr;
  margin-block: clamp(28px, 4vw, 60px);
  border: 1px solid var(--linea);
  border-radius: 20px;
  overflow: hidden;
  background: var(--papel);
}
.datos-club > img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
}
.contenido-club {
  padding: 20px;
}
.contenido-club h2 {
  font:
    650 32px/1.12 DM,
    sans-serif;
  text-transform: none;
  letter-spacing: -0.045em;
  margin: 5px 0 8px;
}
.contenido-club p,
.contenido-club blockquote {
  font-size: 14px;
}
.acciones-club {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.acciones-club a {
  border: 1px solid var(--linea);
  border-radius: 22px;
  padding: 9px 15px;
  font-size: 14px;
}
.acciones-club a:first-child {
  background: var(--negro);
  color: var(--papel);
}
.datos-club details {
  border-top: 1px solid var(--linea);
  padding: 10px 0;
  font-size: 14px;
}
.datos-club summary {
  cursor: pointer;
  font-weight: 650;
}
.datos-club summary span {
  font-size: 12px;
  font-weight: 500;
  color: var(--acento);
}
.datos-club details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.datos-club details p,
.datos-club blockquote {
  margin: 10px 0;
}
.datos-club cite {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}
.datos-club .fuente-club {
  font-size: 12px;
}
.sede iframe {
  width: 100%;
  height: 100%;
  min-height: 410px;
  border: 0;
  display: block;
}
@media (max-width: 680px) {
  .plano-club {
    grid-template-columns: 1fr;
  }
  .sede iframe {
    min-height: 0;
    height: 260px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .fin.presente > .ancho,
  .redes.presente > div {
    animation: llegada 0.6s ease-out both;
  }
  .redes.presente .perfiles {
    animation-delay: 0.1s;
  }
  @keyframes llegada {
    from {
      opacity: 0.35;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 640px) {
  header {
    flex-wrap: wrap;
    padding-block: 10px;
  }
  header nav {
    flex-wrap: wrap;
  }
  .redes {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  .perfiles {
    gap: 0 12px;
    font-size: 14px;
  }
  .digitos small {
    font-size: 10px;
  }
}

.acciones-portada {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 20px;
}
.datos-sorteo {
  flex-basis: 100%;
  font-size: 13px;
  line-height: 1.4;
  text-wrap: pretty;
}
@media (min-width: 1100px) {
  .datos-sorteo {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
  }
}
.acciones-portada .accion {
  margin: 0;
}
.acciones-portada > a + a,
.agendar {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
}
.agendar {
  display: inline-block;
  margin-top: 12px;
}
.floating-whatsapp {
  position: fixed;
  bottom: 18px;
  right: 16px;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #087843;
  color: white;
  box-shadow: 0 3px 14px #0003;
}
body:has(#subir:not([hidden])) .floating-whatsapp {
  bottom: calc(18px + 46px + 10px);
}
.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
footer.ancho {
  flex-wrap: wrap;
  padding-bottom: 78px;
}
footer strong {
  font-size: 18px;
}
footer p {
  margin-top: 4px;
  max-width: 58ch;
}
footer nav {
  flex-wrap: wrap;
  justify-content: flex-start;
}

#titulo-ficha {
  font:
    650 26px/1.15 DM,
    sans-serif;
  margin: 4px 0 16px;
}
#seleccion {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
#seleccion button,
#agregar {
  float: none;
  font: inherit;
  padding: 8px 12px;
  border: 1px solid var(--negro);
  border-radius: 6px;
}
#seleccion button {
  background: var(--papel);
  font-variant-numeric: tabular-nums;
}
#agregar {
  border-style: dashed;
}
#ficha {
  width: min(94vw, 460px);
}
#seleccion {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#seleccion button {
  position: relative;
  padding: 22px 4px 17px;
  border: 1px solid var(--linea);
  border-bottom: 3px solid var(--acento);
  border-radius: 9px;
  color: var(--negro);
  font:
    clamp(28px, 7vw, 44px)/1 Pista,
    sans-serif;
}
#seleccion button:not(:disabled)::after {
  content: "×";
  position: absolute;
  right: 7px;
  top: 4px;
  font:
    16px/1 DM,
    sans-serif;
}
.selector-numeros {
  display: flex;
  flex-direction: column;
}
#paso-tablero {
  order: -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
#resumen {
  display: block;
  font: inherit;
  font-size: 0.85rem;
}
#revisar {
  flex: none;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 24px;
  background: var(--negro);
  color: white;
  font-weight: 700;
}
@media (max-width: 760px) {
  #paso-tablero {
    order: 1;
    position: sticky;
    bottom: 0;
    z-index: 6;
    justify-content: space-between;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border: 1px solid var(--linea);
    border-radius: 12px 12px 0 0;
    background: var(--papel);
    box-shadow: 0 -3px 12px #0002;
  }
}
#grilla .marcado {
  background: var(--negro);
  color: var(--papel);
  outline: 2px solid var(--acento);
  outline-offset: -2px;
}
#detalle,
#limite {
  margin-top: 12px;
}

body:has(#visor-marca[open]) {
  overflow: hidden;
}
#visor-marca {
  --margen: clamp(16px, 3vw, 52px);
  width: calc(100% - var(--margen) - var(--margen));
  height: calc(100dvh - var(--margen) - var(--margen));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: white;
  box-shadow: 0 20px 80px #0006;
}
#visor-marca[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
#visor-marca::backdrop {
  background: rgb(9 17 29 / 76%);
  backdrop-filter: blur(5px);
}
.cabecera-visor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 2vw, 24px);
  background: var(--negro);
  color: var(--papel);
  border-bottom: 3px solid var(--lima);
}
#premio-visor {
  color: var(--lima);
  font-size: 13px;
}
#nombre-visor {
  margin: 0;
  font: 700 clamp(24px, 3vw, 40px)/1.1 Pista, sans-serif;
}
.acciones-visor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#tienda-ueme {
  color: inherit;
  text-decoration: none;
}
#tienda-ueme:not([hidden]),
#cerrar-visor {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 16px;
  border: 1px solid var(--lima);
  border-radius: 24px;
  font: inherit;
}
#tienda-ueme:hover,
#cerrar-visor:hover {
  color: var(--negro);
  background: var(--papel);
}
#cerrar-visor span {
  font-size: 22px;
}
#perfil-marca {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.videos-marcas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
  max-width: 800px;
  margin-inline: auto;
}
.videos-marcas figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--negro);
  color: var(--papel);
}
.videos-marcas video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 0;
  background: #111;
}
.videos-marcas figcaption {
  padding: 12px 18px;
  font: 600 22px/1.2 Pista, sans-serif;
}
@media (max-width: 600px) {
  .videos-marcas {
    grid-template-columns: minmax(0, 1fr);
    max-width: 380px;
  }
}

#ficha {
  width: min(94vw, 510px);
  max-height: 90dvh;
  overflow-y: auto;
  border: 1px solid var(--linea);
  border-radius: 18px;
  background: var(--papel);
  padding: clamp(18px, 4vw, 30px);
  box-shadow: 0 20px 80px #08121f48;
}
#ficha h2 { margin: 0 0 12px; font: 700 32px/1 Pista, sans-serif; }
#ficha .cerrar { border-radius: 50%; width: 32px; height: 32px; background: transparent; }
#seleccion { display: flex; flex-wrap: wrap; gap: 6px; }
#seleccion span { padding: 4px 12px; border: 1px solid var(--linea); border-radius: 6px; font: 600 21px/1.2 Pista, sans-serif; }
#ficha #detalle { margin: 16px 0; }
#ficha .importe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 12px; background: var(--negro); color: #fff; }
#ficha .importe span { font-weight: 700; }
#cantidad-reserva { display: block; font: 14px/1.5 DM, sans-serif; opacity: .82; }
#importe-reserva { font: 700 clamp(38px, 8vw, 52px)/1 Pista, sans-serif; font-variant-numeric: tabular-nums; }
#transferencia { margin-top: 12px; border: 1px solid var(--linea); border-radius: 10px; padding: 12px 16px; }
#transferencia h3 { margin: 0; font: 700 16px/1.4 DM, sans-serif; }
#cuenta-pago { display: grid; grid-template-columns: auto 1fr; gap: 5px 15px; margin: 8px 0; }
#cuenta-pago:empty, #indicacion-pago:empty { display: none; }
#cuenta-pago dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; user-select: all; }
#ficha #indicacion-pago { margin: 8px 0 0; font: 14px/1.4 DM, sans-serif; }
#ficha form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
#ficha form label { display: grid; gap: 4px; margin: 0; font-size: 14px; }
#ficha form input { box-sizing: border-box; width: 100%; padding: 9px 12px; margin: 0; border: 1px solid var(--linea); border-radius: 7px; font-size: 16px; }
#ficha form label:last-of-type, #ficha form .boton { grid-column: 1 / -1; }
#ficha form .boton { margin-top: 3px; border-radius: 8px; padding: 12px; font-weight: 700; }
#ficha #resultado:empty { display: none; }
@media(max-width:380px) { #ficha form { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .afiche {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .afiche .retrato {
    grid-row: 1;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 70svh;
    margin: 0;
    clip-path: none;
  }
  .afiche .retrato img {
    object-fit: contain;
    object-position: center;
  }
  .afiche .talon,
  .afiche .origen,
  .afiche .marca-ueme,
  .afiche figcaption,
  .acciones-portada > a + a {
    display: none;
  }
  .afiche .mensaje {
    padding: 20px clamp(16px, 5vw, 32px) 24px;
  }
  .afiche h1 {
    margin: 0 0 12px;
    font-size: clamp(52px, 12vw, 80px);
    line-height: 1;
  }
  .acciones-portada {
    display: grid;
    margin-top: 16px;
  }
  .datos-sorteo {
    grid-row: 1;
  }
  .acciones-portada .accion {
    min-height: 44px;
    justify-content: center;
  }
}
.leyenda-estados { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0; }
.etiqueta { padding:.3rem .65rem; border-radius:.4rem; font-size:.9rem; }
:is(#tablero-marco,#grilla,.leyenda-estados) .disponible { background:#d8f2dd; color:#14532d; }
:is(#tablero-marco,#grilla,.leyenda-estados,#reservas-rapidas) .apartado { background:#e1e3e6; color:#374151; }
:is(#tablero-marco,#grilla,.leyenda-estados,#ventas-pendientes) .reservado { background:#ffea93; color:#573e00; }
:is(#tablero-marco,#grilla,.leyenda-estados) .revision { background:#ffbf81; color:#662900; }
:is(#tablero-marco,#grilla,.leyenda-estados) .pagado { background:#fac5c6; color:#7e2029; }
:is(#grilla,#tablero-marco) button.marcado { background:#262332; color:white; outline:3px solid #584575; }
.pasos-reserva { padding-inline-start:1.5rem; line-height:1.6; }
.opciones-numeros { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem; margin:1rem 0; }
.opciones-numeros label { display:flex; gap:.5rem; align-items:center; cursor:pointer; font-weight:650; }
.opciones-numeros input { width:1.15rem; height:1.15rem; }
#cantidad { color:var(--uva); font-size:.9rem; }
#completar, #comprador button:not(#cerrar) { background:var(--ciruela); color:white; font-weight:650; }
#completar:disabled, #tablero-marco button:disabled { opacity:.55; }
.zona-numeros { position:relative; }
#nube { position:absolute; z-index:2; width:min(100%, 23rem); background:white; border:1px solid var(--borde); border-radius:18px; box-shadow:0 8px 32px #291d3338; }
#nube.encima { transform:translateY(-100%); }
#nube::before { content:""; position:absolute; left:var(--punta); top:0; width:12px; height:12px; background:white; border:solid var(--borde); border-width:1px 0 0 1px; transform:translate(-50%,-55%) rotate(45deg); }
#nube.encima::before { top:100%; transform:translate(-50%,-45%) rotate(225deg); }
#comprador { position:relative; padding:1rem; overflow:auto; overscroll-behavior:contain; }
#comprador h3 { font-size:1.25rem; padding-right:2.4rem; line-height:1.25; }
#cerrar { position:absolute; top:.55rem; right:.55rem; border:0; background:var(--papel); border-radius:50%; width:2rem; height:2rem; padding:0; font-size:1.3rem; }
#comprador label { display:grid; gap:.15rem; margin:.45rem 0; font-size:.9rem; font-weight:600; }
#comprador :is(input,select) { width:100%; padding:.45rem .6rem; font-family:inherit; font-size:1rem; border:1px solid var(--borde); border-radius:8px; background:white; color:var(--tinta); }
#comprador button:not(#cerrar) { margin-top:.4rem; width:100%; }
#chat-reserva:not([hidden]) { display:block; margin:1rem 0; text-decoration:underline; }
.pendientes-panel > div { margin:1rem 0; }
.lista-pendientes { display:flex; flex-wrap:wrap; gap:.5rem; }
.lista-pendientes button { max-width:100%; overflow-wrap:anywhere; }

#venta p { margin:.8rem 0 1rem; overflow-wrap:anywhere; }
#venta form { display:flex; justify-content:flex-end; gap:.5rem; flex-wrap:wrap; }
#venta [value="vender"] { background:var(--ciruela); color:white; }

@media (min-width: 960px) {
  .pendientes-panel { display:flex; gap:1rem; }
  .pendientes-panel > div { flex:1; min-width:0; }
  .panel-marco :is(header, main) { width:min(96%, 1600px); }
  .panel-marco header { padding:8px 0; }
  .panel-marco section { padding:12px 0; }
  .encabezado-tablero {
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:baseline;
    gap:2px 14px;
  }
  .encabezado-tablero small { display:none; }
  .encabezado-tablero h1 { font-size:1.8rem; }
  .encabezado-tablero h2 { margin:0; font-size:1.1rem; }
  .encabezado-tablero p { font-size:.85rem; }
  .encabezado-tablero p:first-of-type { grid-column:1 / 3; }
  .encabezado-tablero p:last-of-type { grid-column:1 / 3; }
  #actualizar { grid-column:3; grid-row:1 / 4; align-self:center; }
  #leyenda { margin:8px 0 4px; }
  #leyenda .etiqueta { font-size:.72rem; }
  .opciones-numeros { min-height:30px; margin:4px 0 8px; }
  .pendientes-panel > div { margin:6px 0; }
  .lista-pendientes { flex-wrap:nowrap; overflow-x:auto; }
  .lista-pendientes button { flex:none; }
  #tablero-marco { grid-template-columns:repeat(20, minmax(0,1fr)); gap:4px; }
  #tablero-marco button { height:clamp(25px, calc((100dvh - 355px) / 10), 48px); padding:0 2px; }
}
.panel-marco header { flex-wrap:wrap; }
.acciones-panel { gap:6px; margin-left:auto; }
.acciones-panel a { display:inline-flex; align-items:center; gap:4px; padding:5px 10px; border:1px solid var(--borde); border-radius:8px; background:white; white-space:nowrap; }
.acciones-panel a[target="_blank"] { background:var(--ciruela); color:white; border-color:var(--ciruela); }
.acciones-panel a:hover { border-color:var(--uva); }

.telefono-comprador { display:flex; align-items:center; border:1px solid var(--borde); border-radius:8px; background:white; }
#prefijo { padding-left:.6rem; color:#6b6570; font-size:1rem; font-weight:500; }
#comprador .telefono-comprador input { min-width:0; border:0; }
#mensaje-comprador { display:block; margin-top:.6rem; padding:.5rem; text-align:center; background:#e4f3e9; color:#185d37; border-radius:8px; font-weight:650; }
#mensaje-comprador[href]:hover { text-decoration:underline; }
#mensaje-comprador[aria-disabled="true"] { background:#efedee; color:#686169; }

@media (max-width: 700px), (max-height: 520px) {
  #nube, #nube.encima {
    position: fixed;
    width: min(23rem, calc(100% - 2rem));
    transform: translate(-50%, -50%);
  }
  #nube::before { display: none; }
  #comprador { display: flex; flex-direction: column; }
  #comprador > * { flex-shrink: 0; }
  #comprador .campos-comprador { flex: 0 1 auto; overflow-y: auto; min-height: 3rem; }
  #mensaje-comprador, #comprador button:not(#cerrar) { min-height: 44px; }
}
