body { min-height: 100vh; font-size: 17px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: 60px;
  background: var(--fondo); border-bottom: 2px solid var(--principal);
  padding-top: env(safe-area-inset-top);
}
.marca { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; max-width: 560px; margin: 0 auto; color: var(--texto); text-decoration: none; }
.marca img { height: 26px; width: auto; display: block; }
.marca span { font-weight: 700; font-size: 16px; padding-left: 12px; border-left: 2px solid var(--linea); white-space: nowrap; }
.contenedor { max-width: 560px; margin: 0 auto; padding: calc(60px + env(safe-area-inset-top) + 18px) 16px 40px; }
[hidden] { display: none !important; }

.titulo-sec { margin: 26px 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); }

.qr-bloque { display: flex; align-items: center; gap: 16px; background: var(--fondo-2); border-radius: 18px; padding: 14px; }
.marco-qr { flex: none; width: 148px; height: 148px; padding: 5px; background: var(--acento); border-radius: 14px; }
.papel { width: 100%; height: 100%; background: var(--papel); border-radius: 9px; padding: 12px; }
.papel .qr { display: block; width: 100%; height: 100%; }
.qr-bloque p { margin: 0; font-size: 16px; color: var(--texto-suave); }

.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.agenda li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.agenda time { font-weight: 800; color: var(--acento); font-variant-numeric: tabular-nums; font-size: 18px; }
.agenda p { margin: 0; font-size: 17px; font-weight: 500; }

.botones { display: grid; gap: 14px; margin-top: 28px; }
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font: 700 20px/1 var(--fuente); padding: 22px 16px; border-radius: 16px; border: 3px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.btn-acento { background: var(--acento); color: var(--acento-texto); }
.btn-acento:active { filter: brightness(.92); }
.btn-acento:disabled { background: #6b5a2c; color: #b8ab86; cursor: not-allowed; }
.btn-borde { background: transparent; color: var(--texto); border-color: var(--principal-claro); }
.btn-borde:active { background: var(--fondo-2); }
.btn + .btn { margin-top: 14px; }

.volver { display: inline-block; margin: 2px 0 0; padding: 8px 0; color: var(--principal-claro); font-weight: 600; text-decoration: none; }

label { display: block; margin: 20px 0 8px; font-weight: 600; }
.opc { font-weight: 400; color: var(--texto-suave); }
select, textarea, input[type=text] {
  width: 100%; font: 500 17px/1.35 var(--fuente); color: var(--qr); background: #fff;
  border: 3px solid transparent; border-radius: 14px; padding: 14px;
}
select { appearance: none; -webkit-appearance: none; padding-right: 44px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%230b1a20' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
textarea { resize: vertical; min-height: 130px; }
select:focus, textarea:focus, input:focus { outline: none; border-color: var(--acento); }
.contador { text-align: right; margin-top: 6px; font-size: 14px; color: var(--texto-suave); font-variant-numeric: tabular-nums; }

.fila-switch { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 14px 16px; background: var(--fondo-2); border-radius: 14px; font-weight: 600; }
.switch { position: relative; width: 62px; height: 36px; border: 0; border-radius: 18px; background: #4a6670; cursor: pointer; flex: none; transition: background .15s; }
.switch span { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked=true] { background: var(--principal); }
.switch[aria-checked=true] span { transform: translateX(26px); }

.error { color: var(--error); font-weight: 600; margin: 14px 0 0; }
#enviar { margin-top: 22px; }

.gracias { text-align: center; padding: 28px 0 0; }
.gracias .check { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--principal); font-size: 44px; line-height: 76px; font-weight: 800; }
.gracias h2 { font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.gracias p { color: var(--texto-suave); margin: 0 0 26px; }

.lista { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 12px; }
.pregunta { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; background: var(--fondo-2); border-radius: 16px; padding: 16px; }
.pregunta .texto { margin: 0 0 8px; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.pregunta .meta { margin: 0; font-size: 14px; color: var(--texto-suave); }
.pregunta .meta b { color: var(--acento); font-variant-numeric: tabular-nums; }
.voto {
  min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; color: var(--texto); border: 3px solid var(--principal-claro); border-radius: 14px;
  padding: 8px 10px; font: 800 20px/1.1 var(--fuente); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.voto small { font: 600 11px/1 var(--fuente); letter-spacing: .04em; text-transform: uppercase; color: var(--principal-claro); }
.voto:active, .voto.ok { background: var(--principal); border-color: var(--principal); }
.vacio { text-align: center; color: var(--texto-suave); padding: 24px 8px; }
