/* Registro del en vivo de Jupo · tres versiones v3 (27-oct). Marca: socios/jupo-rodriguez/marca/DESIGN.md (manual v13).
   Celular primero; desde 900 px, la retícula del manual: hasta 1160 px y cabezas de dos columnas. */
:root {
  --noche: #0F1A24; --marea: #1A2836; --bruma: #2C3B49; --hueso: #ECE6DC; --niebla: #8FA0AF;
  --gris: #C9D2DA; --alba: #D9944A; --alba-hondo: #8A4F14; --luz: #F2E9DA; --tinta: #101A23;
  --piedra: #5E6A74; --hilo-luz: #DCCFBA;
  --letra: "Bricolage Grotesque", Archivo, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --sale: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scrollbar-color: var(--bruma) var(--noche); }
body { background: var(--noche); color: var(--hueso); font-family: var(--letra); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; text-underline-offset: .18em; }
::selection { background: var(--alba); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--alba); outline-offset: 3px; border-radius: 2px; }
.sobre-luz :focus-visible { outline-color: var(--alba-hondo); }

.c { font-weight: 800; font-variation-settings: 'wdth' 75; text-transform: uppercase; line-height: .94; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.marco { width: min(100%, 760px); margin-inline: auto; padding-inline: var(--gutter); }
.marco.ancho { width: min(100%, 1160px); }

/* El logo: «Rodríguez» chico encima y «JUPO» condensado (mínimo 40 px de alto). */
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo small { font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--niebla); margin-bottom: .12em; }
.logo b { font-weight: 800; font-variation-settings: 'wdth' 75; font-size: 3rem; line-height: .82; letter-spacing: -.015em; }
.sobre-luz .logo small { color: var(--piedra); }

/* La etiqueta: rótulo con borde, girado −3°. */
.etiqueta { display: inline-block; font-weight: 800; font-variation-settings: 'wdth' 75; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; line-height: 1; padding: .5em .7em; border: 2px solid currentColor; border-radius: 3px; transform: rotate(-3deg); }

/* La cinta: tacha sin borrar (alba sobre noche, alba honda sobre luz). */
.tachada { position: relative; display: inline-block; font-weight: 700; color: var(--niebla); }
.tachada::after { content: ""; position: absolute; left: -.12em; right: -.12em; top: 50%; height: .17em; background: var(--alba); border-radius: 2px; transform: translateY(-50%) rotate(-2deg); transform-origin: left center; }
.sobre-luz .tachada { color: var(--piedra); }
.sobre-luz .tachada::after { background: var(--alba-hondo); }
.js [data-ver] .tachada::after, .js .tachada[data-ver]::after { scale: 0 1; transition: scale .6s var(--sale) .2s; }
.js .visto .tachada::after, .js .tachada.visto::after { scale: 1 1; }

.rot { margin: 0 0 .7rem; font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--niebla); }
.sobre-luz .rot { color: var(--piedra); }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 1.6em; border: 0; border-radius: 4px; cursor: pointer; font: 800 1.35rem/1 var(--letra); font-variation-settings: 'wdth' 75; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; background: var(--alba); color: var(--tinta); transition: background .2s, color .2s, transform .2s var(--sale); }
.boton:hover { background: var(--hueso); }
.boton:active { transform: translateY(1px); }
.boton:disabled { opacity: .7; cursor: progress; }
.boton.tinta { background: var(--tinta); color: var(--luz); }
.boton.tinta:hover { background: var(--marea); }
.boton.ancho { width: 100%; }

