/* Sala de revelado: verde petroleo, gris papel fotografico, rojo de luz de seguridad y ambar de pelicula */
:root {
  --sala: #0f1d1c; --sala2: #162827; --sala3: #20383600; --linea: #2b4644; --tinta: #14211f;
  --papel: #e3e8e3; --papel2: #d3dad4; --papel3: #bcc6bf; --blanco: #f4f7f3;
  --rojo: #e2492f; --rojoH: #c43a22; --ambar: #e3a33a; --agua: #6fa39b; --agua2: #3f716b; --gris: #5f716d; --grisC: #9db0ab;
  --r: 14px; --f: 'Archivo', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.5 var(--f); color: var(--tinta); background: var(--papel); min-height: 100vh; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .18 0 0 0 0 .16 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
#app { position: relative; z-index: 1; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
a { color: inherit; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ancho { width: min(1240px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-stretch: 112%; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: 26px; font-weight: 800; }
.tab { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 10px; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .16s, transform .16s; }
.btn:active { transform: translateY(1px); }
.btn.p { background: var(--rojo); color: #fff; } .btn.p:hover { background: var(--rojoH); }
.btn.s { background: rgba(20, 33, 31, .07); } .btn.s:hover { background: rgba(20, 33, 31, .13); }
.osc .btn.s, .btn.so { background: rgba(255, 255, 255, .09); color: var(--blanco); } .osc .btn.s:hover, .btn.so:hover { background: rgba(255, 255, 255, .16); }
.ic { width: 44px; height: 44px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--gris); } .ic:hover { background: rgba(20, 33, 31, .08); color: var(--tinta); }
.osc .ic { color: var(--grisC); } .osc .ic:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- cabecera + mesa de montaje ---------- */
.osc { background: var(--sala); color: var(--blanco); position: relative; overflow: hidden; }
.osc::before { content: ''; position: absolute; inset: -30% -10% auto auto; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 73, 47, .2), transparent); pointer-events: none; }
.osc::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .025) 79px 80px); }
.osc > * { position: relative; z-index: 1; }
.cab { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.marca { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; font-stretch: 116%; letter-spacing: -.02em; margin-right: auto; }
.marca svg { width: 38px; height: 38px; }
.marca small { display: block; font: 500 12.5px/1.2 var(--f); font-stretch: 100%; letter-spacing: 0; color: var(--grisC); }
.pc { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--grisC); }
.pc i { width: 10px; height: 10px; border-radius: 50%; background: var(--gris); }
.pc.ok i { background: #58c08a; } .pc.vivo i { background: var(--rojo); animation: lat 1.6s infinite; } .pc.mal i { background: var(--ambar); }
@keyframes lat { 50% { opacity: .35; } }

.hero { padding: 34px 0 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.hero h1 { font-size: clamp(34px, 5.4vw, 66px); font-weight: 850; font-stretch: 120%; max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--rojo); } .hero h1 em.b { display: block; } .hero h1.l { font-size: clamp(30px, 4.2vw, 50px); max-width: 22ch; }
.hero p { color: var(--grisC); margin-top: 14px; max-width: 56ch; font-size: 17px; }
.hero .acc { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.mesa { background: var(--sala2); border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; }
.mesa .cuad { display: grid; grid-template-columns: 132px 1fr; }
.pistas { border-right: 1px solid var(--linea); padding-top: 38px; }
.pistas div { height: 34px; display: flex; align-items: center; padding: 0 14px; font-size: 13.5px; color: var(--grisC); border-top: 1px solid rgba(255, 255, 255, .05); }
.lienzo { position: relative; overflow-x: auto; overflow-y: hidden; }
.lienzo .larg { position: relative; min-width: 620px; height: 242px; }
.regla { position: absolute; inset: 0 0 auto; height: 38px; }
.regla span { position: absolute; top: 10px; font-size: 13px; color: var(--grisC); transform: translateX(-50%); white-space: nowrap; }
.regla span::after { content: ''; position: absolute; left: 50%; top: 28px; height: 204px; width: 1px; background: rgba(255, 255, 255, .07); }
.regla span:first-child { transform: none; padding-left: 8px; } .regla span:first-child::after { left: 0; }
.fila { position: absolute; left: 0; right: 0; height: 34px; border-top: 1px solid rgba(255, 255, 255, .05); }
.clip { position: absolute; top: 4px; height: 26px; border-radius: 5px; background: var(--agua2); overflow: hidden; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 26px; white-space: nowrap; color: #dff0ec; }
.clip.n1 { background: #375c73; } .clip.n2 { background: #6a5a3c; } .clip.n3 { background: #53486b; } .clip.n4 { background: #3f6a4a; }
.clip.ya { background: var(--ambar); color: #22180a; } .clip.ahora { background: repeating-linear-gradient(115deg, var(--rojo) 0 14px, #c93f27 14px 28px); background-size: 200% 100%; color: #fff; animation: mov 2.4s linear infinite; }
@keyframes mov { to { background-position: -62px 0; } }
.cabezal { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rojo); z-index: 3; } .cabezal::before { content: ''; position: absolute; top: 6px; left: -7px; width: 16px; height: 18px; background: var(--rojo); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.vacia { position: absolute; inset: 38px 0 0; display: grid; place-items: center; color: var(--grisC); text-align: center; padding: 20px; }

.datos { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--linea); }
.datos > div { padding: 16px 18px; border-left: 1px solid var(--linea); } .datos > div:first-child { border-left: 0; }
.datos b { display: block; font-size: 27px; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.1; } .datos span { font-size: 13.5px; color: var(--grisC); }
.barra { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); margin-top: 8px; position: relative; } .barra i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--agua); } .barra u { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--ambar); }
.pie-hero { height: 44px; }

