/* ============================
   SISTEMA MUNICIPAL - ESTILOS
   ============================ */

:root {
    --amarillo: #F5A623;
    --amarillo-oscuro: #E8941A;
    --azul: #003366;
    --azul-medio: #004080;
    --blanco: #FFFFFF;
    --gris-claro: #F8F9FA;
    --gris: #6C757D;
    --gris-borde: #DEE2E6;
    --rojo: #DC3545;
    --verde: #28A745;
    --sombra: 0 2px 15px rgba(0,0,0,0.08);
    --sombra-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radio: 12px;
    --radio-sm: 6px;
    --transicion: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gris-claro);
    color: #1A1A2E;
    line-height: 1.6;
}

/* TOPBAR */
.topbar {
    background: var(--azul);
    color: var(--blanco);
    padding: 6px 0;
    font-size: 0.78rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.topbar a:hover { color: var(--amarillo); }

/* NAVBAR */
.navbar {
    background: var(--blanco);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.navbar-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.navbar-brand-text h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul);
    line-height: 1.2;
}
.navbar-brand-text span {
    font-size: 0.72rem;
    color: var(--gris);
    display: block;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.navbar-menu a {
    color: var(--azul);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radio-sm);
    transition: all var(--transicion);
}
.navbar-menu a:hover, .navbar-menu a.active {
    background: var(--amarillo);
    color: var(--azul);
}
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--azul);
    display: block;
    transition: var(--transicion);
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 60%, #0056B3 100%);
    color: var(--blanco);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,0.2);
    border: 1px solid rgba(245,166,35,0.4);
    color: var(--amarillo);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--amarillo);
    display: block;
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SERVICIOS RAPIDOS */
.quick-services {
    background: var(--blanco);
    box-shadow: var(--sombra);
    padding: 0;
    margin: 0;
}
.quick-services .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.quick-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    text-decoration: none;
    color: var(--azul);
    border-right: 1px solid var(--gris-borde);
    transition: all var(--transicion);
    text-align: center;
}
.quick-service-item:last-child { border-right: none; }
.quick-service-item:hover {
    background: var(--amarillo);
    color: var(--azul);
}
.quick-service-icon {
    width: 48px;
    height: 48px;
    background: var(--gris-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transicion);
}
.quick-service-item:hover .quick-service-icon {
    background: rgba(0,51,102,0.1);
}
.quick-service-item span { font-size: 0.8rem; font-weight: 600; }

/* CONTENEDOR */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SECCIONES */
section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
    display: inline-block;
    background: rgba(245,166,35,0.15);
    color: var(--amarillo-oscuro);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--azul);
    margin-bottom: 10px;
}
.section-header p {
    color: var(--gris);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--amarillo);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* CARDS */
.card {
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    overflow: hidden;
    transition: all var(--transicion);
}
.card:hover { box-shadow: var(--sombra-hover); transform: translateY(-4px); }

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--azul), var(--azul-medio));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; }
.card-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--amarillo-oscuro);
    margin-bottom: 8px;
}
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 8px;
    line-height: 1.4;
}
.card-text {
    font-size: 0.85rem;
    color: var(--gris);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-footer {
    padding: 12px 20px;
    background: var(--gris-claro);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--gris);
}

/* GRID */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radio-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--transicion);
    line-height: 1;
}
.btn-primary {
    background: var(--amarillo);
    color: var(--azul);
}
.btn-primary:hover { background: var(--amarillo-oscuro); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--blanco);
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--blanco); }
.btn-azul { background: var(--azul); color: var(--blanco); }
.btn-azul:hover { background: var(--azul-medio); }
.btn-danger { background: var(--rojo); color: var(--blanco); }
.btn-danger:hover { background: #c82333; }
.btn-success { background: var(--verde); color: var(--blanco); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--azul); border: 1px solid var(--gris-borde); }
.btn-ghost:hover { background: var(--gris-claro); }

