@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --ink: #071637; --gold: #eebd52; --muted: #667085; --line: #e2e5eb; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--ink); }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.login { display: grid; place-items: center; min-height: 100dvh; padding: 40px 16px; }
.login-card { width: min(420px, 100%); padding: 30px; display: grid; gap: 16px; background: white; border-radius: 20px; box-shadow: 0 20px 60px #0003; }
.brand { font-size: 19px; font-weight: 700; text-decoration: none; color: inherit; }
.brand span { color: #957019; font-size: 12px; letter-spacing: .12em; }
h1, h2 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: 25px; }
h2 { font-size: 21px; }
p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
form { display: grid; gap: 12px; }
label, legend { font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; font: inherit; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfaf7; color: var(--ink); }
button { justify-self: start; font: 700 14px 'Manrope', system-ui, sans-serif; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); padding: 12px 20px; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.dark { color: white; background: var(--ink); }
.plain { padding: 4px 0; background: none; text-decoration: underline; }
:is(button, input, select, textarea, summary, a, .tablewrap):focus-visible { outline: 3px solid #3875d7; outline-offset: 3px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { margin-bottom: 10px; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.code input { padding: 12px 0; font: 700 22px monospace; text-align: center; }
#codigo-form { border-top: 1px solid var(--line); padding-top: 18px; }
#turnstile { min-height: 65px; width: 100%; max-width: 100%; overflow: hidden; }
#status, #panel-status { overflow-wrap: anywhere; }
.app { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100dvh; background: #f4f5f8; }
.side { padding: 28px 18px; background: var(--ink); color: white; display: flex; flex-direction: column; gap: 22px; }
.side .brand span { color: var(--gold); }
nav { display: grid; gap: 5px; }
nav a { padding: 12px; border-radius: 10px; color: #ffffffc7; text-decoration: none; font-weight: 600; }
nav a[aria-current] { background: #ffffff1a; color: white; }
.identity { display: grid; gap: 5px; padding: 12px; border-radius: 12px; background: #ffffff0f; font-size: 12px; overflow-wrap: anywhere; }
.identity span { color: #ffffffb3; }
.content { min-width: 0; padding: clamp(24px, 5vw, 60px); display: grid; align-content: start; gap: 20px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.placeholder { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; display: grid; gap: 12px; }
@media (max-width: 650px) { .app { grid-template-columns: 1fr; } .side { padding: 20px; gap: 16px; } nav { grid-template-columns: repeat(2, 1fr); } .login-card { padding: 24px 18px; } }
.side, nav, nav a { min-width: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; }
.registros { display: grid; gap: 20px; min-width: 0; }
.registros-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.outline { background: white; border: 1px solid var(--line); }
.filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto; align-items: end; gap: 12px; }
.filters > div { display: grid; gap: 6px; min-width: 0; }
.tablewrap { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { border-collapse: collapse; width: 100%; min-width: 960px; font-size: 14px; text-align: left; }
th { color: var(--muted); background: #fafbfc; font-size: 12px; }
th, td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { max-width: 280px; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.contact-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: #edf7f1; color: #21704a; white-space: nowrap; }
.contact-toggle::before { content: ''; width: 26px; height: 16px; border-radius: 99px; background: #21704a; box-shadow: inset -10px 0 0 2px #fff; }
.contact-toggle[aria-checked="false"] { background: #f0f1f4; color: var(--muted); }
.contact-toggle[aria-checked="false"]::before { background: #9aa2b1; box-shadow: inset 10px 0 0 2px #fff; }
details { margin-top: 12px; width: 220px; }
summary { cursor: pointer; color: #77591c; font-size: 12px; font-weight: 700; }
.notes-form { margin-top: 10px; gap: 8px; }
.notes-form textarea { min-height: 100px; resize: vertical; font-size: 13px; }
.notes-text { white-space: pre-wrap; margin-top: 8px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pagination button { padding: 10px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1200px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search-field { grid-column: 1 / -1; } }
@media (max-width: 450px) { .filters { grid-template-columns: minmax(0, 1fr); } }