/* ---------- cuerpo ---------- */
.cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; padding: 44px 0 20px; align-items: start; }
.tit { flex-wrap: wrap; display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; } .tit span { color: var(--gris); } .tit .btn { margin-left: auto; align-self: center; }
.cola { list-style: none; padding: 0; display: grid; gap: 8px; }
.enc { display: grid; grid-template-columns: 34px 54px minmax(0, 1fr) auto; align-items: center; background: var(--blanco); border: 1px solid var(--papel3); border-radius: 12px; min-height: 78px; padding-right: 10px; transition: box-shadow .15s; }
.enc.arr { box-shadow: 0 14px 34px rgba(15, 29, 28, .22); position: relative; z-index: 5; }
.enc.hoy { border-color: var(--agua); }
.enc .asa { align-self: stretch; display: grid; place-items: center; cursor: grab; color: var(--papel3); touch-action: none; border-radius: 12px 0 0 12px; } .enc .asa:hover { color: var(--gris); }
.enc .num { font-size: 30px; font-weight: 850; font-stretch: 112%; letter-spacing: -.03em; text-align: center; } .enc .num.hoy { color: var(--rojo); }
.enc .tx { padding: 12px 10px; text-align: left; min-width: 0; } .enc .tx b { display: block; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.enc .tx small { color: var(--gris); font-size: 14px; } .enc .tx small.e { color: var(--rojoH); font-weight: 600; }
.enc .op { display: flex; }
.enc.prod { background: var(--sala); color: var(--blanco); border-color: var(--sala); grid-template-columns: 88px minmax(0, 1fr) 96px; } .enc.prod small { color: var(--grisC); }
.giro { display: grid; place-items: center; } .giro svg { width: 46px; height: 46px; animation: g 5s linear infinite; } @keyframes g { to { transform: rotate(360deg); } }
.enc.prod .pct { font-size: 28px; font-weight: 850; text-align: right; padding-right: 8px; }
.hueco { border: 2px dashed var(--papel3); border-radius: var(--r); padding: 38px 24px; text-align: center; color: var(--gris); } .hueco b { display: block; color: var(--tinta); font-size: 19px; margin-bottom: 4px; } .hueco .btn { margin-top: 18px; }
.bit { border-top: 3px solid var(--tinta); padding-top: 16px; } .bit h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.bit ol { list-style: none; padding: 0; } .bit li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--papel2); font-size: 14.5px; line-height: 1.35; } .bit time { color: var(--gris); } .bit li b { display: block; font-weight: 700; }

