:root {
    --azul-noche: #061A33;
    --azul-mar: #0B2C4A;
    --dorado-pan: #D9A441;
    --dorado-suave: #F3D27A;
    --crema-pan: #FFF4DD;
    --blanco-harina: #FFFDF8;
    --madera: #8B4E2F;
    --verde-sur: #2F5D50;
    --texto: #2A241E;
    --gris: #f4f6f8;
    --borde: #dfe5ec;
    --error: #9b1c1c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: var(--texto);
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(217,164,65,.25), transparent 30%),
        linear-gradient(135deg, #061A33, #0B2C4A);
}

.login-card {
    width: min(420px, 92vw);
    background: white;
    padding: 34px;
    border-radius: 24px;
    box-shadow: 0 20px 80px rgba(0,0,0,.25);
}

.login-brand {
    text-align: center;
    margin-bottom: 22px;
}

.login-brand img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 22px;
    background: var(--azul-noche);
}

.login-brand h1 {
    margin: 18px 0 4px;
    color: var(--azul-noche);
}

.login-brand p {
    margin: 0;
    color: #666;
}

.login-form label,
.admin-form label {
    display: block;
    font-weight: 700;
    margin: 14px 0 6px;
}

.login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-form select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--borde);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    background: white;
}

.login-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--dorado-pan);
    box-shadow: 0 0 0 3px rgba(217,164,65,.18);
}

button,
.btn-primary,
.btn-outline {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-form button,
.btn-primary {
    background: linear-gradient(135deg, var(--dorado-pan), var(--dorado-suave));
    color: #1a160e;
    width: auto;
}

.login-form button {
    width: 100%;
    margin-top: 20px;
}

.btn-outline {
    background: white;
    color: var(--azul-noche);
    border: 1px solid var(--borde);
}

.back-site {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--azul-mar);
    text-decoration: none;
}

.alert-error {
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffe8e8;
    color: var(--error);
    font-weight: 700;
    margin-bottom: 15px;
}

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, var(--azul-noche), var(--azul-mar));
    color: white;
    padding: 22px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    margin-bottom: 22px;
}

.admin-logo img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 14px;
}

.admin-logo strong {
    display: block;
    font-size: 20px;
    color: var(--dorado-suave);
}

.admin-logo span {
    display: block;
    font-size: 13px;
    opacity: .8;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a {
    color: white;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 12px;
    font-weight: 700;
    opacity: .9;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255,255,255,.12);
    color: var(--dorado-suave);
}

.admin-sidebar nav a.logout {
    margin-top: 18px;
    background: rgba(255,0,0,.14);
}

.admin-main {
    margin-left: 260px;
    padding: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin: 0 0 6px;
    color: var(--azul-noche);
}

.admin-header p {
    margin: 0;
    color: #667085;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.admin-panel {
    background: white;
    border: 1px solid var(--borde);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(6,26,51,.06);
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    display: block;
    color: #667085;
    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 34px;
    color: var(--azul-noche);
}

.admin-panel {
    padding: 24px;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-title h2 {
    margin: 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid var(--borde);
    vertical-align: middle;
}

th {
    background: #f8fafc;
    color: var(--azul-noche);
    font-size: 14px;
}

td {
    color: #344054;
}

.thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--borde);
}

