/* ==========================================================================
   Selva Madre — sistema de diseño compartido
   Todas las páginas cargan este archivo vía includes/ui_head.php.
   ========================================================================== */

:root {
    /* Marca */
    --brand-900: #14251a;
    --brand-800: #1b3123;
    --brand-700: #24402d;
    --brand-600: #2f5239;
    --brand-500: #3d6b4a;
    --brand-400: #5b8a67;
    --brand-100: #e3ece4;
    --brand-50:  #f1f6f1;
    --gold-600:  #9a7438;
    --gold-500:  #b48a4a;
    --gold-100:  #f5ecdc;

    /* Superficies y texto */
    --bg:        #f6f4ef;
    --surface:   #ffffff;
    --surface-2: #faf9f6;
    --line:      #e7e3da;
    --line-2:    #d9d4c8;
    --ink:       #1d2620;
    --ink-2:     #3b463f;
    --muted:     #6f7a72;
    --muted-2:   #9aa39c;

    /* Estados */
    --ok:        #2f7d4f;  --ok-bg:     #e6f3ea;  --ok-line:     #c4e2cf;
    --warn:      #9a6a12;  --warn-bg:   #fbf1dc;  --warn-line:   #efd9a6;
    --danger:    #b23b35;  --danger-bg: #fbe9e7;  --danger-line: #f1c7c3;
    --info:      #2d6386;  --info-bg:   #e5f0f7;  --info-line:   #c3dbea;
    --violet:    #6a4c93;  --violet-bg: #efe9f6;

    /* Forma */
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(20, 37, 26, .06);
    --shadow:    0 1px 2px rgba(20, 37, 26, .05), 0 4px 16px rgba(20, 37, 26, .06);
    --shadow-lg: 0 12px 40px rgba(20, 37, 26, .18);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;

    --sb-w: 252px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-variant-numeric: lining-nums; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; letter-spacing: -.01em; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; }