/* FORMULARIOS */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gris-borde);
    border-radius: var(--radio-sm);
    font-size: 0.9rem;
    color: #1A1A2E;
    transition: border-color var(--transicion);
    background: var(--blanco);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--amarillo);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-warning { background: #FFF3CD; color: #856404; }
.badge-danger { background: #F8D7DA; color: #721C24; }
.badge-success { background: #D4EDDA; color: #155724; }
.badge-primary { background: #CCE5FF; color: #004085; }
.badge-info { background: #D1ECF1; color: #0C5460; }
.badge-secondary { background: #E2E3E5; color: #383D41; }

/* ALERTAS */
.alert {
    padding: 14px 18px;
    border-radius: var(--radio-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    position: relative;
}
.alert-success { background: #D4EDDA; color: #155724; border-left: 4px solid var(--verde); }
.alert-danger { background: #F8D7DA; color: #721C24; border-left: 4px solid var(--rojo); }
.alert-info { background: #D1ECF1; color: #0C5460; border-left: 4px solid #17A2B8; }
.alert-warning { background: #FFF3CD; color: #856404; border-left: 4px solid var(--amarillo); }
.alert-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; opacity: 0.6;
}

/* TABLA */
.table-container {
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
thead { background: var(--azul); color: var(--blanco); }
th { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; text-align: left; }
td { padding: 12px 16px; font-size: 0.85rem; border-bottom: 1px solid var(--gris-borde); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gris-claro); }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal {
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gris-borde);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--azul); }
.modal-close {
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--gris); line-height: 1;
}
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gris-borde);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* IUSI BANNER */
.iusi-banner {
    background: linear-gradient(135deg, #F5A623, #E8941A);
    color: var(--azul);
    padding: 40px 0;
    text-align: center;
}
.iusi-banner h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.iusi-banner p { font-size: 1rem; margin-bottom: 24px; opacity: 0.8; }

/* FOOTER */
footer {
    background: var(--azul);
    color: rgba(255,255,255,0.85);
    padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand img { width: 60px; margin-bottom: 12px; }
.footer-brand h3 { color: var(--blanco); font-size: 1rem; margin-bottom: 8px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; }
.footer-col h4 {
    color: var(--amarillo);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transicion);
}
.footer-col ul li a:hover { color: var(--amarillo); }
.footer-info p { font-size: 0.82rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

/* ADMIN PANEL */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--azul);
    color: var(--blanco);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transicion);
}
.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-header h2 { font-size: 0.95rem; font-weight: 700; color: var(--blanco); }
.admin-sidebar-header span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.admin-nav { padding: 16px 0; }
.admin-nav-section {
    padding: 8px 20px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all var(--transicion);
    border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--blanco);
    border-left-color: var(--amarillo);
}
.admin-nav a .nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.admin-nav .badge-count {
    margin-left: auto;
    background: var(--rojo);
    color: var(--blanco);
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 50px;
}
.admin-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    background: var(--gris-claro);
}
.admin-topbar {
    background: var(--blanco);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar h1 { font-size: 1.3rem; font-weight: 700; color: var(--azul); }
.admin-content { padding: 28px; }

/* STAT CARDS */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 20px;
    box-shadow: var(--sombra);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radio-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-icon.yellow { background: rgba(245,166,35,0.15); }
.stat-icon.blue { background: rgba(0,51,102,0.1); }
.stat-icon.red { background: rgba(220,53,69,0.1); }
.stat-icon.green { background: rgba(40,167,69,0.1); }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--azul); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--gris); }

/* LOGIN */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-box {
    background: var(--blanco);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo img { width: 70px; margin-bottom: 12px; }
.login-logo h2 { font-size: 1.2rem; font-weight: 700; color: var(--azul); }
.login-logo p { font-size: 0.82rem; color: var(--gris); }

/* TOGGLE SWITCH */
.toggle-wrapper { display: flex; align-items: center; gap: 12px; }
.toggle-switch { position: relative; width: 52px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #CCC;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicion);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 4px; top: 4px;
    background: var(--blanco);
    border-radius: 50%;
    transition: var(--transicion);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--verde); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }
.toggle-label { font-weight: 600; font-size: 0.9rem; color: var(--azul); }

/* TRANSPARENCIA */
.transparencia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.transparencia-card {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 24px;
    box-shadow: var(--sombra);
    text-align: center;
    transition: all var(--transicion);
    text-decoration: none;
    color: var(--azul);
    display: block;
}
.transparencia-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); }
.transparencia-icon {
    width: 56px; height: 56px;
    background: rgba(245,166,35,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 12px;
}
.transparencia-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.transparencia-card p { font-size: 0.78rem; color: var(--gris); }

/* CODIGO SOLICITUD */
.codigo-result {
    background: linear-gradient(135deg, var(--azul), var(--azul-medio));
    color: var(--blanco);
    border-radius: var(--radio);
    padding: 32px;
    text-align: center;
}
.codigo-result .codigo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--amarillo);
    letter-spacing: 2px;
    display: block;
    margin: 12px 0;
}
.codigo-result p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* BREADCRUMB */
.breadcrumb {
    background: var(--blanco);
    padding: 12px 0;
    border-bottom: 1px solid var(--gris-borde);
}
.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gris);
}
.breadcrumb a { color: var(--azul); text-decoration: none; }
.breadcrumb a:hover { color: var(--amarillo-oscuro); }

