/* ============================================
   IMPULSO DIGITAL - Panel Administrativo
   ============================================ */

:root {
    --admin-bg: #08111f;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f8fafc;
    --admin-sidebar: #07111f;
    --admin-sidebar-2: #0f1b2e;
    --admin-primary: #1d4ed8;
    --admin-accent: #38bdf8;
    --admin-accent-2: #0ea5e9;
    --admin-text: #0f172a;
    --admin-muted: #64748b;
    --admin-border: #e2e8f0;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-purple: #8b5cf6;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sidebar-width: 292px;
    --radius-lg: 22px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.1);
    --transition: 0.22s ease;
}

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

body {
    min-height: 100vh;
    font-family: var(--font-family);
    color: var(--admin-text);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 32rem),
        linear-gradient(135deg, #eef6ff 0%, #f8fafc 45%, #eef2ff 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select { font: inherit; }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    color: #e2e8f0;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 14rem),
        linear-gradient(180deg, var(--admin-sidebar) 0%, #050b16 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 18px 0 48px rgba(15, 23, 42, 0.28);
}

.sidebar__header {
    padding: 26px 22px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar__logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar__logo-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 5px;
}

.sidebar__logo-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.92), rgba(56, 189, 248, 0.95));
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.08em;
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.26);
}

.sidebar__brand-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar__brand {
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar__subtitle {
    margin-top: 3px;
    font-size: 0.76rem;
    color: rgba(226, 232, 240, 0.62);
}

.sidebar__nav {
    flex: 1;
    padding: 22px 16px;
}

.sidebar__label {
    display: block;
    padding: 0 12px;
    margin-bottom: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.62);
}

.sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar__link,
.sidebar__btn-cerrar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.sidebar__link:hover,
.sidebar__btn-cerrar:hover {
    transform: translateX(2px);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(56, 189, 248, 0.16);
}

.sidebar__link--active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.34), rgba(56, 189, 248, 0.14));
    border-color: rgba(56, 189, 248, 0.36);
    box-shadow: inset 3px 0 0 var(--admin-accent), 0 14px 30px rgba(2, 132, 199, 0.12);
}

.sidebar__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar__footer {
    padding: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar__btn-cerrar:hover {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.24);
}

/* Main */
.main-content {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 34px;
    background: rgba(248, 250, 252, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.78);
}