p  { margin: 0 0 .8em; }
a  { color: var(--brand-600); }
a:hover { color: var(--brand-800); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
small, .text-muted { color: var(--muted); }
strong { font-weight: 600; }
::selection { background: var(--brand-100); }

/* ---------- Layout de la app (con sidebar) ---------- */
body.app, body:has(> .sb) { padding-left: var(--sb-w); margin-left: 0 !important; }

.sb {
    position: fixed; inset: 0 auto 0 0; width: var(--sb-w);
    background: var(--brand-900);
    background-image: radial-gradient(120% 60% at 0% 0%, rgba(91,138,103,.22), transparent 60%);
    color: #dfe8e0; display: flex; flex-direction: column; z-index: 1000;
    transition: transform .25s ease;
}
.sb-brand { display: flex; align-items: center; justify-content: center; padding: 26px 20px 14px; text-decoration: none; }
.sb-brand img { width: 168px; height: auto; display: block; }
.sb-nav { flex: 1; overflow-y: auto; padding: 8px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sb-group { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(223,232,224,.45); padding: 16px 12px 6px; }
.sb-link {
    display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin: 1px 0;
    color: rgba(235,242,236,.82); text-decoration: none; border-radius: 9px; font-size: 14px; font-weight: 500;
    transition: background .15s, color .15s;
}
.sb-link svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.sb-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-link.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--gold-500); }
.sb-link.active svg { opacity: 1; color: #e3c48f; }
.sb-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-500); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.sb-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 12px; display: flex; align-items: center; gap: 10px; }
.sb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: var(--brand-900); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; text-transform: uppercase; }
.sb-user { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.sb-user b { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user span { color: rgba(223,232,224,.55); font-size: 12px; }
.sb-out { color: rgba(235,242,236,.7); padding: 8px; border-radius: 8px; display: grid; place-items: center; }
.sb-out:hover { background: rgba(255,255,255,.08); color: #fff; }
.sb-out svg { width: 18px; height: 18px; }

.sb-mobile { display: none; }
.sb-backdrop { display: none; }

@media (max-width: 960px) {
    body.app, body:has(> .sb) { padding-left: 0; padding-top: 58px; }
    .sb { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sb.open { transform: none; }
    .sb-mobile {
        display: flex; position: fixed; inset: 0 0 auto 0; height: 58px; z-index: 990;
        background: var(--brand-900); color: #fff; align-items: center; justify-content: space-between; padding: 0 12px 0 16px;
    }
    .sb-mobile img { height: 34px; display: block; }
    .sb-burger { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; display: grid; place-items: center; }
    .sb-burger svg { width: 24px; height: 24px; }
    .sb-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(10,20,14,.45); z-index: 995; }
}

/* ---------- Contenido ---------- */
.page, .container { max-width: 1240px; margin: 0 auto; padding: 28px 32px 56px; }
.container .container { padding: 0; }
@media (max-width: 700px) { .page, .container { padding: 20px 16px 48px; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head .sub, .page-sub { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; }

/* Encabezados legacy que ya no se usan en la app */
body:has(> .sb) #dashboardHeader { display: none !important; }

/* ---------- Card ---------- */
.card, .panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 20px;
}
.card > h2:first-child, .card > h3:first-child, .panel > h2:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush > .card-head { padding: 18px 22px 0; }
.section-title { font-family: var(--font); font-size: 1rem; font-weight: 600; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }

/* ---------- Stats ---------- */
.stats, .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat, .stat-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px;
    box-shadow: var(--shadow-sm); position: relative; color: var(--ink); text-align: left;
}
.stat .label, .stat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .value, .stat-number { font-variant-numeric: lining-nums tabular-nums; font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; line-height: 1.15; margin-top: 4px; color: var(--ink); }
.stat .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat .ic { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.stat .ic svg { width: 18px; height: 18px; }
.stat.gold .ic { background: var(--gold-100); color: var(--gold-600); }
.stat.warn .ic { background: var(--warn-bg); color: var(--warn); }
.stat.info .ic { background: var(--info-bg); color: var(--info); }
.stat.danger .ic { background: var(--danger-bg); color: var(--danger); }
.stat a { font-size: 13px; font-weight: 500; text-decoration: none; display: inline-block; margin-top: 8px; }

/* ---------- Botones ---------- */
.btn, button, input[type=submit], input[type=button] {
    font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    background: var(--brand-600); color: #fff; text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover, button:hover, input[type=submit]:hover { background: var(--brand-700); color: #fff; }
.btn:active, button:active { transform: translateY(1px); }
.btn:focus-visible, button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(61,107,74,.3); }
button:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg, button svg, .btn-primary svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }

.btn-secondary, .btn-light, .btn-outline, .btn-cancel {
    background: var(--surface); color: var(--ink-2); border-color: var(--line-2);
}
.btn-secondary:hover, .btn-light:hover, .btn-outline:hover, .btn-cancel:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-gold, .btn-accent { background: var(--gold-500); color: #fff; }
.btn-gold:hover, .btn-accent:hover { background: var(--gold-600); }
.btn-danger, .btn-delete, .btn-eliminar { background: var(--danger); color: #fff; }
.btn-danger:hover, .btn-delete:hover, .btn-eliminar:hover { background: #962f2a; color: #fff; }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #256641; }
.btn-warning, .btn-edit, .btn-editar { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.btn-warning:hover, .btn-edit:hover, .btn-editar:hover { background: var(--gold-100); border-color: var(--gold-500); color: var(--gold-600); }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: #234f6c; }
.btn-whatsapp { background: #1f9d55; color: #fff; }
.btn-whatsapp:hover { background: #17844a; }
.btn-sm, .btn-small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 4px 8px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px; }
.btn-row, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
td .btn-row, td.actions { gap: 6px; flex-wrap: nowrap; }
td form { display: inline; margin: 0; }

/* ---------- Formularios ---------- */
label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=tel], input[type=date],
input[type=time], input[type=datetime-local], input[type=search], input[type=url], input[type=month], input:not([type]),
select, textarea {
    font: inherit; font-size: 14px; color: var(--ink);
    width: 100%; padding: 9px 12px; background: var(--surface);
    border: 1px solid var(--line-2); border-radius: 10px; outline: 0;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(91,138,103,.18); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
textarea { min-height: 88px; resize: vertical; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]), select { min-height: 40px; }
td input:not([type=checkbox]):not([type=radio]), td select { min-height: 34px; }
select {
    appearance: none; -webkit-appearance: none; padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f7a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--brand-600); vertical-align: -3px; margin: 0 6px 0 0; }
input[type=file] { font-size: 13.5px; }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
td input, td select { padding: 6px 9px; font-size: 13.5px; border-radius: 8px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; align-items: end; }
.form-group, .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-grid .form-group, .form-grid .field { margin-bottom: 0; }
.form-group label, .field label { margin: 0; }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.help, .form-text { font-size: 12.5px; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 6px; font-size: 14px; }

/* ---------- Tablas ---------- */
.table-wrap, .table-container, .table-responsive { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th {
    text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
    background: var(--surface-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #fbfaf7; }
td.num, th.num, .text-right { text-align: right; }
.card > table, .card > .table-wrap { margin-top: 8px; }
.card > table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

/* ---------- Badges ---------- */
.badge, .status-badge, .estado-badge, .rol-badge, .estado, .menu-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
    background: var(--brand-50); color: var(--brand-700); border: 1px solid transparent;
}
.badge-ok, .badge-success, .status-activo, .estado-confirmada, .estado-completo, .estado-Completo, .badge-confirmada { background: var(--ok-bg); color: var(--ok); }
.badge-warn, .badge-warning, .estado-pendiente, .estado-Pendiente, .badge-pendiente, .estado-parcial, .estado-Parcial { background: var(--warn-bg); color: var(--warn); }
.badge-danger, .status-inactivo, .estado-cancelada, .badge-cancelada, .estado-rechazada { background: var(--danger-bg); color: var(--danger); }
.badge-info, .estado-completada, .badge-completada { background: var(--info-bg); color: var(--info); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-violet, .rol-administrador, .rol-admin { background: var(--violet-bg); color: var(--violet); }
.rol-staff { background: var(--warn-bg); color: var(--warn); }
.rol-usuario { background: var(--ok-bg); color: var(--ok); }
.badge-muted { background: #f0eeea; color: var(--muted); }

/* ---------- Alertas / mensajes ---------- */
.alert, .message, .mensaje, .msg {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r);
    border: 1px solid var(--info-line); background: var(--info-bg); color: var(--info); margin: 0 0 18px; font-size: 14px;
}
.alert-success, .message.success, .mensaje.success, .msg.success, .alert.success, .mensaje-success, .mensaje.exito { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.alert-error, .alert-danger, .message.error, .mensaje.error, .msg.error, .alert.error, .mensaje-error { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.alert svg, .message svg, .mensaje svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-warning, .message.warning, .mensaje.warning, .alert.warning { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

/* ---------- Avisos flotantes ---------- */
.toast {
    position: fixed; right: 20px; bottom: 20px; z-index: 3000; max-width: 380px; display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 44px 12px 14px; border-radius: var(--r); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px;
    animation: modal-in .2s ease-out;
}
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast-error { background: var(--danger); }
.toast .close { top: 8px; right: 8px; width: 28px; height: 28px; color: rgba(255,255,255,.8); }
.toast .close:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Modales (se abren con style.display = 'block' o 'flex') ---------- */
.modal {
    display: none; position: fixed; inset: 0; z-index: 2000; overflow-y: auto;
    background: rgba(14, 26, 18, .5); backdrop-filter: blur(3px); padding: 5vh 16px;
}
.modal-content {
    background: var(--surface); margin: 0 auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 560px; padding: 26px; position: relative; animation: modal-in .18s ease-out;
}
.modal-content h2, .modal-content h3 { margin-top: 0; padding-right: 32px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-header h2, .modal-header h3 { margin: 0; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.close, .modal-close, .close-modal {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px;
    display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
    background: transparent; border: 0; padding: 0; float: none;
}
.close:hover, .modal-close:hover, .close-modal:hover { background: var(--surface-2); color: var(--ink); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Tabs / filtros ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab, .tab-btn {
    background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted);
    padding: 10px 14px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.tab:hover, .tab-btn:hover { background: none; color: var(--ink); }
.tab.active, .tab-btn.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }
.filters, .filtros, .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters > *, .filtros > *, .toolbar > * { width: auto; }
.pills { display: inline-flex; gap: 4px; background: #eeebe4; padding: 3px; border-radius: 10px; }
.pills a, .pills button { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); background: none; text-decoration: none; border: 0; }
.pills .active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Vacíos y utilidades ---------- */
.empty, .empty-state, .no-data { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--muted-2); margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.money { font-variant-numeric: lining-nums tabular-nums; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* Lista simple tipo "definición" */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Barra de progreso */
.progress { height: 8px; background: #ece8df; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-500); border-radius: 99px; }

/* ---------- Páginas públicas / de cliente (sin sidebar) ---------- */
body.public { background: var(--bg); }
.public-top {
    background: var(--brand-900); color: #fff;
    background-image: radial-gradient(120% 100% at 0% 0%, rgba(91,138,103,.25), transparent 60%);
}
.public-top .inner { max-width: 1100px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.public-top img { height: 46px; display: block; }
.public-top nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.public-top nav a { color: rgba(255,255,255,.85); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.public-top nav a:hover, .public-top nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.hero {
    background: var(--brand-800) url('../../fondo.jpg') center/cover no-repeat; position: relative; color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,37,26,.55), rgba(20,37,26,.85)); }
.hero .inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 56px 24px 64px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 620px; }
.public-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.public-main.narrow { max-width: 760px; }
.overlap { margin-top: -40px; position: relative; }
.public-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }
@media (max-width: 700px) {
    .public-top .inner, .hero .inner, .public-main { padding-left: 16px; padding-right: 16px; }
    .public-top img { height: 38px; }
}

/* Impresión */
@media print {
    .sb, .sb-mobile, .no-print { display: none !important; }
    body.app, body:has(> .sb) { padding: 0; }
    .card { box-shadow: none; }
}
.empty .btn svg { width: 16px; height: 16px; margin: 0; color: inherit; }
