:root {
  --fondo: #F6F7F4; --tinta: #1B2430; --tinta-2: #4A5563; --acento: #0B5C5C; --acento-fondo: #DCEEEE; --acento-texto: #0B4A4A;
  --borde: #D5DAD2; --borde-campo: #8A94A3; --blanco: #FFFFFF; --error: #8F1D1D; --error-fondo: #FBE9E7;
  --fuente: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--fuente); }
body { min-height: 100vh; padding-top: env(safe-area-inset-top, 0px); }
a { color: var(--acento); }
a:hover { color: #073D3D; }
:focus-visible { outline: 3px solid #1D7A7A; outline-offset: 2px; }

.pantalla { max-width: 560px; margin: 0 auto; padding: 24px 16px 120px; display: flex; flex-direction: column; gap: 20px; }
.sobretitulo { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--acento); }
h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; }
h2 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 650; }
p { margin: 0; }
.sub { font-size: 15px; line-height: 1.45; color: var(--tinta-2); }
.nota { font-size: 13px; line-height: 1.4; color: var(--tinta-2); }

.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 14px; font-weight: 600; }
.fila { display: flex; gap: 8px; align-items: center; }
input[type=text] { flex: 1; min-width: 0; height: 48px; border: 1.5px solid var(--borde-campo); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--blanco); color: var(--tinta); }
.boton { height: 48px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--acento); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.boton:disabled { opacity: .6; cursor: default; }
.boton-grande { height: 52px; border-radius: 12px; font-size: 17px; font-weight: 700; width: 100%; }
.boton-sec { background: transparent; color: var(--acento); border: 1.5px solid var(--acento); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 22px; background: var(--acento-fondo); color: var(--acento-texto); font-size: 15px; font-weight: 600; }
.icono-boton { width: 44px; height: 44px; border: 0; background: transparent; color: var(--tinta-2); display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; cursor: pointer; }
.chip .icono-boton { width: 36px; height: 36px; color: var(--acento-texto); }

.tarjeta { background: var(--blanco); border: 1px solid var(--borde); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--tinta-2); }
.etiqueta { font-weight: 700; color: var(--acento-texto); background: var(--acento-fondo); padding: 3px 10px; border-radius: 12px; }
.fragmento { font-size: 14px; line-height: 1.45; color: var(--tinta-2); }
.pie-tarjeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.coincide { font-size: 13px; font-weight: 600; color: var(--acento-texto); }
.enlace-pub { font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.lista { list-style: none; margin: 0; padding: 0; background: var(--blanco); border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; }
.lista li { display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 16px; border-bottom: 1px solid #E3E7E0; min-height: 52px; }
.lista li:last-child { border-bottom: 0; }
.lista .texto { flex: 1; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.lista li.edicion { padding: 8px; }
.lista .fuente-nombre { font-size: 15px; font-weight: 600; }
.lista li.fuente { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; }
.estado-fuente { font-size: 13px; color: var(--tinta-2); }
.estado-fuente.ok { color: var(--acento-texto); font-weight: 600; }

.interruptor-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.interruptor { width: 56px; height: 44px; border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.interruptor .pista { width: 52px; height: 30px; border-radius: 15px; background: #6B7480; position: relative; display: block; }
.interruptor .bola { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; display: block; }
.interruptor[aria-checked=true] .pista { background: var(--acento); }
.interruptor[aria-checked=true] .bola { left: auto; right: 3px; }

.alerta { background: var(--error-fondo); color: var(--error); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.vacio { text-align: center; padding: 32px 8px; color: var(--tinta-2); font-size: 15px; line-height: 1.5; }

nav.principal { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--blanco); border-top: 1px solid var(--borde); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
nav.principal button { flex: 1; min-height: 52px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; font-size: 12px; font-weight: 600; color: var(--tinta-2); cursor: pointer; }
nav.principal button[aria-current=page] { color: var(--acento); font-weight: 700; }