/* Formulario corto: tres campos, el permiso sin marcar y el botón. */
.form { margin-top: 1.2rem; }
.campo { display: block; margin-top: 14px; }
.campo span { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.campo input { width: 100%; min-height: 54px; padding: 12px 14px; font: 400 1.08rem var(--letra); color: var(--tinta); caret-color: var(--alba-hondo); background: #fff; border: 2px solid var(--hilo-luz); border-radius: 4px; transition: border-color .15s; }
.campo input::placeholder { color: var(--piedra); }
.campo input:focus { outline: none; border-color: var(--alba); }
.sobre-luz .campo input:focus { border-color: var(--tinta); }
.campo input[aria-invalid="true"] { border-color: var(--alba); }
.sobre-luz .campo input[aria-invalid="true"] { border-color: var(--alba-hondo); }
.ayuda { font-size: .88rem; margin: 6px 0 0; color: var(--gris); }
.sobre-luz .ayuda { color: var(--piedra); }
.error { margin: 6px 0 0; font-size: .92rem; font-weight: 700; color: var(--alba); }
.sobre-luz .error { color: var(--alba-hondo); }
.permiso { display: flex; gap: 12px; align-items: center; min-height: 48px; margin-top: 12px; font-size: .95rem; cursor: pointer; }
.permiso input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--alba); }
.sobre-luz .permiso input { accent-color: var(--tinta); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .boton { margin-top: 14px; }
.aviso { margin: 12px 0 0; font-weight: 700; font-size: .95rem; }
.aviso:empty { display: none; }
.nota { font-size: .84rem; margin: 12px 0 0; color: var(--gris); }
.sobre-luz .nota { color: var(--piedra); }

/* Secciones: en celular una columna; en computadora, título a la izquierda y texto a la derecha. */
.sec { padding-block: clamp(4.5rem, 12vw, 8rem); border-top: 1px solid var(--bruma); }
.sec h2 { font-size: clamp(2.7rem, 12vw, 5.4rem); margin-bottom: 1.3rem; }
.sec p { margin: 0 0 1em; color: var(--gris); font-size: 1.12rem; max-width: 62ch; }
.sec strong { color: var(--hueso); }
.sec.luz { background: var(--luz); color: var(--tinta); border-top: 0; }
.sec.luz p, .sec.luz strong { color: var(--tinta); }
.sec.alba { background: var(--alba); color: var(--tinta); border-top: 0; }
.sec.marea { background: var(--marea); border-top: 0; }
.reglas { list-style: none; padding: 0; margin: 0; }
.reglas li { position: relative; padding: 18px 0 18px 38px; border-bottom: 1px solid var(--bruma); font-size: clamp(1.15rem, 4.4vw, 1.4rem); line-height: 1.35; font-weight: 600; }
.reglas li::before { content: ""; position: absolute; left: 0; top: 1.6em; width: 1rem; height: 4px; background: var(--alba); transform: rotate(-3deg); }
.sec .cita { font-weight: 700; font-size: clamp(1.5rem, 6.4vw, 2.2rem); line-height: 1.2; margin: 1.6rem 0; color: var(--hueso); max-width: none; }
.sec .cita.mayor { font-size: clamp(1.9rem, 8vw, 3.4rem); line-height: 1.1; }
.sec.luz .cita { color: var(--tinta); }

/* Cien veces contra una. */
.duelo { overflow: hidden; }
.sec .cifra { font-size: clamp(11rem, 60vw, 24rem); line-height: .76; margin: clamp(1.5rem, 5vw, 2.5rem) 0; max-width: none; white-space: nowrap; }
.cifra.cien { color: var(--niebla); }
.cifra.cien .num { position: relative; display: inline-block; }
.cifra.cien .cinta { position: absolute; left: -.06em; right: -.06em; top: 52%; height: .12em; background: var(--alba); border-radius: 2px; transform: translateY(-50%) rotate(-4deg); transform-origin: left center; }
.js .cifra.cien .cinta { scale: 0 1; transition: scale .6s var(--sale) .15s; }
.js .cifra.cien.visto .cinta { scale: 1 1; }
.sec .cifra.uno { color: var(--alba); text-align: right; }
.cambio-grande { display: grid; margin-top: clamp(3rem, 10vw, 5rem); border-radius: 4px; overflow: hidden; }
.cambio-grande > div { padding: clamp(1.8rem, 6vw, 3rem) clamp(1.2rem, 5vw, 3rem); }
.cambio-grande .arriba { background: var(--marea); }
.cambio-grande .abajo { background: var(--luz); color: var(--tinta); }
.cambio-grande .rot { margin-bottom: .9rem; }
.cambio-grande .abajo .rot { color: var(--piedra); }
.cambio-grande .tachada { font-size: clamp(1.8rem, 7vw, 2.8rem); }
.sec .cambio-grande .palabra { font-size: clamp(3rem, 14vw, 6.4rem); color: var(--tinta); margin: 0; max-width: none; }

.gran-idea { padding-block: clamp(5rem, 16vw, 10rem); }
.sec.gran-idea h2 { font-size: clamp(3.1rem, 14vw, 8.6rem); line-height: .86; margin: 0; max-width: 14ch; }
.llevas { border-top: 0; }
.llevas .boton { margin-top: 2.2rem; }
.bajo { font-size: .95rem !important; margin-top: .8rem !important; color: var(--niebla) !important; }
.se-sale { overflow: hidden; padding-bottom: 0; }
.sec .palabra-sale { font-size: clamp(8rem, 44vw, 30rem); color: var(--alba); line-height: .78; white-space: nowrap; margin: clamp(3rem, 8vw, 5rem) 0 -.1em -.04em; max-width: none; }

.horas { width: 100%; border-collapse: collapse; margin-top: 14px; font-variant-numeric: tabular-nums; }
.horas td { padding: 14px 0; border-bottom: 1px solid var(--bruma); font-size: 1.02rem; color: var(--gris); }
.horas td:first-child { font-weight: 800; font-variation-settings: 'wdth' 75; text-transform: uppercase; font-size: clamp(1.4rem, 5.6vw, 1.9rem); width: 48%; color: var(--hueso); }
.horas tr.aqui td { color: var(--alba); }

.pie { padding: 36px 0 120px; display: flex; align-items: center; gap: 14px; color: var(--niebla); font-size: .9rem; }
.pie img { width: 44px; height: 44px; }

/* Selector de versiones (solo en las muestras): arriba a la derecha para no tapar el botón. */
.opciones { position: fixed; right: 10px; bottom: 10px; z-index: 50; display: flex; gap: 4px; padding: 4px; background: rgba(16,26,35,.94); border: 1px solid var(--bruma); border-radius: 6px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.opciones span { padding: 10px 6px 10px 10px; color: var(--niebla); }
.opciones a { display: grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 4px; color: var(--hueso); text-decoration: none; }
.opciones a[aria-current] { background: var(--alba); color: var(--tinta); }
.opciones { transition: opacity .2s, translate .2s; }
.opciones.fuera { opacity: 0; translate: 0 12px; pointer-events: none; }

@media (min-width: 900px) {
  .dos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 4rem; align-items: start; }
  .dos > h2 { position: sticky; top: 2rem; margin-bottom: 0; }
  .sec p { font-size: 1.18rem; }
  .cambio-grande { grid-template-columns: 1fr 1.4fr; }
  .cambio-grande > div { display: flex; flex-direction: column; justify-content: center; min-height: 22rem; }
  .duelo .cifras { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .duelo .cifras .cifra { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* Fotos dentro del cuerpo (v4): cada versión trae las de su mundo. */
.foto-cuerpo { margin: 0; overflow: hidden; border-radius: 4px; }
.foto-cuerpo img { width: 100%; height: 100%; object-fit: cover; }
.pie-foto { margin: 0 0 .7rem !important; font-weight: 700; font-size: 1.05rem !important; color: var(--hueso) !important; }
.cambio-fotos { display: grid; gap: 14px; margin-top: clamp(2.5rem, 8vw, 4rem); }
.cambio-fotos .foto-cuerpo { aspect-ratio: 4 / 5; }
.cambio-fotos.una .foto-cuerpo.ancha { aspect-ratio: 16 / 7; }
.palabra-caja { background: var(--luz); color: var(--tinta); border-radius: 4px; padding: clamp(1.4rem, 5vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.palabra-caja .pie-foto { color: var(--piedra) !important; }
.sec .palabra-caja .palabra { font-size: clamp(2.8rem, 12vw, 5.6rem); line-height: .9; color: var(--tinta); margin: 0; max-width: none; }
.con-foto .foto-cuerpo { margin-top: clamp(2rem, 6vw, 3rem); aspect-ratio: 16 / 9; }
.hoja-foto { margin: 2rem 0 .4rem; aspect-ratio: 1536 / 727; }
@media (min-width: 900px) {
  .cambio-fotos { grid-template-columns: 1fr 1fr; }
  .cambio-fotos.una { grid-template-columns: 1.5fr 1fr; }
  .cambio-fotos.una .foto-cuerpo.ancha { aspect-ratio: auto; min-height: 22rem; }
  .con-foto { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
  .con-foto .foto-cuerpo { margin-top: 0; aspect-ratio: 4 / 3; }
}