.topbar__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--admin-accent-2);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.topbar__title {
    color: #0f172a;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.topbar__subtitle {
    margin-top: 7px;
    max-width: 680px;
    color: var(--admin-muted);
    font-size: 0.94rem;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.topbar__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #075985;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.content {
    padding: 30px 34px 46px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.card {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 16px;
    min-height: 158px;
    padding: 22px;
    background: var(--admin-surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card::after {
    content: '';
    position: absolute;
    inset: auto -20px -42px auto;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.08;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: var(--shadow-md);
}

.card--blue { color: var(--admin-primary); }
.card--yellow { color: var(--admin-warning); }
.card--green { color: var(--admin-success); }
.card--purple { color: var(--admin-purple); }

.card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: currentColor;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 16px;
}

.card--blue .card__icon { background: rgba(29, 78, 216, 0.1); }
.card--yellow .card__icon { background: rgba(245, 158, 11, 0.12); }
.card--green .card__icon { background: rgba(16, 185, 129, 0.12); }
.card--purple .card__icon { background: rgba(139, 92, 246, 0.12); }

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card__info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card__number {
    color: #0f172a;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
}

.card__label {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 900;
}

.card__desc {
    max-width: 220px;
    color: var(--admin-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.section-block,
.module-card,
.filters {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.section-block {
    overflow: hidden;
}

.section-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--admin-border);
}

.section-block__title {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
}

.section-block__desc {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 0.84rem;
}

.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.table thead {
    background: #f8fafc;
}

.table th {
    padding: 13px 16px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 15px 16px;
    color: #1e293b;
    border-top: 1px solid #eef2f7;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(14, 165, 233, 0.035);
}

.consulta-row {
    cursor: pointer;
}

.consulta-row:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.28);
    outline-offset: -3px;
    background: rgba(14, 165, 233, 0.06);
}

.table__msg {
    max-width: 290px;
    overflow: hidden;
    color: var(--admin-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table__empty {
    padding: 42px 16px !important;
    text-align: center;
    color: var(--admin-muted);
}

.cliente {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cliente strong {
    color: #0f172a;
    font-weight: 800;
}

.cliente span {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 900;
    white-space: nowrap;
}

.estado::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.estado-pendiente {
    color: #a16207;
    background: #fef3c7;
}

.estado-respondida {
    color: #047857;
    background: #d1fae5;
}

.estado-respondido {
    color: #047857;
    background: #d1fae5;
}

.estado-cancelada {
    color: #b91c1c;
    background: #fee2e2;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 230px auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 22px;
    padding: 18px;
}

.filters__group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filters__label {
    color: #475569;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filters__select,
.filters__input {
    min-height: 44px;
    padding: 10px 13px;
    color: var(--admin-text);
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filters__select:focus,
.filters__input:focus {
    border-color: var(--admin-accent-2);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filters__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    color: #075985;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-feedback {
    margin: -10px 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-feedback:empty {
    display: none;
}

.admin-feedback--info {
    color: #075985;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.16);
}

.admin-feedback--success {
    color: #047857;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.admin-feedback--error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.acciones__btn {
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.acciones__btn:hover {
    transform: translateY(-1px);
}

.acciones__btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.acciones__btn--pendiente { color: #a16207; background: #fef3c7; border-color: #fde68a; }
.acciones__btn--respondida { color: #047857; background: #d1fae5; border-color: #a7f3d0; }
.acciones__btn--cancelada { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }
.acciones__btn--eliminar { color: #475569; background: #f8fafc; border-color: #e2e8f0; }
.acciones__btn--eliminar:hover { color: #b91c1c; background: #fff1f2; border-color: #fecdd3; }

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.activity-item {
    display: flex;
    gap: 11px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.activity-item__dot {
    width: 10px;
    height: 10px;
    margin-top: 7px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--admin-accent-2);
    box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.12);
}

.activity-item strong {
    display: block;
    color: #0f172a;
    font-size: 0.86rem;
}

.activity-item span {
    display: block;
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.module-card {
    padding: 30px;
}

.module-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--admin-accent-2);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 18px;
    margin-bottom: 18px;
}

.module-card__icon svg {
    width: 28px;
    height: 28px;
}

.module-card h2 {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.module-card p {
    max-width: 720px;
    margin-top: 8px;
    color: var(--admin-muted);
}

.module-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent-2));
    font-weight: 900;
    cursor: pointer;
}

.admin-btn--ghost {
    color: #075985;
    background: rgba(14, 165, 233, 0.09);
    border: 1px solid rgba(14, 165, 233, 0.16);
}

.admin-btn--danger {
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.admin-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

body.modal-open {
    overflow: hidden;
}

.consulta-modal[hidden] {
    display: none;
}

.consulta-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.consulta-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(5px);
}

.consulta-modal__card {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.32);
}

.consulta-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 18px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 16rem),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--admin-border);
}

.consulta-modal__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--admin-accent-2);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.consulta-modal__header h2 {
    color: #0f172a;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.consulta-modal__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    color: #475569;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition), color var(--transition), border-color var(--transition);
}

.consulta-modal__close:hover {
    color: #dc2626;
    border-color: #fecaca;
    transform: translateY(-1px);
}

.consulta-modal__content {
    overflow-y: auto;
    padding: 22px 26px 8px;
}

.consulta-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.consulta-modal__item {
    min-width: 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
}

.consulta-modal__item dt {
    margin-bottom: 4px;
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.consulta-modal__item dd {
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 800;
}

.consulta-modal__message-block {
    margin-top: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
}

.consulta-modal__message-block h3 {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 900;
}

.consulta-modal__message {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.consulta-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 26px 24px;
    border-top: 1px solid var(--admin-border);
    background: #ffffff;
}

/* Guard de paginas privadas */
body.admin-protected .admin-layout {
    visibility: hidden;
}

body.admin-protected::before {
    content: 'Validando acceso...';
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    color: #e0f2fe;
    background:
        radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.18), transparent 24rem),
        linear-gradient(135deg, #050b16 0%, #0b1729 55%, #020617 100%);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.admin-protected.admin-ready .admin-layout {
    visibility: visible;
}

body.admin-protected.admin-ready::before {
    display: none;
}

/* Login */
.login-page {
    min-height: 100vh;
    color: #e2e8f0;
    background: #020617;
    overflow-x: hidden;
}

.login-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 18px;
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.18), transparent 24rem),
        radial-gradient(circle at 82% 76%, rgba(29, 78, 216, 0.18), transparent 26rem),
        linear-gradient(135deg, #020617 0%, #08111f 52%, #0f172a 100%);
    isolation: isolate;
}

.login-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}

