:root { color-scheme: light; }
html { font-size: 17px; }
.app-body { min-height: 100vh; margin: 0; background: #f8fafc; color: #111827; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.skip-link { position: fixed; left: .75rem; top: -5rem; z-index: 100; background: white; color: #111827; padding: .75rem 1rem; border-radius: .5rem; font-weight: 700; }
.skip-link:focus { top: .75rem; }
.public-header { min-height: 4rem; display: flex; align-items: center; justify-content: center; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid #d1d5db; }
.public-header a { color: #115e59; font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; }
.app-mobile-header { position: sticky; top: 0; z-index: 40; min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; background: #fff; color: #111827; border-bottom: 1px solid #d1d5db; box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.mobile-brand { color: #115e59; font-size: 1.2rem; font-weight: 900; }
.menu-button { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .65rem; padding: .5rem .75rem; background: #ecfdf5; color: #134e4a; border: 2px solid #99f6e4; border-radius: .7rem; font-weight: 850; }
.menu-bars { width: 1.25rem; display: grid; gap: .22rem; }
.menu-bars i { display: block; height: 2px; border-radius: 2px; background: #134e4a; }
.sidebar-overlay { position: fixed; inset: 0; z-index: 45; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(15,23,42,.58); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(86vw, 19rem); display: flex; flex-direction: column; background: #fff; color: #111827; border-right: 1px solid #d1d5db; box-shadow: 8px 0 24px rgba(15,23,42,.18); transform: translateX(-102%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
.menu-open { overflow: hidden; }
.menu-open .sidebar-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-open .app-sidebar { transform: translateX(0); visibility: visible; }
.sidebar-header { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid #e5e7eb; }
.sidebar-brand { display: flex; align-items: center; gap: .7rem; color: #134e4a; font-size: 1.25rem; font-weight: 900; }
.brand-mark { width: 2.45rem; height: 2.45rem; display: grid; place-items: center; border-radius: .7rem; background: #ccfbf1; color: #115e59; font-size: .9rem; }
.sidebar-close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .7rem; background: #f1f5f9; color: #334155; font-size: 1.8rem; line-height: 1; }
.sidebar-user { display: flex; align-items: center; gap: .75rem; margin: 1rem; padding: .85rem; border-radius: .8rem; background: #f1f5f9; color: #1f2937; min-width: 0; }
.sidebar-user > span:last-child { min-width: 0; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user strong { white-space: normal; overflow-wrap: anywhere; }
.sidebar-user small { margin-top: .12rem; color: #64748b; font-size: .78rem; }
.user-avatar { width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; display: grid; place-items: center; border-radius: 999px; background: #0f766e; color: #fff; font-weight: 900; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 .75rem 1rem; }
.sidebar-section-title { margin: 1.1rem .65rem .4rem; color: #64748b; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-link { position: relative; display: flex; align-items: center; min-height: 3.15rem; margin: .18rem 0; padding: .72rem .9rem; border-radius: .7rem; color: #1f2937; font-weight: 750; line-height: 1.25; }
.sidebar-link:hover { background: #f0fdfa; color: #115e59; }
.sidebar-link.is-active { padding-left: 1.15rem; background: #ccfbf1; color: #134e4a; font-weight: 900; }
.sidebar-link.is-active::before { content: ""; position: absolute; left: .42rem; width: .28rem; height: 1.55rem; border-radius: 1rem; background: #0f766e; }
.sidebar-footer { padding: 1rem; border-top: 1px solid #e5e7eb; }
.sidebar-account { display: block; margin-bottom: .7rem; padding: .7rem; border-radius: .6rem; color: #134e4a; background: #f0fdfa; font-weight: 800; text-align: center; }
.sidebar-logout { width: 100%; min-height: 3rem; padding: .7rem 1rem; border-radius: .7rem; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; font-weight: 850; }
.app-page { min-width: 0; }
.app-main { width: 100%; max-width: 80rem; margin: 0 auto; padding: 1.25rem 1rem 7rem; color: #111827; }
.card { background: white; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.page-title { font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.eyebrow { color: #0f766e; font-size: .8rem; line-height: 1.2; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.field-label { display: block; color: #374151; font-weight: 700; }
.field { display: block; width: 100%; margin-top: .4rem; border: 2px solid #d1d5db; border-radius: .75rem; padding: .8rem .9rem; background: white; color: #111827; font-weight: 500; min-height: 3.1rem; }
.field:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(13,148,136,.15); outline: none; }
.btn-primary, .btn-secondary, .btn-whatsapp, .btn-confirm, .btn-danger-soft, .btn-danger, .btn-danger-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .72rem 1rem; border-radius: .75rem; font-weight: 800; text-align: center; transition: background .15s, transform .05s; }
.btn-primary { color: #134e4a; background: #ccfbf1; border: 2px solid #0f766e; }
.btn-primary:hover { color: #0f3d3a; background: #99f6e4; }
.btn-danger { color: #fff; background: #b91c1c; border: 2px solid #7f1d1d; }
.btn-danger:hover { color: #fff; background: #991b1b; }
.btn-danger-outline { color: #991b1b; background: #fff; border: 2px solid #dc2626; }
.btn-danger-outline:hover { color: #7f1d1d; background: #fef2f2; }
.btn-secondary { color: #134e4a; background: white; border: 2px solid #99f6e4; }
.btn-secondary:hover { background: #f0fdfa; }
.btn-whatsapp { color: #14532d; background: #dcfce7; border: 2px solid #16a34a; }
.btn-whatsapp:hover { color: #052e16; background: #bbf7d0; }
.btn-confirm { color: #312e81; background: #e0e7ff; border: 2px solid #4f46e5; min-height: 3.5rem; font-size: 1.05rem; }
.btn-confirm:hover { color: #1e1b4b; background: #c7d2fe; }
.btn-danger-soft { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
button:disabled { opacity: .55; cursor: not-allowed; }
.alert { border-radius: .75rem; padding: .9rem 1rem; font-weight: 650; border-left: 5px solid; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #10b981; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.stat-card { background: white; border: 1px solid #e5e7eb; border-left: 6px solid #6366f1; border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; }
.stat-number { font-size: 2.5rem; line-height: 1; font-weight: 900; color: #4338ca; margin-bottom: .4rem; }
.badge { display: inline-flex; align-items: center; justify-content: center; background: #ccfbf1; color: #115e59; border-radius: 999px; padding: .3rem .7rem; font-size: .85rem; font-weight: 800; }
.status-success, .status-warning, .status-exception { display: inline-flex; height: max-content; border-radius: 999px; padding: .35rem .7rem; font-size: .8rem; font-weight: 800; }
.status-success { background: #dcfce7; color: #166534; }.status-warning { background: #fef3c7; color: #92400e; }
.status-exception { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.empty { color: #6b7280; text-align: center; padding: 1.5rem .5rem; }
.help-list { margin-left: 1.2rem; list-style: disc; color: #4b5563; }.help-list li + li { margin-top: .55rem; }
.detail-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
.detail-grid dt { color: #6b7280; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.detail-grid dd { margin-top: .15rem; color: #111827; font-weight: 650; }
.action-card { min-height: 7.5rem; border: 2px solid; border-radius: 1rem; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; color: #111827; box-shadow: 0 3px 10px rgba(15,23,42,.06); }
.action-card:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(15,23,42,.1); }
.action-checkin { background: #ecfdf5; border-color: #6ee7b7; color: #064e3b; }
.action-withdrawal { background: #eef2ff; border-color: #a5b4fc; color: #312e81; }
.action-card strong { display: block; color: inherit; font-size: 1.25rem; }.action-card small { display: block; color: inherit; opacity: .82; margin-top: .25rem; }
.action-icon { width: 3.1rem; height: 3.1rem; flex: 0 0 3.1rem; display: grid; place-items: center; border-radius: 999px; background: #fff; color: inherit; border: 1px solid currentColor; font-size: 1.7rem; font-weight: 800; }
.warning-note { background: #fff7ed; border-left: 5px solid #f97316; color: #9a3412; border-radius: .5rem; padding: .8rem 1rem; overflow-wrap: anywhere; }
.presence-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: .65rem; }
.contact-actions { position: relative; }
.contact-actions > summary { cursor: pointer; list-style: none; }
.contact-actions > summary::-webkit-details-marker { display: none; }
.contact-actions[open] > summary { background: #99f6e4; }
.contact-menu { position: absolute; z-index: 20; top: calc(100% + .5rem); right: 0; width: min(19rem, calc(100vw - 3rem)); padding: 1rem; border: 1px solid #cbd5e1; border-radius: .85rem; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.18); }
.contact-menu strong, .contact-menu > span { display: block; overflow-wrap: anywhere; }
.contact-menu > span { margin: .15rem 0 .85rem; color: #64748b; font-size: .9rem; }
.contact-menu a + a { margin-top: .55rem; }
.room-option { display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 2px solid #d1d5db; border-radius: .85rem; background: white; cursor: pointer; }
.room-option:has(input:checked) { border-color: #0d9488; background: #f0fdfa; box-shadow: 0 0 0 2px rgba(13,148,136,.12); }
.room-option input { width: 1.25rem; height: 1.25rem; accent-color: #0f766e; flex: 0 0 auto; }
.room-option strong, .room-option small { display: block; }.room-option small { color: #6b7280; margin-top: .15rem; }
.guardian-fields { padding: 1rem; border: 1px solid #d1d5db; border-radius: .75rem; }
.success-mark { display: grid; place-items: center; margin: 0 auto 1rem; width: 4rem; height: 4rem; border-radius: 999px; background: #d1fae5; color: #047857; font-size: 2.4rem; font-weight: 900; }
.pickup-code { margin: .8rem auto 1rem; font-size: clamp(1.55rem, 7vw, 2.4rem); line-height: 1.35; font-weight: 900; color: #134e4a; overflow-wrap: anywhere; }
.paper-note { background: #fffbeb; color: #78350f; border: 2px dashed #f59e0b; border-radius: .75rem; padding: 1rem; }
.success-banner { display: flex; flex-direction: column; background: #ecfdf5; color: #065f46; border: 2px solid #6ee7b7; border-radius: 1rem; padding: 1rem 1.25rem; }.success-banner strong { font-size: 1.25rem; }
.credential-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(5.5rem, .4fr); align-items: end; gap: .65rem; }
.credential-part { min-width: 0; color: #374151; font-weight: 800; }
.credential-part > span { display: block; margin-bottom: .15rem; }
.credential-part .field { font-size: 1.15rem; font-weight: 800; }
.credential-dash { display: grid; place-items: center; min-height: 3.1rem; color: #334155; font-size: 2rem; font-weight: 900; }
.withdrawal-result { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; color: #111827; }
.withdrawal-result strong, .withdrawal-result small { display: block; }.withdrawal-result strong { font-size: 1.1rem; }.withdrawal-result small { margin-top: .2rem; color: #64748b; }
.exception-entry { padding: 1rem; border: 2px solid #fca5a5; border-radius: .85rem; background: #fff7f7; color: #7f1d1d; }
.exception-entry strong { display: block; font-size: 1.05rem; }.exception-entry p { margin-top: .3rem; }
.danger-banner { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; border: 3px solid #dc2626; border-radius: 1rem; background: #fef2f2; color: #7f1d1d; }
.danger-banner strong { display: block; font-size: 1.25rem; }.danger-banner p { margin-top: .25rem; }
.danger-icon, .exception-mark { display: grid; place-items: center; flex: 0 0 auto; width: 2.7rem; height: 2.7rem; border-radius: 999px; background: #b91c1c; color: #fff; font-size: 1.4rem; font-weight: 900; }
.warning-steps { padding: 1rem; border-left: 5px solid #dc2626; background: #fef2f2; color: #7f1d1d; }
.warning-steps ol { margin: .65rem 0 0 1.25rem; list-style: decimal; }.warning-steps li + li { margin-top: .4rem; }
.confirm-check { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border: 2px solid #f59e0b; border-radius: .8rem; background: #fffbeb; color: #78350f; font-weight: 750; cursor: pointer; }
.confirm-check input { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; margin-top: .1rem; accent-color: #b91c1c; }
.danger-check { border-color: #ef4444; background: #fef2f2; color: #7f1d1d; }
.exception-success { border: 3px solid #ef4444; background: #fff7f7; }.exception-mark { margin: 0 auto 1rem; width: 4rem; height: 4rem; font-size: 2.4rem; }
.exception-log { border: 3px solid #ef4444; background: #fffafa; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.summary-row > span:first-child strong, .summary-row > span:first-child small { display: block; }
.summary-row small { margin-top: .15rem; color: #64748b; font-size: .78rem; }
.summary-numbers { display: flex; flex: 0 0 auto; gap: 1rem; text-align: center; }
.summary-numbers > span { min-width: 4.5rem; padding: .55rem .7rem; border-radius: .65rem; background: #f1f5f9; }
.summary-numbers strong, .summary-numbers small { display: block; }.summary-numbers strong { color: #0f172a; font-size: 1.15rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.25rem; color: #475569; font-weight: 700; }
.pagination a { min-height: 2.75rem; display: inline-flex; align-items: center; padding: .55rem .9rem; border: 2px solid #99f6e4; border-radius: .65rem; background: #f0fdfa; color: #134e4a; }
@media (max-width: 380px) {
  html { font-size: 16px; }
  .app-main { padding-left: .75rem; padding-right: .75rem; }
  .card { padding: 1rem; border-radius: .85rem; }
  .action-card { padding: 1rem; gap: .8rem; }
  .action-icon { width: 2.7rem; height: 2.7rem; flex-basis: 2.7rem; }
  .credential-entry { grid-template-columns: minmax(0, 1fr) auto minmax(5rem, .4fr); gap: .35rem; }
  .summary-row { align-items: flex-start; flex-direction: column; }
  .summary-numbers { width: 100%; }.summary-numbers > span { flex: 1; }
  .presence-actions, .contact-actions, .presence-actions > a, .contact-actions > summary { width: 100%; }
}
@media (min-width: 640px) { .card { padding: 1.5rem; }.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .app-mobile-header { display: none; }
  .app-sidebar { width: 17rem; transform: translateX(0); visibility: visible; box-shadow: none; }
  .sidebar-close, .sidebar-overlay { display: none; }
  .app-page.with-sidebar { margin-left: 17rem; }
  .app-main { padding: 2rem 2rem 6rem; }
  .menu-open { overflow: auto; }
}
@media print { .app-sidebar, .app-mobile-header, .public-header, .btn-primary, .btn-secondary, .btn-whatsapp, .paper-note { display: none !important; } .app-page.with-sidebar { margin-left: 0; } body { background: white; } }