.preview-img {
    max-width: 220px;
    border-radius: 18px;
    border: 1px solid var(--borde);
    margin-bottom: 18px;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions a,
td a,
.panel-title a {
    color: var(--azul-mar);
    font-weight: 800;
    text-decoration: none;
}

.actions a.danger {
    color: #b42318;
}

.admin-form {
    display: grid;
    gap: 14px;
}

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

.checks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.checks input {
    width: auto;
}

.compact-form {
    grid-template-columns: 1fr 2fr auto;
    align-items: end;
    margin-bottom: 22px;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(110px,1fr) minmax(130px,1fr) auto;
    gap: 6px;
}

.inline-form button {
    background: var(--azul-mar);
    color: white;
    padding: 9px 11px;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .admin-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid,
    .compact-form {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   GARPER ADMIN - TEMA FINAL AZUL METALICO SUAVE
   Este bloque debe quedar al final de admin.css
   ========================================================= */

:root{
  --azul-noche:#1F3550;
  --azul-mar:#3F5E7A;
  --azul-acero:#6D879E;
  --azul-niebla:#DCE6EE;
  --dorado-pan:#D8B15A;
  --dorado-suave:#E8C97A;
  --crema-pan:#F7F1E4;
  --blanco-harina:#FFFDF8;
  --madera:#445A70;
  --verde-sur:#4F7D68;
  --texto:#2F241C;
  --gris:#F5F7FA;
  --borde:#D9E1E8;
  --error:#9b1c1c;
}

body{
  background:#F5F7FA !important;
  color:var(--texto) !important;
}

.admin-login-body{
  background:
    radial-gradient(circle at top left, rgba(232,201,122,.18), transparent 30%),
    linear-gradient(135deg,#1F3550,#3F5E7A) !important;
}

.login-card,
.stat-card,
.admin-panel{
  background:#FFFDF8 !important;
  border-color:rgba(63,94,122,.12) !important;
  box-shadow:0 14px 36px rgba(31,53,80,.10) !important;
}

.login-brand h1,
.admin-header h1,
.stat-card strong,
th{
  color:#1F3550 !important;
}

.admin-sidebar{
  background:linear-gradient(180deg,#1F3550,#3F5E7A) !important;
}

.admin-logo strong,
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active{
  color:#E8C97A !important;
}

.login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-form select{
  background:#FFFDF8 !important;
  border-color:#D9E1E8 !important;
  color:#2F241C !important;
}

.login-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus{
  border-color:#3F5E7A !important;
  box-shadow:0 0 0 3px rgba(63,94,122,.16) !important;
}

.login-form button,
.btn-primary{
  background:linear-gradient(135deg,#D8B15A,#E8C97A) !important;
  color:#1F3550 !important;
}

.btn-outline{
  background:#FFFDF8 !important;
  color:#1F3550 !important;
  border-color:#D9E1E8 !important;
}

.inline-form button{
  background:#3F5E7A !important;
  color:#fff !important;
}

.actions a,
td a,
.panel-title a,
.back-site{
  color:#3F5E7A !important;
}

th{
  background:#EEF3F7 !important;
}

td{
  color:#344054 !important;
}

.thumb,
.preview-img{
  border-color:#D9E1E8 !important;
}
/* =========================================================
   GARPER ADMIN - Azul Francia / Azul Eléctrico
   Pegar al final de /public_html/assets/css/admin.css
   ========================================================= */

:root{
  --admin-blue-electric:#061BFF;
  --admin-blue-france:#002CFF;
  --admin-blue-deep:#00124A;
  --admin-blue-night:#000B2E;
  --admin-gold:#F3C45B;
  --admin-bg:#F3F6FF;
  --admin-card:#FFFFFF;
  --admin-text:#111827;
  --admin-muted:#64748B;
}

body{
  background:
    radial-gradient(circle at top left, rgba(6,27,255,.08), transparent 28%),
    linear-gradient(180deg,#ffffff 0%,#f3f6ff 100%) !important;
  color:var(--admin-text) !important;
}

.admin-sidebar,
.sidebar,
.admin-menu,
aside{
  background:linear-gradient(180deg,var(--admin-blue-night),var(--admin-blue-deep),var(--admin-blue-france)) !important;
  color:#fff !important;
}

.admin-sidebar a,
.sidebar a,
.admin-menu a,
aside a{
  color:rgba(255,255,255,.88) !important;
}

.admin-sidebar a:hover,
.admin-sidebar a.active,
.sidebar a:hover,
.sidebar a.active,
.admin-menu a:hover,
.admin-menu a.active,
aside a:hover,
aside a.active{
  background:rgba(255,255,255,.14) !important;
  color:#fff !important;
}

.admin-main,
main.admin-main{
  background:transparent !important;
}

.admin-header h1,
.admin-main h1,
.admin-main h2,
.admin-main h3{
  color:var(--admin-blue-deep) !important;
}

.admin-header p,
.admin-main p{
  color:var(--admin-muted) !important;
}

.admin-panel,
.card,
.panel,
.table-responsive,
.admin-form{
  background:var(--admin-card) !important;
  border:1px solid rgba(0,44,255,.10) !important;
  box-shadow:0 18px 45px rgba(0,18,74,.10) !important;
  border-radius:24px !important;
}

table thead th{
  background:#E8EEFF !important;
  color:var(--admin-blue-deep) !important;
}

table tbody td{
  color:var(--admin-text) !important;
  border-color:#E5E7EB !important;
}

.btn-primary,
button.btn-primary,
a.btn-primary,
.admin-main button[type="submit"]{
  background:linear-gradient(135deg,var(--admin-gold),#FFE08A) !important;
  color:var(--admin-blue-night) !important;
  border:0 !important;
  box-shadow:0 12px 28px rgba(243,196,91,.24) !important;
}

.btn-outline,
a.btn-outline{
  background:#fff !important;
  color:var(--admin-blue-deep) !important;
  border:1px solid rgba(0,44,255,.16) !important;
}

input,
select,
textarea{
  background:#fff !important;
  border:1px solid rgba(0,44,255,.16) !important;
  color:var(--admin-text) !important;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--admin-blue-electric) !important;
  box-shadow:0 0 0 4px rgba(6,27,255,.12) !important;
}

.actions a{
  color:var(--admin-blue-electric) !important;
}

.actions a.danger,
.danger{
  color:#DC2626 !important;
}

.alert-error{
  background:#FEE2E2 !important;
  color:#991B1B !important;
  border-left:5px solid #DC2626 !important;
}

.alert-success,
.success-alert{
  background:#E8EEFF !important;
  color:var(--admin-blue-deep) !important;
  border-left:5px solid var(--admin-blue-electric) !important;
}
/* =========================================================
   GARPER ADMIN - FIX Azul Francia / Azul Eléctrico completo
   Pegar al final de /public_html/assets/css/admin.css
   ========================================================= */

:root{
  --admin-blue-electric:#061BFF;
  --admin-blue-france:#002CFF;
  --admin-blue-deep:#00124A;
  --admin-blue-night:#000B2E;
  --admin-gold:#F3C45B;
}

body{
  background:
    radial-gradient(circle at top left, rgba(6,27,255,.08), transparent 28%),
    linear-gradient(180deg,#ffffff 0%,#f3f6ff 100%) !important;
  color:#111827 !important;
}

.admin-sidebar,
.sidebar,
.admin-menu,
aside{
  background:linear-gradient(180deg,#000B2E 0%,#002CFF 62%,#061BFF 100%) !important;
  color:#ffffff !important;
}

.admin-sidebar a,
.sidebar a,
.admin-menu a,
aside a{
  color:rgba(255,255,255,.88) !important;
}

.admin-sidebar a:hover,
.admin-sidebar a.active,
.sidebar a:hover,
.sidebar a.active,
.admin-menu a:hover,
.admin-menu a.active,
aside a:hover,
aside a.active{
  background:rgba(255,255,255,.14) !important;
  color:#ffffff !important;
}

.admin-header h1,
.admin-main h1,
.admin-main h2,
.admin-main h3{
  color:#00124A !important;
}

.admin-panel,
.card,
.panel,
.table-responsive,
.admin-form{
  background:#ffffff !important;
  border:1px solid rgba(0,44,255,.12) !important;
  box-shadow:0 18px 45px rgba(0,18,74,.10) !important;
  border-radius:24px !important;
}

table thead th{
  background:#E8EEFF !important;
  color:#00124A !important;
}

.btn-primary,
button.btn-primary,
a.btn-primary,
.admin-main button[type="submit"]{
  background:linear-gradient(135deg,#F3C45B 0%,#FFE08A 100%) !important;
  color:#000B2E !important;
  border:0 !important;
  box-shadow:0 12px 28px rgba(243,196,91,.24) !important;
}

.btn-outline,
a.btn-outline{
  background:#ffffff !important;
  color:#00124A !important;
  border:1px solid rgba(0,44,255,.18) !important;
}

input,
select,
textarea{
  background:#ffffff !important;
  border:1px solid rgba(0,44,255,.16) !important;
  color:#111827 !important;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#061BFF !important;
  box-shadow:0 0 0 4px rgba(6,27,255,.12) !important;
}

.actions a{
  color:#061BFF !important;
}

.actions a.danger,
.danger{
  color:#DC2626 !important;
}


/* =========================================================
   GARPER ADMIN - AZUL ELECTRICO FINAL DEFINITIVO
   Este bloque debe quedar SIEMPRE al final de admin.css.
   ========================================================= */

:root{
  --azul-noche:#000B2E !important;
  --azul-mar:#002CFF !important;
  --dorado-pan:#F3C45B !important;
  --dorado-suave:#FFE08A !important;
  --texto:#111827 !important;
  --borde:#D8E0F0 !important;
}

body{
  background:
    radial-gradient(circle at top left, rgba(6,27,255,.08), transparent 28%),
    linear-gradient(180deg,#ffffff 0%,#f3f6ff 100%) !important;
  color:#111827 !important;
}

.admin-login-body{
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 30%),
    linear-gradient(135deg,#000B2E 0%,#002CFF 56%,#061BFF 100%) !important;
}

.login-card,
.stat-card,
.admin-panel,
.table-responsive,
.admin-form{
  background:#ffffff !important;
  border:1px solid rgba(0,44,255,.12) !important;
  box-shadow:0 18px 45px rgba(0,18,74,.10) !important;
}

.login-brand h1,
.admin-header h1,
.stat-card strong,
th,
.admin-main h1,
.admin-main h2,
.admin-main h3{
  color:#000B2E !important;
}

.admin-sidebar{
  background:linear-gradient(180deg,#000B2E 0%,#002CFF 62%,#061BFF 100%) !important;
  color:#ffffff !important;
}

.admin-logo strong,
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active{
  color:#FFE08A !important;
}

.admin-sidebar nav a{
  color:rgba(255,255,255,.88) !important;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active{
  background:rgba(255,255,255,.14) !important;
}

.login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-form select,
input,
select,
textarea{
  background:#ffffff !important;
  border:1px solid rgba(0,44,255,.16) !important;
  color:#111827 !important;
}

.login-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
input:focus,
select:focus,
textarea:focus{
  border-color:#061BFF !important;
  box-shadow:0 0 0 4px rgba(6,27,255,.12) !important;
}

.login-form button,
.btn-primary,
button.btn-primary,
a.btn-primary,
.admin-main button[type="submit"],
.inline-form button{
  background:linear-gradient(135deg,#F3C45B 0%,#FFE08A 100%) !important;
  color:#000B2E !important;
  border:0 !important;
  box-shadow:0 12px 28px rgba(243,196,91,.24) !important;
}

.btn-outline,
a.btn-outline{
  background:#ffffff !important;
  color:#000B2E !important;
  border:1px solid rgba(0,44,255,.18) !important;
}

th,
table thead th{
  background:#E8EEFF !important;
  color:#000B2E !important;
}

td{
  color:#111827 !important;
}

.actions a,
td a,
.panel-title a{
  color:#061BFF !important;
}

.actions a.danger,
.danger{
  color:#DC2626 !important;
}

.alert-error{
  background:#FEE2E2 !important;
  color:#991B1B !important;
  border-left:5px solid #DC2626 !important;
}
