/* Panel de Keny. Sin dependencias externas (la política de contenido solo deja cargar lo nuestro). */
:root {
  --naranja: #FF7A3D; --naranja-oscuro: #D9531E; --tinta: #1B1F2B; --menta: #7CF5C4; --menta-oscura: #138a5e;
  --fondo: #FBF7F2; --tarjeta: #FFFFFF; --borde: #ECE4DA; --suave: #6B6F7B; --rojo: #C2341B;
  --radio: 18px; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--naranja-oscuro); }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #F3ECE3; padding: 1px 6px; border-radius: 6px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 0.75rem; }

.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 880px; margin: 0 auto; padding: 18px 16px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a, .menu .enlace { color: var(--tinta); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.menu a[aria-current="page"] { background: var(--tinta); color: #fff; }
.menu a:hover, .menu .enlace:hover { background: #F0E8DE; }
.menu a[aria-current="page"]:hover { background: var(--tinta); }
.menu form { margin: 0; }

.contenido { max-width: 880px; margin: 0 auto; padding: 8px 16px 48px; }
.pie { text-align: center; color: var(--suave); font-size: 0.85rem; padding: 24px 16px 40px; }

.saludo { font-size: 1.9rem; margin-top: 8px; }
.saludo .nombre { color: var(--naranja-oscuro); }
.cuenta { color: var(--suave); margin: -4px 0 20px; }

.rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 22px; margin-bottom: 16px; }
.tarjeta.estrecha { max-width: 460px; margin: 32px auto; }
.tarjeta.discreta { background: transparent; }
.nota { color: var(--suave); font-size: 0.92rem; margin: 0.25rem 0 0.75rem; }
.vacio { color: var(--suave); font-style: italic; }
.advertencia { background: #FFF2E9; border-left: 4px solid var(--naranja); padding: 10px 14px; border-radius: 8px; font-size: 0.95rem; }

.cifra { font-size: 2.8rem; font-weight: 700; margin: 0; line-height: 1; letter-spacing: -0.02em; }
.cifra span { font-size: 1.4rem; color: var(--suave); margin-left: 2px; }
.barra { height: 12px; background: #F0E8DE; border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.barra-relleno { height: 100%; background: var(--menta-oscura); border-radius: 999px; }
.barra-aviso .barra-relleno { background: var(--naranja); }

.formulario { display: grid; gap: 6px; }
.formulario label { font-weight: 600; font-size: 0.92rem; margin-top: 6px; }
.formulario button { margin-top: 12px; justify-self: start; }
input, select { font: inherit; color: inherit; width: 100%; padding: 10px 12px; border: 1px solid #D9CFC3;
  border-radius: 12px; background: #fff; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--menta); outline-offset: 2px; }
input[name="codigo"] { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.15em; text-transform: uppercase; }

button, .boton { font: inherit; font-weight: 600; cursor: pointer; display: inline-block; text-decoration: none;
  border: 0; border-radius: 999px; padding: 10px 20px; background: var(--naranja); color: var(--tinta); }
button:hover, .boton:hover { background: var(--naranja-oscuro); color: #fff; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.secundario, .boton.secundario { background: transparent; color: var(--tinta); border: 1px solid #D9CFC3; }
button.secundario:hover, .boton.secundario:hover { background: #F0E8DE; color: var(--tinta); }
button.peligro { background: var(--rojo); color: #fff; }
button.peligro:hover { background: #9E2914; }
button.enlace { background: transparent; padding: 8px 12px; font-weight: 500; }

.en-linea { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.en-linea label { flex-basis: 100%; font-weight: 600; font-size: 0.92rem; }
.en-linea input { flex: 1 1 160px; max-width: 220px; }
.en-linea .casilla { flex-basis: auto; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.casilla input { width: auto; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.acciones .en-linea { margin-top: 0; }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--borde); }
.lista li:first-child { border-top: 0; }
.lista form { margin: 0; flex-shrink: 0; }
.lista .nota { margin: 2px 0 0; }
.etiqueta { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #F0E8DE; color: var(--suave); margin-left: 6px; vertical-align: 2px; }
.etiqueta-ok { background: #DDFBEF; color: var(--menta-oscura); }
.etiqueta-espera { background: #FFF2E9; color: var(--naranja-oscuro); }
.pasos { padding-left: 1.2rem; }
.pasos li { margin: 4px 0; }

.memoria { white-space: pre-wrap; word-break: break-word; font: inherit; background: var(--fondo);
  border: 1px solid var(--borde); border-radius: 12px; padding: 16px; margin: 0 0 16px; }

.avisos { margin-bottom: 12px; }
.aviso { padding: 12px 16px; border-radius: 12px; margin: 0 0 8px; font-weight: 500; }
.aviso-success { background: #DDFBEF; color: #0d5e40; }
.aviso-error { background: #FDE5E0; color: #8a2412; }
.error { color: var(--rojo); font-weight: 500; margin: 4px 0 0; }

@media (max-width: 640px) {
  .rejilla { grid-template-columns: 1fr; gap: 0; }
  .saludo { font-size: 1.5rem; }
  .tarjeta { padding: 18px; }
  .lista li { flex-direction: column; align-items: flex-start; }
}

/* Ancho de la barra de consumo sin estilos en línea (la política de contenido los bloquea). */
.ancho-0 { width: 0%; }
.ancho-1 { width: 1%; }
.ancho-2 { width: 2%; }
.ancho-3 { width: 3%; }
.ancho-4 { width: 4%; }
.ancho-5 { width: 5%; }
.ancho-6 { width: 6%; }
.ancho-7 { width: 7%; }
.ancho-8 { width: 8%; }
.ancho-9 { width: 9%; }
.ancho-10 { width: 10%; }
.ancho-11 { width: 11%; }
.ancho-12 { width: 12%; }
.ancho-13 { width: 13%; }
.ancho-14 { width: 14%; }
.ancho-15 { width: 15%; }
.ancho-16 { width: 16%; }
.ancho-17 { width: 17%; }
.ancho-18 { width: 18%; }
.ancho-19 { width: 19%; }
.ancho-20 { width: 20%; }
.ancho-21 { width: 21%; }
.ancho-22 { width: 22%; }
.ancho-23 { width: 23%; }
.ancho-24 { width: 24%; }
.ancho-25 { width: 25%; }
.ancho-26 { width: 26%; }
.ancho-27 { width: 27%; }
.ancho-28 { width: 28%; }
.ancho-29 { width: 29%; }
.ancho-30 { width: 30%; }
.ancho-31 { width: 31%; }
.ancho-32 { width: 32%; }
.ancho-33 { width: 33%; }
.ancho-34 { width: 34%; }
.ancho-35 { width: 35%; }
.ancho-36 { width: 36%; }
.ancho-37 { width: 37%; }
.ancho-38 { width: 38%; }
.ancho-39 { width: 39%; }
.ancho-40 { width: 40%; }
.ancho-41 { width: 41%; }
.ancho-42 { width: 42%; }
.ancho-43 { width: 43%; }
.ancho-44 { width: 44%; }
.ancho-45 { width: 45%; }
.ancho-46 { width: 46%; }
.ancho-47 { width: 47%; }
.ancho-48 { width: 48%; }
.ancho-49 { width: 49%; }
.ancho-50 { width: 50%; }
.ancho-51 { width: 51%; }
.ancho-52 { width: 52%; }
.ancho-53 { width: 53%; }
.ancho-54 { width: 54%; }
.ancho-55 { width: 55%; }
.ancho-56 { width: 56%; }
.ancho-57 { width: 57%; }
.ancho-58 { width: 58%; }
.ancho-59 { width: 59%; }
.ancho-60 { width: 60%; }
.ancho-61 { width: 61%; }
.ancho-62 { width: 62%; }
.ancho-63 { width: 63%; }
.ancho-64 { width: 64%; }
.ancho-65 { width: 65%; }
.ancho-66 { width: 66%; }
.ancho-67 { width: 67%; }
.ancho-68 { width: 68%; }
.ancho-69 { width: 69%; }
.ancho-70 { width: 70%; }
.ancho-71 { width: 71%; }
.ancho-72 { width: 72%; }
.ancho-73 { width: 73%; }
.ancho-74 { width: 74%; }
.ancho-75 { width: 75%; }
.ancho-76 { width: 76%; }
.ancho-77 { width: 77%; }
.ancho-78 { width: 78%; }
.ancho-79 { width: 79%; }
.ancho-80 { width: 80%; }
.ancho-81 { width: 81%; }
.ancho-82 { width: 82%; }
.ancho-83 { width: 83%; }
.ancho-84 { width: 84%; }
.ancho-85 { width: 85%; }
.ancho-86 { width: 86%; }
.ancho-87 { width: 87%; }
.ancho-88 { width: 88%; }
.ancho-89 { width: 89%; }
.ancho-90 { width: 90%; }
.ancho-91 { width: 91%; }
.ancho-92 { width: 92%; }
.ancho-93 { width: 93%; }
.ancho-94 { width: 94%; }
.ancho-95 { width: 95%; }
.ancho-96 { width: 96%; }
.ancho-97 { width: 97%; }
.ancho-98 { width: 98%; }
.ancho-99 { width: 99%; }
.ancho-100 { width: 100%; }
