:root { color-scheme: light; font-family: system-ui, sans-serif; color: #183039; background: #f3f6f5; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
header, main, footer { max-width: 1050px; margin: auto; padding: 1.5rem; }
header { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #cbd8d5; }
header span, footer, small { color: #4c6268; }
.brand { color: #183039; font-weight: 750; text-decoration: none; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.2; margin-top: 0; overflow-wrap: anywhere; }
h2 { font-size: 1.25rem; margin-top: 0; }
p { overflow-wrap: anywhere; }
a { color: #116352; }
.card { background: white; border: 1px solid #d2dfdb; border-radius: 12px; padding: 1.5rem; }
.welcome { max-width: 740px; margin: 3rem auto; padding: 2rem; }
.narrow { max-width: 490px; margin: 1.5rem auto; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.cards .card:last-child { grid-column: 1 / -1; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; font-weight: 700; color: #47645c; }
.badge { display: inline-block; padding: .25rem .7rem; background: #e9f2ee; border-radius: 6px; }
form { display: grid; gap: .55rem; }
label { margin-top: .5rem; font-weight: 600; }
input { width: 100%; min-height: 46px; font: inherit; border: 1px solid #819991; border-radius: 6px; padding: .65rem; }
textarea, select { width: 100%; font: inherit; padding: .65rem; border: 1px solid #819991; border-radius: 6px; }
.record-children fieldset { min-width: 0; margin: 1rem 0; border: 1px solid #cbd8d5; border-radius: 6px; }
.record-history article { border-top: 1px solid #cbd8d5; margin-top: 1rem; padding-top: 1rem; }
button, .button { display: inline-block; font: inherit; font-weight: 650; text-align: center; text-decoration: none; background: #176b56; color: white; border: 1px solid #176b56; border-radius: 6px; padding: .7rem 1rem; cursor: pointer; min-height: 44px; }
form button { margin-top: 1rem; }
.secondary { background: white; color: #185c4c; }
button:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
:focus-visible { outline: 3px solid #b66b19; outline-offset: 3px; }
#mensaje:not(:empty), .notice { background: #eaf1f7; border-left: 4px solid #32688c; padding: 1rem; border-radius: 4px; }
#mensaje[data-error="true"] { background: #fff0ed; border-color: #a43d24; }
[hidden] { display: none !important; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 0; background: white; padding: 1rem; }
@media (max-width: 650px) { .cards { grid-template-columns: 1fr; } header span { display: none; } .heading { align-items: flex-start; flex-direction: column; } .welcome { margin: 1rem auto; padding: 1.5rem; } header, main, footer { padding: 1rem; } }
/* Ajustes móviles DEV-05B; no limitar zoom ni orientación. */
body { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.card, form, .heading > div { min-width: 0; }
input { min-width: 0; font-size: max(16px, 1rem); }
button, .button { max-width: 100%; overflow-wrap: anywhere; touch-action: manipulation; }
#install-app { margin: .75rem 0 .25rem; }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