.login-bg {
    position: absolute;
    z-index: -2;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.7;
}

.login-bg--one {
    top: 14%;
    left: 8%;
    width: 210px;
    height: 210px;
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 120px rgba(56, 189, 248, 0.24);
}

.login-bg--two {
    right: 8%;
    bottom: 12%;
    width: 270px;
    height: 270px;
    background: rgba(29, 78, 216, 0.14);
    box-shadow: 0 0 140px rgba(29, 78, 216, 0.26);
}

.login-card {
    width: min(100%, 448px);
    padding: 32px;
    color: #e2e8f0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(2, 6, 23, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(22px);
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 30px;
}

.login-logo__icon {
    width: 48px;
    height: 48px;
    padding: 5px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.09);
    box-shadow: 0 16px 46px rgba(56, 189, 248, 0.18);
}

.login-logo__text {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #ffffff;
    font-size: 1.32rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.login-logo__text strong {
    color: var(--admin-accent);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.login-heading {
    margin-bottom: 26px;
}

.login-heading__eyebrow {
    display: inline-flex;
    margin-bottom: 11px;
    padding: 6px 12px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-heading h1 {
    color: #ffffff;
    font-size: clamp(2rem, 6vw, 2.65rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.07em;
}

.login-heading p {
    margin-top: 12px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.96rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-field input {
    min-height: 52px;
    width: 100%;
    padding: 14px 15px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 15px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.login-field input::placeholder {
    color: rgba(148, 163, 184, 0.64);
}

.login-field input:focus {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(56, 189, 248, 0.72);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12), 0 0 36px rgba(14, 165, 233, 0.12);
}

.login-message {
    min-height: 20px;
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.86rem;
}

.login-message--error {
    color: #fecaca;
}

.login-submit {
    min-height: 54px;
    margin-top: 2px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent-2), var(--admin-accent));
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(14, 165, 233, 0.28);
    font-weight: 900;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(56, 189, 248, 0.34);
    filter: saturate(1.08);
}

.login-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.login-back {
    display: inline-flex;
    margin-top: 22px;
    color: rgba(186, 230, 253, 0.82);
    font-size: 0.9rem;
    font-weight: 800;
    transition: color var(--transition), transform var(--transition);
}

.login-back:hover {
    color: #ffffff;
    transform: translateX(-2px);
}

@media (max-width: 1220px) {
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
    :root { --sidebar-width: 244px; }
    .sidebar__brand { font-size: 0.86rem; }
    .content, .topbar { padding-left: 22px; padding-right: 22px; }
    .filters { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .admin-layout { display: block; }
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        box-shadow: none;
    }
    .sidebar__nav { padding-top: 14px; }
    .sidebar__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar__footer { display: none; }
    .main-content { margin-left: 0; }
    .topbar { position: relative; flex-direction: column; align-items: flex-start; }
    .cards-grid { grid-template-columns: 1fr; }
    .card { min-height: 138px; }
    .consulta-modal { padding: 14px; place-items: end center; }
    .consulta-modal__card { max-height: 92vh; border-radius: 20px; }
    .consulta-modal__grid { grid-template-columns: 1fr; }
    .consulta-modal__header, .consulta-modal__content, .consulta-modal__actions { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 480px) {
    .sidebar__list { grid-template-columns: 1fr; }
    .content { padding: 16px; }
    .topbar { padding: 18px 16px; }
    .table th, .table td { padding: 11px 12px; }
    .acciones { flex-direction: column; }
    .consulta-modal { padding: 10px; }
    .consulta-modal__actions { flex-direction: column-reverse; }
    .consulta-modal__actions .admin-btn { width: 100%; }
    .login-shell { padding: 18px 12px; }
    .login-card { padding: 24px 20px; border-radius: 22px; }
    .login-logo { margin-bottom: 24px; }
    .login-logo__text { font-size: 1.15rem; }
    .login-heading p { font-size: 0.9rem; }
}
