:root {
    --ve-yellow: #f7c948;
    --ve-blue: #1f5fbf;
    --ve-red: #d64545;
    --ink: #121722;
    --ink-2: #1f2937;
    --text: #2d3648;
    --muted: #6b7280;
    --muted-2: #8a94a6;
    --page: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #f1f5fb;
    --surface-3: #e9eef7;
    --border: #dce3ee;
    --border-strong: #c8d2e1;
    --success: #147a46;
    --warning: #8a5b00;
    --danger: #a9262d;
    --info: #17458f;
    --radius: 8px;
    --radius-lg: 8px;
    --shadow-xs: 0 1px 2px rgba(18, 23, 34, .06);
    --shadow-sm: 0 8px 22px rgba(18, 23, 34, .06);
    --shadow-md: 0 18px 44px rgba(18, 23, 34, .09);
    --shadow-lg: 0 28px 70px rgba(18, 23, 34, .14);
    --focus: 0 0 0 4px rgba(31, 95, 191, .16);
    --container: 1160px;
    --tap: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--page);
    color: var(--text);
    line-height: 1.58;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--ve-yellow) 0 33%, var(--ve-blue) 33% 66%, var(--ve-red) 66% 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ve-blue); }
:focus-visible { outline: none; box-shadow: var(--focus); }
img, video, iframe { max-width: 100%; }

.container { width: min(var(--container), calc(100% - 32px)); margin: auto; }
.section { padding: 34px 0; }
.section + .section { padding-top: 8px; }
.section-head { display: grid; gap: 12px; margin-bottom: 18px; }
.section-title { margin: 0 0 14px; color: var(--ink); font-size: clamp(26px, 7vw, 42px); line-height: 1.08; letter-spacing: 0; }
.section-head .section-title { margin: 0; }
.section-kicker, .admin-kicker {
    margin: 0 0 8px;
    color: var(--ve-blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.help-text { color: var(--muted); font-size: 13px; }
.small { font-size: 14px; }

.grid, .stack { display: grid; gap: 16px; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }

.card, .admin-card, .form-card, .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card, .admin-card, .form-card { padding: 18px; }
.card h2, .card h3, .admin-card h2, .admin-card h3 { margin-top: 0; color: var(--ink); line-height: 1.16; }
.card p:last-child, .admin-card p:last-child { margin-bottom: 0; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.stat-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 18px;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--accent, var(--ve-blue));
}
.stat-card span, .stat-card h3, .humanitarian-stats span, .ai-admin-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.stat-card strong, .humanitarian-stats strong, .ai-admin-stats strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 36px;
    line-height: 1;
}

.btn, .admin-btn, button.btn, .video-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    gap: 8px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover, .admin-btn:hover, .video-action:hover { transform: translateY(-1px); color: inherit; }
.btn-red, .admin-btn-red { background: var(--ve-red); color: #fff; box-shadow: 0 12px 28px rgba(214, 69, 69, .22); }
.btn-blue, .admin-btn-blue { background: var(--ve-blue); color: #fff; box-shadow: 0 12px 28px rgba(31, 95, 191, .18); }
.btn-yellow, .admin-btn-yellow { background: var(--ve-yellow); color: #17120a; box-shadow: 0 12px 28px rgba(247, 201, 72, .22); }
.btn-white, .admin-btn-light { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-dark, .admin-btn-dark { background: var(--ink); color: #fff; }
.btn-red:hover, .admin-btn-red:hover { background: #be353c; }
.btn-blue:hover, .admin-btn-blue:hover { background: #184c99; }
.btn-yellow:hover, .admin-btn-yellow:hover { background: #efbd25; }

label { display: block; color: var(--ink); font-weight: 850; margin-bottom: 7px; }
input, select, textarea, .admin-input, .admin-select, .admin-textarea {
    width: 100%;
    min-height: var(--tap);
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    outline: none;
}
textarea, .admin-textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus,
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    border-color: var(--ve-blue);
    box-shadow: var(--focus);
}
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--ve-blue); }
.form-group, .admin-field { display: grid; gap: 7px; margin-bottom: 14px; }
.form-grid-2, .admin-form-grid { display: grid; gap: 14px; }
.check-row, .admin-check, .video-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--tap);
    margin: 0;
}

.badge, .ai-status, .humanitarian-type, .video-platform {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}
.badge-pendiente, .ai-status-pendiente { background: #fff3c4; color: var(--warning); }
.badge-investigacion, .ai-status-investigacion { background: #dce9ff; color: var(--info); }
.badge-verificada, .ai-status-verificada, .ai-status-publica { background: #dff8ea; color: var(--success); }
.badge-incompleta, .ai-status-incompleta, .ai-status-oculta { background: #eef2f7; color: #4b5563; }
.badge-descartada, .ai-status-descartada { background: #ffe1e3; color: var(--danger); }

.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1px solid transparent;
    font-weight: 750;
}
.alert-success { background: #e7f8ee; color: #166534; border-color: #bdeccb; }
.alert-error { background: #fff0f0; color: #991b1b; border-color: #ffc9c9; }

.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }

.breadcrumbs, nav[aria-label="Ruta"] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}
.empty-state {
    display: grid;
    gap: 10px;
    padding: 22px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}
.skeleton {
    min-height: 16px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--surface-2), #fff, var(--surface-2));
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
}
@keyframes skeleton-loading { to { background-position: -200% 0; } }

@media (min-width: 640px) {
    .btn, .admin-btn, button.btn { width: auto; }
    .grid-2, .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .section { padding: 48px 0; }
    .section-head { display: flex; justify-content: space-between; align-items: end; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
