/* =====================================================================
   CAMPUS · Estilos (versión 2: bloques de color tipo "bento")
   Paleta de las piezas de SISTAC Campus Colombia.
   ===================================================================== */
:root {
  --navy: #2F313D; --navy-2: #3B3E4D; --navy-3: #24262F;
  --naranja: #EF944C; --naranja-suave: #FCE9D9;
  --azul: #75A6E4; --azul-suave: #E3EDFA;
  --verde: #71AF76; --verde-suave: #E2F0E3;
  --amarillo: #EBC26A; --amarillo-suave: #FAF0D6;
  --crema: #F1EFEA; --crema-2: #F8F7F3; --blanco: #FFFFFF;
  --tinta: #2F313D; --suave: #646877; --linea: #E4E1DA; --rojo: #D0604A;
  --radio: 30px;
  --display: 'Montserrat Alternates', 'Montserrat', system-ui, sans-serif;
  --texto: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--texto); color: var(--tinta); background: var(--crema); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .45em; color: var(--navy); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 800; }
p { margin: 0 0 1em; }
.hidden { display: none !important; }
.muted { color: var(--suave); }
.small { font-size: .88rem; }
.center { text-align: center; }
.etiqueta { font-size: .76rem; font-weight: 700; letter-spacing: .02em; opacity: .85; }

