/* Fuentes alojadas en la página (media/fuentes/): los mismos .woff2 que servía Google Fonts. Licencia SIL OFL 1.1 (ver media/fuentes/). */
/* latin */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("media/fuentes/epilogue-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Línea Fina. Papel blanco, tinta, una franja salvia. Una sola familia en sus dos extremos.
   Reglas del trazo fino (LANDING.md): ningún trazo por debajo de 2 px; peso 100 solo desde ~140 px; lo que se lee, en 4,5:1 o más. */
:root {
  --papel: #fff;
  --tinta: #111;
  --gris: #5c605c;
  --hilo: #d9ddd6;
  --salvia: #a3b09a;
  --salvia-tinta: #eef1ec;
  --tx-res: #4d524d;
  --foco: var(--tinta);
  --g: clamp(16px, 3.4vw, 56px);
  --barra: 68px;
  --curva: cubic-bezier(.16, 1, .3, 1);
  --fuente: 'Epilogue', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scrollbar-color: var(--tinta) var(--papel); }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.55 var(--fuente); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--salvia); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--barra) + 16px); }

html.js .sin-js, html:not(.js) .solo-js { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Dibujos: un solo stroke; cada lugar define su grosor en unidades del lienzo de 1000 */
.dibujo { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: var(--t, 8); }
.dibujo path.sin-empezar { opacity: 0; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 3px 26px 0; border: 1px solid var(--tinta); border-radius: 0; background: var(--tinta); color: var(--papel); font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .18s linear, color .18s linear; }
.boton:hover { background: var(--papel); color: var(--tinta); }
.boton--claro { border-color: var(--papel); background: var(--papel); color: var(--tinta); }
.boton--claro:hover { background: var(--tinta); color: var(--papel); }

/* Lo que todavía no está: rótulo, línea punteada y texto */
.pendiente { display: inline-block; white-space: nowrap; padding-top: 3px; border-top: 1px dashed currentColor; color: var(--tx-res); font-size: .9375rem; font-weight: 600; }
.reservado { color: var(--tx-res); border-top: 1px dashed currentColor; padding-top: 14px; }
.reservado .rotulo { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dato { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; font-weight: 500; }
.marco { display: grid; place-items: center; aspect-ratio: 4 / 5; border: 1px dashed var(--tx-res); color: var(--tx-res); font-size: .875rem; font-weight: 600; }
.etiqueta-ejemplo { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 4px 8px 2px; background: var(--papel); color: var(--tinta); font-size: .75rem; line-height: 1.3; pointer-events: none; }
.foto { position: relative; overflow: hidden; background: var(--salvia-tinta); }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* Barra */
.barra { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--barra); padding-inline: var(--g); background: var(--papel); border-bottom: 1px solid var(--hilo); }
html.js .barra { background: transparent; border-color: transparent; transition: background-color .25s linear, border-color .25s linear; }
html.js .barra.asentada { background: var(--papel); border-color: var(--hilo); }
.marca { font-size: 1.3125rem; line-height: 1; font-weight: 400; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; padding-top: 4px; }
.marca b { font-weight: 800; }
.barra-acciones { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.barra-enlace { display: inline-flex; align-items: center; min-height: 44px; padding: 3px 2px 0; border: 0; background: none; font-weight: 700; text-decoration: underline; text-decoration-color: transparent; cursor: pointer; transition: text-decoration-color .15s linear; }
.barra-enlace:hover { text-decoration-color: currentColor; }

/* Aviso de demo, siempre a la vista */
.aviso { position: fixed; left: 0; bottom: 0; z-index: 15; padding: 6px 10px 4px; background: var(--papel); border-top: 1px solid var(--hilo); border-right: 1px solid var(--hilo); color: var(--tinta); font-size: .75rem; line-height: 1.3; }

/* Botón fijo: aparece después del hero y se va en el cierre */
.fijo { position: fixed; right: 0; bottom: 0; z-index: 16; min-height: 56px; border-color: var(--papel); padding-inline: 30px; translate: 0 100%; visibility: hidden; transition: translate .35s var(--curva), visibility 0s linear .35s, background-color .18s linear, color .18s linear; }
.fijo.visible { translate: 0 0; visibility: visible; transition: translate .35s var(--curva), visibility 0s, background-color .18s linear, color .18s linear; }

/* Cinta: palabra enorme y fina, solo se mueve con el scroll */
/* Recorta solo a los costados: arriba y abajo quedan libres para la tilde de la í y el asta de la f (con line-height 1
   se salen de la caja). overflow: hidden es el respaldo: un navegador sin overflow: clip vuelve al recorte de antes. */
.cinta { overflow: hidden; overflow-x: clip; overflow-y: visible; pointer-events: none; user-select: none; }
.cinta span { display: inline-block; white-space: nowrap; font-weight: 100; line-height: 1; letter-spacing: -.02em; will-change: transform; }

/* Hero */
.hero { display: flex; flex-direction: column; min-height: 100svh; }
.hero-foto { position: relative; flex: 1 1 auto; min-height: 64svh; overflow: hidden; background: #cfd2d0; }
.hero-foto picture { position: absolute; inset: 0; }
/* La franja gris junto a la ventana queda por debajo de AA: un velo blanco la sube y se apaga antes de llegar a la persona */
.hero-foto picture::after { content: ''; position: absolute; inset: 0 0 35%; background: linear-gradient(rgb(255 255 255 / .2) 70%, rgb(255 255 255 / 0)); }
.hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero-foto .cinta { position: absolute; inset: calc(var(--barra) + 2px) 0 auto; }
.hero-foto .cinta span { font-size: clamp(148px, min(14.5vw, 24svh), 340px); }
.hero-banda { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); align-items: end; padding: clamp(20px, 2.4vw, 36px) var(--g) clamp(38px, 3vw, 44px); }
.hero-texto h1 { font-size: clamp(2.5rem, 4.7vw, 5.5rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.hero-texto p { margin-top: 12px; max-width: 38ch; color: var(--gris); }
.riel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--tinta); }
.riel li + li { border-left: 1px solid var(--tinta); }
.riel a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 8px 6px 10px; text-decoration: none; transition: background-color .18s linear; }
.riel a.elegida { background: var(--salvia-tinta); }
@media (hover: hover) { .riel a:hover { background: var(--salvia-tinta); } }
.riel .num { align-self: flex-start; font-size: .8125rem; font-weight: 700; line-height: 1; padding-top: 2px; }
.riel svg { --t: 25; width: clamp(80px, 7.2vw, 112px); height: clamp(80px, 7.2vw, 112px); }
.riel .nombre { font-size: .9375rem; font-weight: 600; line-height: 1.2; }

/* Declaración: dos voces en una línea */
.declara { padding: clamp(72px, 10vw, 168px) var(--g); }
.declara h2 { font-size: max(5.3vw, 3.5rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 200; }
.declara h2 b { font-weight: 800; }
.declara p { margin-top: clamp(20px, 2.4vw, 32px); margin-left: auto; max-width: 40ch; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: var(--gris); }

/* Apertura de la pared */
.apertura { position: relative; display: flex; flex-direction: column; padding-top: clamp(32px, 4vw, 56px); background: var(--tinta); color: var(--papel); overflow: hidden; --foco: var(--papel); }
.apertura .cinta span { font-size: clamp(148px, 19vw, 420px); }
.apertura-texto { padding: clamp(32px, 5vw, 72px) var(--g) 0; }
.apertura h2 { font-size: clamp(2.5rem, 4.7vw, 5.5rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.apertura-texto p { margin-top: 12px; color: #d3d6d2; max-width: 40ch; }
.apertura-linea { flex: none; align-self: center; width: max(100%, 900px); max-width: none; height: auto; margin-top: clamp(16px, 3vw, 40px); fill: none; stroke: var(--papel); stroke-linecap: round; stroke-width: 3.2; }
@media (min-width: 1200px) { .apertura-linea { stroke-width: 2.4; } }

/* La pared */
.pared { padding: clamp(72px, 9vw, 150px) var(--g) clamp(88px, 11vw, 180px); }
.pieza + .pieza { margin-top: clamp(96px, 13vw, 220px); }
.pieza-cabeza { display: flex; align-items: baseline; gap: clamp(14px, 2vw, 32px); }
.pieza h3 { font-size: 13vw; line-height: 1.02; font-weight: 100; letter-spacing: -.035em; }
.pieza-cabeza::after { content: ''; order: 1; flex: 1; height: 1px; background: var(--salvia); align-self: center; }
.pieza-cabeza .num { order: 2; font-size: clamp(2.5rem, 5vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.pieza:nth-child(even) .pieza-cabeza { flex-direction: row-reverse; }
.pieza-cuerpo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(20px, 3vw, 44px); align-items: end; }
.pieza .foto { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.pieza-datos { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.pieza:nth-child(even) .foto { grid-column: 8 / -1; grid-row: 1; }
.pieza:nth-child(even) .pieza-datos { grid-column: 1 / span 6; grid-row: 1; }
.pieza-dibujo { grid-column: 1 / -1; --t: 8.4; width: clamp(240px, 27vw, 460px); height: clamp(240px, 27vw, 460px); justify-self: center; }
.pieza-frase { grid-column: 1 / -1; font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.pieza-abre { grid-column: 1 / -1; border-bottom: 1px solid var(--hilo); }

details { border-top: 1px solid var(--hilo); }
summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding-top: 3px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: rotate .25s var(--curva); }
details[open] summary svg { rotate: 45deg; }
.abre-texto { display: grid; gap: 10px; padding-bottom: 18px; max-width: 58ch; color: var(--gris); }
.pieza-datos > .boton { grid-column: 1 / -1; justify-self: start; }

/* Partido */
.partido { display: grid; grid-template-columns: 1fr 1fr; }
.partido .foto { aspect-ratio: 4 / 5; }
.partido-franja { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(40px, 6vw, 96px) var(--g); background: var(--salvia); --tx-res: #2c312b; }
.partido h2 { font-size: clamp(2.25rem, 3.8vw, 4.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.partido-lista { font-size: clamp(1.75rem, 3vw, 3.25rem); line-height: 1.32; letter-spacing: -.02em; font-weight: 300; }
.partido-lista a { text-decoration: underline; text-decoration-thickness: 1px; }
.partido-lista a:hover { text-decoration-thickness: 2px; }
.partido-lista a:nth-child(even) { font-weight: 800; }

/* Tu primera vez */
.primera { padding: clamp(80px, 11vw, 180px) var(--g); }
.primera h2 { font-size: clamp(2.5rem, 4.7vw, 5.5rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 6vw, 88px); }
.paso { padding-top: 16px; border-top: 1px solid var(--tinta); }
.paso h3 { font-size: clamp(2.5rem, 4.4vw, 5rem); line-height: 1.08; font-weight: 300; letter-spacing: -.03em; }
.paso p { margin-top: 12px; color: var(--gris); max-width: 30ch; }

/* Quién te atiende */
.quien { padding: 0 var(--g) clamp(80px, 11vw, 180px); }
.quien h2 { font-size: clamp(2.5rem, 4.7vw, 5.5rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: clamp(32px, 5vw, 72px); }
.collage .sala { grid-column: 1 / span 6; grid-row: 1 / span 2; aspect-ratio: 4 / 5; }
.collage .detalle { grid-column: 10 / -1; grid-row: 1; aspect-ratio: 3 / 4; }
.collage .marco { grid-column: 7 / span 3; grid-row: 1; align-self: end; margin-bottom: -12%; background: var(--papel); }
.quien-ficha { grid-column: 7 / span 5; grid-row: 2; align-self: end; display: grid; gap: 12px; }
.quien-ficha .reservado p { max-width: 42ch; }

/* Reseñas */
.resenas { position: relative; display: grid; place-items: center; min-height: 90svh; padding: clamp(64px, 9vw, 120px) var(--g); overflow: hidden; background: #c9ccc8; }
.resenas > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.resenas-placa { position: relative; width: min(100%, 680px); padding: clamp(28px, 4vw, 56px); background: var(--papel); }
.resenas h2 { font-size: clamp(2.25rem, 3.8vw, 4rem); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }

/* Instagram */
.instagram { padding: clamp(80px, 11vw, 160px) var(--g); }
.instagram-cabeza { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: end; }
.instagram h2 { font-size: clamp(2.5rem, 4.7vw, 5.5rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.marcos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(32px, 4vw, 56px); }
.marcos li:nth-child(even) { margin-top: clamp(20px, 4vw, 64px); }

/* Cierre: dos palabras partidas por una foto */
.cc { border-top: 1px solid var(--hilo); }
.cc-zona { padding: clamp(56px, 7vw, 112px) var(--g) clamp(72px, 7vw, 112px); background: var(--papel); }
.cc-zona:has(.cc-accion:hover), .cc-zona:has(.cc-accion:focus-visible) { background: var(--salvia-tinta); }
.cc-palabras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24vw) minmax(0, 1fr); align-items: center; gap: clamp(16px, 2vw, 32px); }
.cc-palabras h2 { display: contents; }
.cc-palabras h2 span { font-size: 12.4vw; line-height: 1; font-weight: 100; letter-spacing: -.04em; }
.cc-a { grid-column: 1; grid-row: 1; justify-self: end; }
.cc-b { grid-column: 3; grid-row: 1; justify-self: start; }
.cc-palabras .foto { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 4; }
.cc-abajo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24vw) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.cc-abajo .dato { flex-direction: column; justify-content: flex-start; }
.cc-accion-caja { display: grid; gap: 14px; justify-items: stretch; text-align: center; }
.cc-accion-caja .boton { width: 100%; }
.cc-texto { color: var(--gris); }
.cc-dato-der { justify-self: end; text-align: right; align-items: flex-end; }
.nota-sinjs { grid-column: 1 / -1; padding: 12px 14px; background: var(--salvia-tinta); }
.nota-sinjs:not(:target) { display: none; }

/* Pie */
.cierre { padding: clamp(48px, 6vw, 88px) var(--g) 72px; background: var(--tinta); color: var(--papel); --foco: var(--papel); --tx-res: #e3e6e2; }
.pie-grilla { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px clamp(24px, 4vw, 64px); }
.pie-marca { font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1; letter-spacing: -.02em; font-weight: 400; }
.pie-marca b { font-weight: 800; }
.pie-lista { display: grid; gap: 6px; }
.pie-lista a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.pie-lista a:hover { text-decoration: underline; }
.pie-demo { margin-top: 40px; padding-top: 16px; border-top: 1px solid #3a3d3a; color: #d3d6d2; font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }

/* Menú a pantalla partida */
.menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--papel); color: var(--tinta); overflow: hidden; }
.menu[open] { display: grid; grid-template-columns: 1fr 1fr; animation: abre-menu .45s var(--curva); }
@keyframes abre-menu { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.menu .foto { height: 100dvh; }
.menu-lado { display: flex; flex-direction: column; min-height: 0; padding: 0 var(--g) 24px; overflow-y: auto; }
.menu-cabeza { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: var(--barra); }
.menu-cabeza h2 { font-size: 1rem; font-weight: 700; padding-top: 3px; }
.menu-cerrar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 2px 0; border: 0; background: none; font-weight: 700; cursor: pointer; }
.menu-lista { flex: 1; display: grid; align-content: center; gap: clamp(2px, .8vh, 10px); }
.menu-lista a { display: block; font-size: clamp(3.5rem, min(7vh, 5.2vw), 5.75rem); line-height: 1.14; font-weight: 200; letter-spacing: -.03em; text-decoration: none; transition: font-weight .2s linear; }
.menu-lista a:hover { font-weight: 500; }
.menu-pie { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }

/* Aviso de demo */
.aviso-demo { width: min(520px, calc(100% - 32px)); padding: 32px; border: 0; background: var(--papel); color: var(--tinta); }
.aviso-demo::backdrop { background: rgb(17 17 17 / .6); }
.aviso-demo h2 { font-size: 2rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.aviso-demo h2:focus { outline: none; }
.aviso-demo p { color: var(--gris); }
.aviso-demo .boton { margin-top: 24px; }

/* Hoja de reserva: sube desde abajo a todo el ancho */
.pc { --error: #9c2a1f; position: fixed; inset: auto 0 0; width: 100%; max-width: none; height: min(92dvh, 680px); max-height: none; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--tinta); background: var(--papel); color: var(--tinta); overflow: hidden; transition: translate .42s var(--curva), overlay .42s allow-discrete, display .42s allow-discrete; }
.pc::backdrop { background: rgb(17 17 17 / .55); transition: opacity .25s linear; }
@starting-style { .pc[open] { translate: 0 100%; } .pc[open]::backdrop { opacity: 0; } }
.pc.pc-cerrando { translate: 0 100%; transition: translate .28s cubic-bezier(.7, 0, .84, 0); }
.pc.pc-cerrando::backdrop { opacity: 0; }
.pc-caja { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); height: 100%; }
.pc-pieza { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px var(--g); border-right: 1px solid var(--hilo); min-width: 0; }
.pc-dibujo { --t: 5; flex: 0 1 auto; width: 100%; min-height: 0; height: 100%; max-height: 430px; }
.pc-pieza:not(.con-pieza) .pc-dibujo, .pc-pieza.con-pieza .pc-elegir { display: none; }
.pc-elegir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--tinta); border-left: 1px solid var(--tinta); }
.pc-elegir button { position: relative; display: grid; place-items: center; min-height: 44px; padding: 8px; border: 0; border-right: 1px solid var(--tinta); border-bottom: 1px solid var(--tinta); background: none; cursor: pointer; transition: background-color .18s linear; }
@media (hover: hover) { .pc-elegir button:hover { background: var(--salvia-tinta); } }
.pc-elegir .num { position: absolute; left: 6px; top: 6px; font-size: .8125rem; font-weight: 700; line-height: 1; }
.pc-elegir svg { width: 100%; max-width: 96px; aspect-ratio: 1; height: auto; }
.pc-nombre { font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.pc-derecha { display: flex; flex-direction: column; min-height: 0; }
.pc-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; padding: 14px clamp(20px, 4vw, 56px) 6px; }
.pc-cabeza h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; padding-top: 4px; }
.pc-cabeza h2:focus { outline: none; }
.pc-cabeza h2:focus-visible { outline: 2px solid var(--foco); outline-offset: 6px; }
.pc-cerrar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 2px 0; border: 0; background: none; font-weight: 700; cursor: pointer; }
.pc-cerrar svg, .menu-cerrar svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.pc-cuerpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 4vw, 56px) max(28px, calc(16px + env(safe-area-inset-bottom))); scroll-padding-block: 24px; }
.pc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pc-form > .pc-resumen, .pc-form > .casilla, .pc-form > .pc-enviar, .pc-fila--ancha { grid-column: 1 / -1; }
.pc-resumen:not(:empty) { margin-top: 12px; padding: 12px 16px; border: 1px solid var(--error); }
.pc-resumen p:first-child { display: flex; gap: 8px; align-items: center; color: var(--error); font-weight: 600; }
.pc-resumen ul { margin: 6px 0 0; padding-left: 26px; list-style: disc; }
.pc-fila { display: grid; align-content: start; gap: 2px; padding: 12px 0 2px; }
.pc-fila label { font-size: .875rem; font-weight: 600; color: var(--gris); }
.opcional { font-weight: 400; }
.pc-fila input, .pc-fila select, .pc-fila textarea { width: 100%; min-height: 40px; padding: 6px 0 2px; border: 0; border-radius: 0; background: transparent; font-size: 1.0625rem; outline: 0; resize: none; border-bottom: 1px solid var(--tinta); }
.pc-fila :is(input, select, textarea):focus { box-shadow: 0 1px 0 var(--tinta); }
.pc-fila [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.pc-fila select { appearance: none; padding-right: 26px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") right 2px center / 14px 8px no-repeat; }
.error { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; color: var(--error); font-size: 1rem; line-height: 1.35; font-weight: 600; }
.error[hidden] { display: none; }
.error svg, .pc-resumen svg { flex: none; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.casilla { padding: 14px 0 0; }
.casilla label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; font-size: .9375rem; }
.casilla input { appearance: none; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 0; border: 1px solid var(--tinta); border-radius: 0; background: var(--papel); cursor: pointer; }
.casilla input:checked { background: var(--tinta); }
.casilla input:checked::after { content: ''; width: 11px; height: 6px; margin-top: -3px; border-left: 2px solid var(--papel); border-bottom: 2px solid var(--papel); rotate: -45deg; }
.casilla .error { margin-left: 34px; }
.pc-enviar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 10px; }
.pc-enviar p { color: var(--gris); font-size: .9375rem; }
.pc-resultado:empty { display: none; }
.pc-resultado { display: grid; gap: 12px; justify-items: start; padding-top: 24px; max-width: 54ch; }
.pc-resultado h3 { font-size: 2rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.pc-resultado h3:focus { outline: none; }

/* Pantallas medianas */
@media (max-width: 1077px) {
  .pieza h3 { font-weight: 200; }
}
@media (max-width: 1140px) {
  .cc-palabras h2 span { font-weight: 200; }
}
@media (max-width: 1240px) {
  .partido-lista { font-weight: 400; }
}
@media (max-width: 359px) {
  .pieza h3 { font-weight: 300; }
}
@media (max-width: 979px) {
  .hero-banda { grid-template-columns: 1fr; gap: 18px; }
  .declara h2 { font-size: clamp(3rem, 17vw, 7rem); font-weight: 300; }
  .declara h2 span, .declara h2 b { display: block; }
  .declara p { margin-left: 0; }
  .pieza h3 { font-size: 15.5vw; }
  .pieza-cuerpo { display: block; }
  .pieza .foto { width: 100%; }
  .pieza-datos { display: block; }
  .pieza-dibujo { --t: 10; width: clamp(200px, 58vw, 360px); height: clamp(200px, 58vw, 360px); margin: 24px auto 8px; }
  .pieza-frase { margin-bottom: 20px; }
  .pieza-datos > .boton { margin-top: 24px; }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collage .sala { grid-column: 1 / span 8; grid-row: 1; }
  .collage .detalle { grid-column: 9 / -1; grid-row: 1; align-self: end; }
  .collage .marco { grid-column: 1 / span 5; grid-row: 2; margin: 0; }
  .quien-ficha { grid-column: 6 / -1; grid-row: 2; }
  .partido { grid-template-columns: 1fr; }
  .partido-lista { font-weight: 400; }
  .instagram-cabeza { grid-template-columns: 1fr; }
  .marcos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .marcos li:nth-child(n+4) { display: none; }
  .pie-grilla { grid-template-columns: 1fr 1fr; }
  .pie-grilla > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 1024px) {
  .hero-foto { min-height: 48svh; }
  .hero-foto img { object-position: 50% 100%; }
  .riel { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .riel li { grid-column: span 2; }
  .riel li:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--tinta); }
  .riel li:nth-child(4) { border-left: 0; }
  .riel a { gap: 2px; padding: 6px 4px 8px; }
  .riel svg { --t: 31; width: 64px; height: 64px; flex: none; margin-top: -10px; }
  .riel .nombre { font-size: .875rem; }
}
@media (max-width: 759px) {
  :root { --barra: 60px; }
  .menu[open] { display: block; }
  .menu > .foto { display: none; }
  .menu-lado { height: 100dvh; }
  .menu-lista a { font-size: clamp(2.5rem, 11.5vw, 3.75rem); font-weight: 300; }
  .pasos { grid-template-columns: 1fr; gap: 28px; }
  .collage { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .collage .sala { grid-column: 1 / span 5; }
  .collage .sala .etiqueta-ejemplo { right: auto; left: 10px; bottom: auto; top: 10px; }
  .collage .detalle { grid-column: 3 / -1; grid-row: 2; margin-top: -18%; position: relative; }
  .collage .marco { grid-column: 1 / span 2; grid-row: 2; align-self: end; }
  .quien-ficha { grid-column: 1 / -1; grid-row: 3; }
  .marcos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marcos li:nth-child(n+3) { display: none; }
  .marcos li:nth-child(even) { margin-top: 24px; }
  .cc-palabras { grid-template-columns: 1fr; gap: 10px; }
  .cc-palabras h2 span { font-size: 32vw; line-height: .96; }
  .cc-a { grid-column: 1; grid-row: 1; justify-self: start; }
  .cc-palabras .foto { grid-column: 1; grid-row: 2; width: 62%; justify-self: center; }
  .cc-b { grid-column: 1; grid-row: 3; justify-self: end; }
  .cc-abajo { grid-template-columns: 1fr 1fr; }
  .cc-accion-caja { grid-column: 1 / -1; grid-row: 1; }
  .pie-demo { padding-bottom: 28px; }
  .pc { height: var(--alto-visible, 100dvh); top: auto; }
  .pc-caja { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .pc-elegir { flex: 1; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pc-elegir button { padding: 4px; min-height: 56px; }
  .pc-elegir .num { left: 3px; top: 3px; }
  .pc-pieza:not(.con-pieza) .pc-nombre { display: none; }
  .pc-pieza { flex-direction: row; align-items: center; justify-content: flex-start; padding: 8px 20px; border-right: 0; border-bottom: 1px solid var(--hilo); }
  .pc-dibujo { --t: 25; flex: none; width: 80px; height: 80px; }
  .pc-nombre { font-size: 1.75rem; }
  .pc-form { grid-template-columns: 1fr; }
  .aviso { max-width: calc(100% - 128px); }
}
@media (max-height: 640px) and (orientation: portrait) {
  .hero-foto { min-height: 56svh; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero-foto { min-height: 74svh; }
  .hero-foto .cinta span { font-size: 20svh; font-weight: 200; }
  .pc { height: 100dvh; }
  .pc-pieza { display: none; }
  .pc-caja { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