/* PAGE HEADER */
.page-header {
    background: var(--azul);
    color: var(--blanco);
    padding: 40px 0;
}
.page-header h1 { font-size: 1.8rem; font-weight: 800; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-top: 8px; }

/* DOCUMENTO LIST */
.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gris-borde);
    transition: background var(--transicion);
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--gris-claro); }
.doc-icon {
    width: 44px; height: 44px;
    background: rgba(220,53,69,0.1);
    border-radius: var(--radio-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rojo);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.doc-info { flex: 1; }
.doc-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--azul); margin-bottom: 2px; }
.doc-info p { font-size: 0.78rem; color: var(--gris); }
.doc-size { font-size: 0.75rem; color: var(--gris); }

/* OBRA STATUS */
.obra-status-bar {
    height: 6px;
    background: var(--gris-borde);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.obra-status-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--amarillo);
}
.obra-status-fill.completada { background: var(--verde); }
.obra-status-fill.en_ejecucion { background: var(--azul); }

/* LOADER */
.loader {
    text-align: center;
    padding: 40px;
    color: var(--gris);
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--gris-borde);
    border-top-color: var(--amarillo);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gris);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; margin-bottom: 6px; color: var(--azul); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .transparencia-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--blanco);
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--sombra);
        gap: 4px;
    }
    .navbar-menu.open { display: flex; }
    .navbar-toggle { display: flex; }
    .navbar .container { position: relative; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero h2 { font-size: 1.6rem; }
    .hero-stats { gap: 20px; }
    .transparencia-grid { grid-template-columns: 1fr; }
    .quick-services .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .btn-block-mobile { width: 100%; justify-content: center; }
}

/* DARK SECTION */
.bg-azul { background: var(--azul); color: var(--blanco); }
.bg-amarillo { background: var(--amarillo); color: var(--azul); }
.bg-gris { background: var(--gris-claro); }
.text-amarillo { color: var(--amarillo); }
.text-azul { color: var(--azul); }
.text-gris { color: var(--gris); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.p-4 { padding: 24px; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* PAGINATION */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}
.pagination button {
    padding: 8px 14px;
    border: 1.5px solid var(--gris-borde);
    background: var(--blanco);
    border-radius: var(--radio-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transicion);
}
.pagination button:hover, .pagination button.active {
    background: var(--azul);
    border-color: var(--azul);
    color: var(--blanco);
}

/* SEARCH BAR */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.search-bar .form-control { flex: 1; }