.galeria { padding: 34px 0 80px; }
.rej { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 24px; }
.rej article { display: flex; flex-direction: column; } .vid { text-align: left; display: block; width: 100%; padding: 0; margin-bottom: auto; }
.vid .marco { aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: var(--sala2); position: relative; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 26px rgba(15, 29, 28, .16); }
.vid img, .vid svg.port { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); } .vid:hover img, .vid:hover svg.port { transform: scale(1.045); }
.vid .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 29, 28, .82); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.vid .nue { position: absolute; left: 10px; bottom: 10px; background: var(--rojo); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.vid b { display: block; margin-top: 12px; line-height: 1.25; } .vid small { color: var(--gris); font-size: 14px; }
.baja { margin-top: 10px; width: 100%; }
.pie { border-top: 1px solid var(--papel3); padding: 26px 0 40px; color: var(--gris); font-size: 14.5px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.pie img { height: 30px; opacity: .85; }

/* ---------- capas ---------- */
.velo { position: fixed; inset: 0; background: rgba(9, 18, 17, .66); z-index: 40; display: grid; place-items: center; padding: 20px; overflow: auto; animation: ap .16s; } @keyframes ap { from { opacity: 0; } }
.caja { background: var(--papel); border-radius: 18px; width: min(680px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px; position: relative; }
.caja.gr { width: min(1080px, 100%); padding: 0; display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); overflow: hidden; }
.caja h2 { padding-right: 50px; margin-bottom: 6px; } .caja .sub { color: var(--gris); margin-bottom: 18px; }
.cerrar { position: absolute; right: 14px; top: 14px; z-index: 3; }
.caja.gr .cine { background: #000; display: grid; place-items: center; min-height: 0; } .cine video, .cine svg { width: 100%; max-height: calc(100dvh - 40px); aspect-ratio: 9/16; display: block; }
.caja.gr .lado { padding: 28px; overflow: auto; max-height: calc(100dvh - 40px); min-width: 0; }
.fila-b { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 20px; }
.pest { display: flex; gap: 4px; border-bottom: 2px solid var(--papel2); margin-bottom: 16px; overflow-x: auto; } .pest button { padding: 10px 14px; font-weight: 700; color: var(--gris); border-bottom: 3px solid transparent; margin-bottom: -2px; min-height: 44px; } .pest button.on { color: var(--tinta); border-color: var(--rojo); }
.md { font-size: 15px; overflow-wrap: anywhere; } .md h4 { margin: 18px 0 6px; font-size: 16px; } .md ul { padding-left: 20px; } .md li { margin: 4px 0; } .md p { margin: 8px 0; } .md code, pre { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; } pre { white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; } td, th { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--papel2); vertical-align: top; } th { color: var(--gris); font-weight: 600; } td.n { white-space: nowrap; color: var(--gris); }
label.c { display: block; font-weight: 700; margin: 14px 0 6px; } label.c small { font-weight: 400; color: var(--gris); }
.in, textarea, select { width: 100%; background: var(--blanco); border: 1.5px solid var(--papel3); border-radius: 10px; padding: 12px 14px; min-height: 48px; } textarea { min-height: 190px; resize: vertical; line-height: 1.45; }
.suelta { border: 2px dashed var(--agua2); border-radius: 14px; padding: 34px 20px; text-align: center; background: rgba(111, 163, 155, .1); cursor: pointer; display: block; } .suelta.on { background: rgba(226, 73, 47, .1); border-color: var(--rojo); } .suelta svg { width: 40px; height: 40px; color: var(--agua2); } .suelta b { display: block; font-size: 18px; margin-top: 8px; }
.lista { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 6px; } .lista li { display: flex; align-items: center; gap: 10px; background: var(--blanco); border-radius: 10px; padding: 6px 6px 6px 14px; } .lista li span { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--papel2); } .sw p { font-size: 14.5px; color: var(--gris); } .sw select, .sw .in { width: 130px; flex: none; }
.tog { width: 58px; height: 34px; border-radius: 17px; background: var(--papel3); position: relative; flex: none; } .tog::after { content: ''; position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .16s; } .tog[aria-checked=true] { background: var(--agua2); } .tog[aria-checked=true]::after { transform: translateX(24px); }
#aviso { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 90px); background: var(--sala); color: #fff; padding: 13px 20px; border-radius: 11px; font-weight: 600; z-index: 60; transition: transform .25s; max-width: calc(100% - 40px); visibility: hidden; } #aviso.on { transform: translate(-50%, 0); visibility: visible; } #aviso.e { background: var(--rojoH); }

/* ---------- entrada ---------- */
.ent { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.ent .izq { display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(24px, 5vw, 72px); min-height: 100dvh; } .ent .izq { gap: 32px; } .ent .izq h1 { font-size: clamp(36px, 4.7vw, 70px); font-weight: 850; font-stretch: 120%; max-width: 11ch; } .ent .izq p { color: var(--grisC); font-size: 18px; margin-top: 18px; max-width: 42ch; }
.ent .der { display: grid; place-items: center; padding: 30px 24px; } .ent form { width: min(340px, 100%); } .ent .pin { font-size: 32px; text-align: center; letter-spacing: .4em; padding-left: .4em; font-weight: 700; margin: 8px 0 14px; } .ent form .btn { width: 100%; } .ent .err { color: var(--rojoH); font-weight: 600; min-height: 28px; margin-top: 12px; }
.tira { display: flex; gap: 12px; margin: 40px -100px 0 0; overflow: hidden; } .tira > div { display: flex; gap: 12px; animation: tira 40s linear infinite; } .tira svg { width: 150px; height: 266px; border-radius: 9px; flex: none; } @keyframes tira { to { transform: translateX(-50%); } }
.demo-av { background: var(--ambar); color: #241a08; font-weight: 600; text-align: center; padding: 9px 16px; font-size: 14.5px; position: relative; z-index: 3; }

@media (max-width: 980px) {
  .cuerpo { grid-template-columns: 1fr; gap: 36px; } .datos { grid-template-columns: repeat(2, 1fr); } .datos > div { border-top: 1px solid var(--linea); } .datos > div:nth-child(odd) { border-left: 0; } .datos > div:nth-child(-n+2) { border-top: 0; }
  .hero { grid-template-columns: 1fr; } .hero .acc { justify-content: flex-start; } .ent { grid-template-columns: 1fr; } .ent .izq { min-height: auto; padding-bottom: 30px; } .tira svg { width: 96px; height: 170px; }
  .caja.gr { grid-template-columns: 1fr; overflow: auto; } .caja.gr .lado { max-height: none; } .cine video, .cine svg { max-height: 62dvh; }
}
@media (max-width: 620px) {
  .vacia { justify-items: start; padding: 20px 16px; text-align: left; } .vacia { max-width: 240px; }
  .ancho { width: calc(100% - 32px); } .cab { flex-wrap: wrap; gap: 8px; } .marca small { display: none; } .pc span { display: none; } .mesa .cuad { grid-template-columns: 96px 1fr; } .pistas div { padding: 0 10px; font-size: 12.5px; }
  .enc { grid-template-columns: 28px 40px minmax(0, 1fr); padding-right: 0; } .enc .op { grid-column: 3; padding-bottom: 6px; margin-left: 2px; } .enc .num { font-size: 24px; } .enc.prod { grid-template-columns: 66px minmax(0, 1fr) 74px; } .rej { grid-template-columns: 1fr 1fr; gap: 16px; } .velo { padding: 0; place-items: end stretch; } .caja { border-radius: 18px 18px 0 0; max-height: 94dvh; } .tit .btn span { display: none; }
  .baja { padding: 0 8px; font-size: 14.5px; } .ic { width: 42px; } .datos b { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