/* ---------- Estructura ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.topbar { position: sticky; top: 0; z-index: 30; padding: 12px 16px 0; }
.topbar-inner { max-width: 1140px; margin: 0 auto; padding: 10px 12px 10px 22px; display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 50px; box-shadow: 0 6px 24px rgba(47, 49, 61, .08); }
.topbar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar .brand img { height: 30px; display: block; }
.topbar .tag { font-size: .75rem; font-weight: 700; background: var(--navy); color: #fff; border-radius: 50px; padding: 5px 13px; }
.topbar .spacer { flex: 1; }
.topbar .right { font-size: .82rem; color: var(--suave); font-weight: 700; padding-right: 8px; }
.demo-bar { max-width: 1140px; margin: 10px auto 0; background: var(--amarillo); color: var(--navy); font-size: .84rem; padding: 8px 20px; text-align: center; border-radius: 50px; font-weight: 600; }
.demo-bar button { margin-left: 10px; background: none; border: 0; text-decoration: underline; font: inherit; font-weight: 800; color: inherit; cursor: pointer; }

/* ---------- Bloques de color (héroes) ---------- */
.bloque { position: relative; overflow: hidden; border-radius: 40px; color: var(--blanco); margin: 14px 16px 0; }
.bloque h1, .bloque h2, .bloque h3 { color: var(--blanco); }
.bloque.naranja { background: var(--naranja); }
.bloque.navy { background: var(--navy); }
.bloque.azul { background: var(--azul); }
.bloque.verde { background: var(--verde); }
.bloque .wrap { position: relative; z-index: 2; padding-top: 52px; padding-bottom: 64px; }
.garabato { position: absolute; z-index: 1; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.garabato path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trazo 1.6s var(--ease) .2s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.chispa { display: inline-block; width: 34px; height: 34px; vertical-align: top; margin-left: 4px; }
.kicker { font-size: .76rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; opacity: .92; margin-bottom: 16px; }
.marcado { display: inline-block; background: var(--azul); color: var(--blanco); padding: 0 .22em; border-radius: 6px; }
.bloque.azul .marcado { background: var(--navy); }
.lead { font-size: 1.12rem; max-width: 640px; }

/* ---------- Tarjetas y mosaico ---------- */
.card { background: var(--blanco); border-radius: var(--radio); padding: 26px; border: 1px solid rgba(47, 49, 61, .05); }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card.plana { border: 1.5px solid var(--linea); }
.grid { display: grid; gap: 16px; }
.grid.dos { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.tres { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.seccion { padding: 30px 0; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radio); padding: 24px; background: var(--blanco); min-height: 150px; display: flex; flex-direction: column; animation: sube .5s var(--ease) both; }
.tile:nth-child(2) { animation-delay: .04s; } .tile:nth-child(3) { animation-delay: .08s; } .tile:nth-child(4) { animation-delay: .12s; } .tile:nth-child(5) { animation-delay: .16s; } .tile:nth-child(6) { animation-delay: .2s; }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tile.naranja { background: var(--naranja); color: #fff; }
.tile.azul { background: var(--azul); color: #fff; }
.tile.verde { background: var(--verde); color: #fff; }
.tile.amarillo { background: var(--amarillo); color: var(--navy); }
.tile.navy { background: var(--navy); color: #fff; }
.tile.crema { background: var(--crema-2); }
.tile.naranja h2, .tile.naranja h3, .tile.azul h2, .tile.azul h3, .tile.verde h2, .tile.verde h3, .tile.navy h2, .tile.navy h3 { color: #fff; }
.tile .cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.tile .grande { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.tile .pie-tile { margin-top: auto; padding-top: 14px; }
.tile .icono { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.tile.blanco .icono, .tile.crema .icono { background: var(--crema); }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.circ { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 42px; transition: transform .15s var(--ease); text-decoration: none; }
.circ:hover { transform: rotate(-12deg) scale(1.06); }
.circ.blanco { background: #fff; color: var(--navy); }
.circ svg, .icono svg, .nav-lat svg, .btn svg { width: 19px; height: 19px; }
.pildora { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); color: var(--navy); border-radius: 50px; padding: 8px 15px; font-size: .84rem; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; border-radius: 50px; padding: 4px 11px; background: var(--crema); color: var(--navy); white-space: nowrap; }
.chip.naranja { background: var(--naranja); color: #fff; }
.chip.azul { background: var(--azul); color: #fff; }
.chip.verde { background: var(--verde); color: #fff; }
.chip.amarillo { background: var(--amarillo); color: var(--navy); }
.chip.rojo { background: #F7DCD5; color: #8C3524; }
.chip.navy { background: var(--navy); color: #fff; }
.stat { background: var(--blanco); border-radius: 22px; padding: 18px; }
.stat .n { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat .t { font-size: .82rem; color: var(--suave); font-weight: 600; margin-top: 6px; }

/* ---------- Agenda pública ---------- */
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--crema-2); align-items: center; }
.agenda li.c-naranja { background: var(--naranja-suave); } .agenda li.c-azul { background: var(--azul-suave); } .agenda li.c-verde { background: var(--verde-suave); } .agenda li.c-amarillo { background: var(--amarillo-suave); }
.agenda .hora { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--navy); white-space: nowrap; }
.agenda .hora small { display: block; font-family: var(--texto); font-weight: 600; font-size: .74rem; color: var(--suave); }
.agenda .grupo { font-weight: 800; color: var(--navy); }
.agenda .reto { font-size: .88rem; color: var(--suave); margin-top: 2px; }
.agenda li.pausa { background: transparent; border: 2px dashed var(--linea); }
.agenda li.pausa .grupo { color: var(--suave); }

/* ---------- Formularios ---------- */
label { display: block; font-weight: 700; font-size: .88rem; margin: 0 0 6px; color: var(--navy); }
.ayuda { font-size: .79rem; color: var(--suave); margin-top: 5px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=time], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--tinta); background: var(--crema-2); border: 1.5px solid transparent; border-radius: 16px; padding: 12px 15px; outline: none; transition: border-color .15s, background .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(117, 166, 228, .18); }
.campo { margin-bottom: 16px; }
.fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fila > * { flex: 0 0 auto; }
.fila .crece { flex: 1 1 200px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .92rem; cursor: pointer; margin-bottom: 6px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--naranja); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .93rem; border-radius: 50px; padding: 12px 22px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s var(--ease), background .15s, box-shadow .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primario { background: var(--navy); color: #fff; }
.btn.naranja { background: var(--naranja); color: #fff; box-shadow: 0 8px 20px rgba(239, 148, 76, .35); }
.btn.azul { background: var(--azul); color: #fff; }
.btn.verde { background: var(--verde); color: #fff; }
.btn.linea { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.suave { background: var(--crema); color: var(--navy); }
.btn.peligro { background: transparent; color: var(--rojo); border-color: #F0C6BC; }
.btn.chico { padding: 7px 14px; font-size: .83rem; }
.btn.blanco { background: #fff; color: var(--navy); }
.btn.grande { padding: 16px 30px; font-size: 1.05rem; }
.icono-btn { background: none; border: 0; cursor: pointer; padding: 7px 10px; border-radius: 12px; color: var(--navy); font: inherit; font-size: .88rem; font-weight: 700; }
.icono-btn:hover { background: var(--crema); }

/* ---------- Avisos ---------- */
.aviso { display: flex; gap: 10px; align-items: flex-start; border-radius: 20px; padding: 13px 18px; font-size: .92rem; margin-bottom: 12px; background: var(--azul-suave); }
.aviso.amarillo { background: var(--amarillo-suave); }
.aviso.naranja { background: var(--naranja-suave); }
.aviso.verde { background: var(--verde-suave); }
.aviso.rojo { background: #F7DCD5; }
.loading { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 50px 10px; color: var(--suave); font-weight: 600; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--linea); border-top-color: var(--naranja); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.toast-wrap { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 520px); }
.toast { background: var(--navy); color: #fff; border-radius: 20px; padding: 13px 18px; font-weight: 600; font-size: .92rem; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); animation: sube .3s var(--ease); }
.toast.ok { background: #3E7A45; }
.toast.bad { background: var(--rojo); }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(36, 38, 47, .5); backdrop-filter: blur(4px); z-index: 250; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 14px; overflow-y: auto; }
.modal { background: #fff; border-radius: 32px; padding: 28px; width: min(660px, 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); animation: sube .3s var(--ease); }
.modal h3 { margin-bottom: 14px; }
.modal .acciones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Tablas ---------- */
.tabla-wrap { overflow-x: auto; border-radius: 24px; background: #fff; }
table.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tabla th { text-align: left; background: var(--navy); color: #fff; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: 13px 14px; white-space: nowrap; }
table.tabla td { padding: 12px 14px; border-top: 1px solid var(--linea); vertical-align: middle; }
table.tabla tr:hover td { background: var(--crema-2); }
table.tabla .num { text-align: center; font-variant-numeric: tabular-nums; }
.nota-grande { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--navy); }

/* ---------- Pie ---------- */
.pie { margin: 50px 16px 16px; background: #fff; border-radius: 32px; }
.pie .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.pie .logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pie .logos img { height: 38px; }
.pie .logos img.ih { height: 42px; }
.pie .nota { font-size: .8rem; color: var(--suave); max-width: 360px; }

/* ---------- Correos en modo demo ---------- */
.mail-preview { position: fixed; right: 14px; bottom: 14px; width: min(420px, 94vw); max-height: 70vh; overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); z-index: 260; }
.mail-preview header { position: sticky; top: 0; background: var(--navy); color: #fff; padding: 11px 16px; font-size: .82rem; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.mail-preview header button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
.mail-preview .body { zoom: .7; }

/* ---------- Escala 1 a 5 ---------- */
.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.escala button { font: inherit; font-family: var(--display); font-weight: 800; font-size: 1.25rem; border-radius: 18px; border: 0; background: var(--crema); color: var(--navy); padding: 14px 0; cursor: pointer; transition: transform .12s var(--ease), background .15s; }
.escala button:hover { transform: translateY(-2px); }
.escala button.on { color: #fff; transform: scale(1.04); }
.escala button:nth-child(1).on { background: var(--navy); }
.escala button:nth-child(2).on { background: var(--azul); }
.escala button:nth-child(3).on { background: var(--verde); }
.escala button:nth-child(4).on { background: var(--amarillo); color: var(--navy); }
.escala button:nth-child(5).on { background: var(--naranja); }
.escala-texto { min-height: 1.4em; font-size: .86rem; color: var(--suave); margin-top: 8px; font-weight: 600; }
.criterio { border-top: 1px solid var(--linea); padding: 20px 0; }
.criterio:first-of-type { border-top: 0; padding-top: 4px; }
.criterio .peso { font-family: var(--display); font-weight: 800; background: var(--naranja); color: #fff; border-radius: 50px; padding: 3px 12px; font-size: .9rem; }
details.guia summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: .9rem; list-style: none; }
details.guia summary::-webkit-details-marker { display: none; }
details.guia summary::before { content: '+'; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--naranja); color: #fff; align-items: center; justify-content: center; margin-right: 8px; font-weight: 900; font-size: .85rem; }
details.guia[open] summary::before { content: '–'; }
details.guia .niveles { margin-top: 10px; font-size: .88rem; display: grid; gap: 6px; }
details.guia .niveles div { background: var(--crema-2); border-radius: 14px; padding: 9px 13px; }
details.guia .niveles b { color: var(--naranja); margin-right: 6px; }

/* ---------- Lista con filas (grupos, jurados...) ---------- */
.persona { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linea); font-size: .92rem; }
.persona:first-child { border-top: 0; }
.persona > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.persona > .fila { flex-wrap: nowrap; }
button.persona { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; }
.fila-grupo { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; background: var(--crema-2); margin-bottom: 8px; cursor: pointer; border: 0; width: 100%; font: inherit; text-align: left; transition: transform .15s var(--ease); }
.fila-grupo:hover { transform: translateX(3px); }
.fila-grupo .num { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--naranja); }
.fila-grupo:nth-child(4n+2) .num { background: var(--azul); } .fila-grupo:nth-child(4n+3) .num { background: var(--verde); } .fila-grupo:nth-child(4n) .num { background: var(--amarillo); color: var(--navy); }

/* ---------- Panel: barra lateral ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; gap: 16px; padding: 16px; min-height: 100vh; }
.nav-lat { background: var(--navy); border-radius: 32px; padding: 22px 14px; color: #fff; position: sticky; top: 16px; height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-lat .logo { padding: 4px 10px 18px; }
.nav-lat .logo img { height: 34px; }
.nav-lat button { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; color: rgba(255, 255, 255, .72); font: inherit; font-weight: 700; font-size: .92rem; padding: 11px 14px; border-radius: 18px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.nav-lat button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-lat button.on { background: #fff; color: var(--navy); }
.nav-lat button.proy { margin-top: auto; background: var(--naranja); color: #fff; }
.nav-lat button.proy.on { background: #fff; color: var(--naranja); }
.nav-lat .demo { font-size: .72rem; background: var(--amarillo); color: var(--navy); border-radius: 14px; padding: 8px 10px; margin: 10px 4px 0; font-weight: 600; }
.contenido { min-width: 0; padding: 6px 4px 120px; }
.cabecera { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 6px 0 20px; }
.cabecera h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0; }
.lista-orden { list-style: none; margin: 0; padding: 0; }
.lista-orden > li { background: #fff; border-radius: 22px; padding: 12px 14px; margin-bottom: 8px; display: grid; grid-template-columns: 48px 92px 1fr auto; gap: 12px; align-items: center; }
.lista-orden > li.pausa { background: transparent; border: 2px dashed var(--linea); }
.lista-orden .pos { width: 44px; height: 44px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--naranja); }
.lista-orden > li:nth-child(4n+2) .pos { background: var(--azul); } .lista-orden > li:nth-child(4n+3) .pos { background: var(--verde); } .lista-orden > li:nth-child(4n) .pos { background: var(--amarillo); color: var(--navy); }
.lista-orden li.pausa .pos { background: var(--crema); color: var(--suave); }
.lista-orden .hora { font-family: var(--display); font-weight: 800; color: var(--navy); }
.lista-orden .hora small { display: block; font-family: var(--texto); font-size: .72rem; color: var(--suave); font-weight: 600; }
.lista-orden li.arrastrando { opacity: .5; }
.lista-orden li[draggable=true] { cursor: grab; }
.flechas { display: flex; gap: 2px; }
.barra { height: 9px; border-radius: 6px; background: var(--crema); overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--verde); border-radius: 6px; transition: width .6s var(--ease); }
.tile .barra { background: rgba(255, 255, 255, .35); }
.tile .barra > span { background: #fff; }
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 20px; }
.paso { display: flex; gap: 14px; align-items: flex-start; }
.paso .n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--naranja); color: #fff; font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.paso.hecho .n { background: var(--verde); }

/* Barra flotante del proyector (se ve en todo el panel) */
.mando { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 200; background: var(--navy); color: #fff; border-radius: 50px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); max-width: calc(100vw - 24px); }
.mando .vivo { width: 10px; height: 10px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 0 rgba(239, 148, 76, .7); animation: pulso 1.6s infinite; flex: 0 0 10px; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(239, 148, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 148, 76, 0); } }
.mando .que { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.mando .reloj { font-family: var(--display); font-weight: 800; font-size: 1.05rem; min-width: 58px; text-align: center; }
.mando .circ { width: 38px; height: 38px; flex-basis: 38px; background: rgba(255, 255, 255, .12); }
.mando .circ.on { background: var(--naranja); }

/* Escenas del proyector en el panel */
.escenas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.escena-btn { border: 0; border-radius: 26px; padding: 18px; text-align: left; font: inherit; cursor: pointer; color: #fff; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .15s var(--ease), box-shadow .15s; position: relative; }
.escena-btn:hover { transform: translateY(-3px); }
.escena-btn b { font-family: var(--display); font-size: 1.12rem; font-weight: 800; line-height: 1.1; }
.escena-btn span { font-size: .78rem; opacity: .9; font-weight: 600; }
.escena-btn.on { box-shadow: 0 0 0 4px var(--crema), 0 0 0 8px var(--navy); }
.escena-btn.on::after { content: 'EN PANTALLA'; position: absolute; top: 14px; right: 14px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; background: #fff; color: var(--navy); padding: 3px 8px; border-radius: 50px; }
.vista-previa { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--navy); }
.vista-previa iframe { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }

/* Correos: editor y vista previa */
.editor-correo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.marco-correo { position: sticky; top: 16px; border-radius: 28px; overflow: hidden; background: var(--crema); border: 8px solid var(--navy); }
.marco-correo .barra-mail { background: var(--navy); color: #fff; padding: 10px 14px 12px; font-size: .82rem; }
.marco-correo iframe { width: 100%; height: 70vh; border: 0; display: block; background: var(--crema); }
.editable { position: relative; border-radius: 22px; background: #fff; padding: 18px; border: 2px solid var(--amarillo); }
.editable .lapiz { position: absolute; top: -12px; left: 16px; background: var(--amarillo); color: var(--navy); font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; }
.fijo { border-radius: 22px; background: var(--crema-2); padding: 14px 18px; font-size: .86rem; color: var(--suave); }
.marca { display: inline-block; background: var(--azul-suave); color: var(--navy); border-radius: 8px; padding: 1px 7px; margin: 2px; font-size: .78rem; font-weight: 700; cursor: pointer; border: 0; font-family: inherit; }
.tabs-mini { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs-mini button { border: 0; font: inherit; font-weight: 700; font-size: .86rem; padding: 9px 16px; border-radius: 50px; background: #fff; color: var(--navy); cursor: pointer; }
.tabs-mini button.on { background: var(--navy); color: #fff; }

/* ---------- Entrada / QR ---------- */
.qr-box { background: #fff; border-radius: 30px; padding: 22px; display: inline-block; }
.qr-box svg { display: block; width: min(260px, 70vw); height: auto; }
.lector { position: relative; border-radius: 30px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; }
.lector video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lector .marco { position: absolute; inset: 14%; border: 4px solid var(--naranja); border-radius: 26px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.resultado-entrada { border-radius: 28px; padding: 24px; text-align: center; }
.resultado-entrada.ok { background: var(--verde); color: #fff; }
.resultado-entrada.ok h2, .resultado-entrada.ok .muted { color: #fff; }
.resultado-entrada.repetido { background: var(--amarillo); }
.resultado-entrada.error { background: #F7DCD5; }

/* ---------- Pantalla de resultados ---------- */
.pantalla { min-height: 100vh; display: flex; flex-direction: column; }
.pantalla .escena { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 40px 24px; text-align: center; color: #fff; transition: background .5s; }
.pantalla .escena h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 5.6rem); margin: 0; }
.pantalla .escena .premio { font-family: var(--display); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: clamp(.9rem, 2vw, 1.3rem); margin-bottom: 18px; }
.pantalla .escena .startup { font-size: clamp(1.1rem, 2.6vw, 1.7rem); margin-top: 14px; font-weight: 600; }
.pantalla .controles { display: flex; gap: 10px; justify-content: center; padding: 14px; background: #fff; }
.aparece { animation: aparece .6s var(--ease) both; }
@keyframes aparece { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding: 10px; }
  .nav-lat { position: sticky; top: 8px; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-radius: 50px; z-index: 40; gap: 2px; scrollbar-width: none; }
  .nav-lat::-webkit-scrollbar { display: none; }
  .nav-lat .logo, .nav-lat .demo { display: none; }
  .nav-lat button { flex: 0 0 auto; padding: 9px 14px; font-size: .84rem; }
  .nav-lat button.proy { margin-top: 0; }
  .nav-lat button svg { display: none; }
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .editor-correo { grid-template-columns: 1fr; }
  .marco-correo { position: static; }
}
@media (max-width: 640px) {
  .card { padding: 20px; border-radius: 24px; }
  .bloque { border-radius: 30px; margin: 10px 10px 0; }
  .bloque .wrap { padding-top: 36px; padding-bottom: 44px; }
  .lista-orden > li, .lista-orden > li.pausa { grid-template-columns: 44px 1fr auto; }
  .lista-orden .info { grid-column: 1 / -1; }
  .topbar .tag { display: none; }
  .agenda li { grid-template-columns: 84px 1fr; }
  .mando .que { max-width: 120px; }
}
@media print { .topbar, .demo-bar, .nav-lat, .btn, .pie, .mando { display: none !important; } body { background: #fff; } }
.pildora svg { width: 16px; height: 16px; }
.tile.navy .tabs-mini button { background: rgba(255, 255, 255, .12); color: #fff; }
.tile.navy .tabs-mini button.on { background: #fff; color: var(--navy); }
.escena-btn.on::after { top: auto; bottom: 14px; right: 14px; }
#recargar { background: #fff; }
