/* =========================
   RESET BASE
========================= */
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body.gc-clean-body,
body.gc-login-body {
    margin: 0 !important;
    padding: 0 !important;
    color: #0f172a;
    font-family: Arial, Helvetica, sans-serif;
}

body.gc-clean-body {
    background: #f8fafc !important;
}

body.gc-login-body {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%) !important;
}

/* =========================
   LIMPIEZA DEL TEMA
========================= */
/* Ocultar solo elementos del tema, no los del panel */
body.gc-clean-body header:not(.gc-sidebar-header),
body.gc-clean-body footer,
body.gc-clean-body .site-header,
body.gc-clean-body #masthead,
body.gc-clean-body .main-navigation,
body.gc-clean-body .navigation,
body.gc-clean-body .page-header,
body.gc-clean-body .entry-header,
body.gc-clean-body .site-footer,
body.gc-clean-body #colophon,
body.gc-clean-body .comments-area,
body.gc-clean-body .post-navigation,
body.gc-clean-body .widget-area,
body.gc-clean-body aside:not(.gc-sidebar),
body.gc-clean-body .sidebar:not(.gc-sidebar),
body.gc-clean-body .right-sidebar,
body.gc-clean-body .left-sidebar,
body.gc-clean-body .secondary,
body.gc-clean-body .entry-title,
body.gc-clean-body h1.entry-title,
body.gc-clean-body .wp-block-post-title,
body.gc-clean-body .page-title {
    display: none !important;
}

body.gc-clean-body #page,
body.gc-clean-body .site,
body.gc-clean-body #content,
body.gc-clean-body .site-content,
body.gc-clean-body .content-area,
body.gc-clean-body .site-main,
body.gc-clean-body main,
body.gc-clean-body article,
body.gc-clean-body .entry-content,
body.gc-clean-body .inside-article,
body.gc-clean-body .container,
body.gc-clean-body .wrap,
body.gc-clean-body .content-wrapper,
body.gc-clean-body .page-content,
body.gc-login-body #page,
body.gc-login-body .site,
body.gc-login-body #content,
body.gc-login-body .site-content,
body.gc-login-body .content-area,
body.gc-login-body .site-main,
body.gc-login-body main,
body.gc-login-body article,
body.gc-login-body .entry-content,
body.gc-login-body .inside-article,
body.gc-login-body .container,
body.gc-login-body .wrap,
body.gc-login-body .content-wrapper,
body.gc-login-body .page-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* =========================
   LAYOUT PANEL
========================= */
.gc-front {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch;
    background: #f8fafc;
}

.gc-sidebar {
    width: 220px;
    min-width: 220px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #0b1e4d 0%, #081633 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 12px;
    box-sizing: border-box;
    overflow-y: auto;
}

.gc-main {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 28px;
    box-sizing: border-box;
}



/* =========================
   TITULOS
========================= */
.gc-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gc-topbar-title {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 700;
}

.gc-topbar-subtitle {
    margin: 6px 0 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.gc-page-title {
    margin: 0 0 20px 0;
    font-size: 38px;
    color: #0f172a;
    font-weight: 800;
}

.gc-page-title-tight {
    margin-bottom: 0 !important;
}

.gc-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.gc-dashboard-header-simple {
    margin-bottom: 18px;
}

.gc-dashboard-kicker {
    margin: 0 0 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gc-dashboard-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
    color: #0f172a;
    font-weight: 800;
}

.gc-dashboard-subtitle {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.gc-dashboard-date {
    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 18px;
    padding: 14px 18px;
    min-width: 130px;
    text-align: right;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.gc-dashboard-date span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
}

.gc-dashboard-date strong {
    font-size: 18px;
    color: #0f172a;
    font-weight: 800;
}

/* =========================
   CAJAS
========================= */
.gc-box {
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
    overflow-x: auto;
}

.gc-box h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: #0f172a;
    font-weight: 800;
}

.gc-box-large {
    min-height: 100%;
}

.gc-box-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.gc-box-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.gc-box-compact {
    padding-top: 20px;
}

/* =========================
   NOTICES
========================= */
.gc-notice-box {
    border-width: 1px;
    border-style: solid;
}

.gc-notice-success {
    background: #ecfdf5;
    border-color: #d1fae5;
}

.gc-notice-success p {
    color: #166534;
}

.gc-notice-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.gc-notice-error p {
    color: #991b1b;
}

.gc-notice-warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.gc-notice-warning p {
    color: #9a3412;
}

.gc-notice-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.gc-notice-info p {
    color: #1d4ed8;
}

/* =========================
   STATS
========================= */
.gc-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.gc-dashboard-stats-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gc-dashboard-stats-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gc-dashboard-stats-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gc-stat-card,
.gc-stat {
    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.gc-stat-card.warning,
.gc-stat.warning {
    background: #fffbea;
}

.gc-stat-card.danger {
    background: #fff1f2;
}

.gc-stat-label {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
}

.gc-stat-value,
.gc-stat p {
    display: block;
    font-size: 34px;
    line-height: 1;
    color: #0f172a;
    font-weight: 800;
    margin: 0;
}

.gc-stat h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

/* =========================
   GRID Y RESUMENES
========================= */
.gc-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.gc-dashboard-side {
    display: grid;
    gap: 24px;
}

.gc-summary-list {
    display: grid;
    gap: 12px;
}

.gc-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    background: #f8fafc;
}

.gc-summary-item span {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.gc-summary-item strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

/* =========================
   ALERTAS
========================= */
.gc-alert-list {
    display: grid;
    gap: 12px;
}

.gc-alert-card {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid transparent;
}

.gc-alert-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 800;
}

.gc-alert-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.gc-alert-card.success {
    background: #ecfdf5;
    border-color: #d1fae5;
}

.gc-alert-card.success strong,
.gc-alert-card.success p {
    color: #166534;
}

.gc-alert-card.warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.gc-alert-card.warning strong,
.gc-alert-card.warning p {
    color: #9a3412;
}

.gc-alert-card.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.gc-alert-card.danger strong,
.gc-alert-card.danger p {
    color: #991b1b;
}

/* =========================
   TABLAS
========================= */
.gc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.gc-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #e9eef5;
}

.gc-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    font-size: 14px;
    vertical-align: middle;
}

.gc-table tbody tr {
    transition: background 0.2s ease;
}

.gc-table tbody tr:hover {
    background: #f1f5ff;
}

.gc-row-warning {
    background: #fff8eb;
}

.gc-row-danger {
    background: #fff2f2;
}

/* =========================
   BADGES
========================= */
.gc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    background: #e5e7eb;
    color: #334155;
}

.gc-badge-success {
    background: #dcfce7;
    color: #166534;
}

.gc-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.gc-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================
   BOTONES
========================= */
.gc-btn,
.gc-btn-secondary,
.gc-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.18s ease;
    border: 0;
}

.gc-btn {
    background: #2563eb;
    color: #fff;
}

.gc-btn:hover {
    transform: translateY(-1px);
    background: #1d4ed8;
    color: #fff;
}

.gc-btn-secondary {
    background: #64748b;
    color: #fff;
}

.gc-btn-secondary:hover {
    transform: translateY(-1px);
    background: #475569;
    color: #fff;
}

.gc-btn-outline {
    border: 1px solid #2563eb;
    background: #ffffff;
    color: #2563eb;
}

.gc-btn-outline:hover {
    background: #eff6ff;
}

.gc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gc-btn-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.gc-btn-table:hover {
    transform: translateY(-1px);
    opacity: 0.92;
    color: #fff;
}

.gc-btn-edit {
    background: #2563eb;
}

.gc-btn-renew {
    background: #16a34a;
}

.gc-btn-delete {
    background: #dc2626;
}

.gc-btn-whatsapp {
    background: #0f766e;
}

.gc-btn-reminder {
    background: #f59e0b;
}

.gc-btn-disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.7;
    color: #475569;
}

/* =========================
   FILTROS
========================= */
.gc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.gc-section-header .gc-page-title {
    margin: 0 !important;
}

.gc-section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gc-search-input,
.gc-filter-select {
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    font-size: 14px;
    color: #0f172a;
}

.gc-search-input {
    min-width: 360px;
}

.gc-sales-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 180px 180px;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.gc-search-input-sales {
    min-width: 0;
    width: 100%;
}

.gc-filter-select {
    min-width: 190px;
}

/* =========================
   FORMULARIOS
========================= */
.gc-account-form {
    width: 100%;
    display: block;
}

.gc-account-form .gc-form-grid,
.gc-account-form .gc-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    align-items: start;
    width: 100%;
    margin-bottom: 18px;
}

.gc-account-form .gc-field {
    display: block;
    width: 100%;
    min-width: 0;
}

.gc-account-form .gc-field label {
    display: block;
    width: 100%;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #334155;
}

.gc-account-form .gc-field input[type="text"],
.gc-account-form .gc-field input[type="email"],
.gc-account-form .gc-field input[type="number"],
.gc-account-form .gc-field input[type="date"],
.gc-account-form .gc-field input[type="password"],
.gc-account-form .gc-field select,
.gc-account-form .gc-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    font-size: 14px;
    height: auto;
    color: #0f172a;
}

.gc-account-form .gc-field textarea {
    resize: vertical;
}

.gc-account-form .gc-field-full {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 18px;
}

.gc-account-form .gc-field-full textarea {
    width: 100%;
    min-height: 120px;
}

.gc-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gc-account-form.gc-sending {
    opacity: 0.68;
    pointer-events: none;
}

/* =========================
   VENTAS
========================= */
.gc-sale-preview {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
    border: 1px solid #dbeafe;
}

.gc-sale-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gc-sale-preview-item {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.gc-sale-preview-item-full {
    grid-column: 1 / -1;
}

.gc-sale-preview-item span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gc-sale-preview-item strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
}

.gc-hidden {
    display: none !important;
}

.gc-campo-cuenta,
.gc-campo-perfil,
.gc-campo-codigo {
    display: none;
}

/* =========================
   CHARTS
========================= */
.gc-dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.gc-box-chart-wide {
    grid-column: 1 / -1;
}

.gc-chart-wrap {
    position: relative;
    width: 100%;
    height: 320px;
}

.gc-box-chart-wide .gc-chart-wrap {
    height: 360px;
}

/* =========================
   SECCIONES
========================= */
.gc-section-title {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
    font-weight: 800;
}

.gc-section-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

/* =========================
   GANANCIAS / ESTADOS
========================= */
.gc-profit-positive {
    display: inline-block;
    color: #166534;
    background: #dcfce7;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 800;
}

.gc-profit-negative {
    display: inline-block;
    color: #b91c1c;
    background: #fee2e2;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 800;
}

.gc-profit-neutral {
    display: inline-block;
    color: #475569;
    background: #e5e7eb;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 800;
}

/* =========================
   LOGIN
========================= */
.gc-login-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 24%),
        linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.gc-login-shell {
    width: 100%;
    max-width: 1100px;
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
}

.gc-login-panel {
    position: relative;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 52%, #1e40af 100%);
    color: #ffffff;
    overflow: hidden;
}

.gc-login-panel::before {
    content: "";
    position: absolute;
    top: 28px;
    left: -70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.gc-login-panel::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.gc-login-panel-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
}

.gc-login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gc-login-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    padding: 6px;
    box-sizing: border-box;
}

.gc-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.gc-login-brand-copy h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 800;
    color: #ffffff;
}

.gc-login-brand-copy p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
}

.gc-login-welcome {
    max-width: 430px;
}

.gc-login-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gc-login-welcome h2 {
    margin: 18px 0 14px;
    font-size: 48px;
    line-height: 1.02;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.gc-login-welcome p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    max-width: 390px;
}

.gc-login-panel-foot {
    margin-top: auto;
}

.gc-login-feature-list {
    display: grid;
    gap: 14px;
}

.gc-login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.gc-login-feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bfdbfe;
    flex: 0 0 10px;
    box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.18);
}

.gc-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.gc-login-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 26px;
    padding: 34px 30px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
    animation: gcFadeUp 0.4s ease;
}

.gc-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
}

.gc-login-card-header {
    margin-bottom: 24px;
}

.gc-login-card-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gc-login-card-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gc-login-card-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
}

.gc-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gc-login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-login-field label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.gc-login-field input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    background: #f1f5f9;
    padding: 0 16px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.gc-login-field input::placeholder {
    color: #94a3b8;
}

.gc-login-field input:focus {
    border-color: #60a5fa;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.gc-login-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.gc-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
    filter: brightness(1.03);
}

.gc-login-btn:active {
    transform: translateY(0);
}

.gc-login-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.gc-login-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.gc-login-alert-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #15803d;
}

@keyframes gcFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1300px) {
    .gc-dashboard-stats-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .gc-sales-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .gc-sales-toolbar .gc-search-input {
        grid-column: 1 / -1;
    }

    .gc-sale-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .gc-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gc-dashboard-stats-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gc-dashboard-grid,
    .gc-dashboard-charts {
        grid-template-columns: 1fr;
    }

    .gc-box-chart-wide {
        grid-column: auto;
    }

    .gc-account-form .gc-form-grid,
    .gc-account-form .gc-form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    .gc-login-page {
        padding: 20px;
    }

    .gc-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .gc-login-panel {
        min-height: 320px;
    }

    .gc-login-panel-inner {
        padding: 36px 28px;
        gap: 28px;
    }

    .gc-login-welcome h2 {
        font-size: 36px;
    }

    .gc-login-wrap {
        padding: 30px 28px;
    }

    .gc-login-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .gc-front {
        flex-direction: column;
        min-height: auto;
    }

    .gc-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 10px 12px;
    }

    .gc-sidebar-brand {
        margin-bottom: 10px;
    }

    .gc-sidebar-footer {
        display: none;
    }

    .gc-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .gc-sidebar-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 42px;
        padding: 0 14px;
        border-radius: 12px;
    }

    .gc-main {
        width: 100%;
        padding: 14px;
    }

    .gc-page-title,
    .gc-dashboard-title {
        font-size: 26px;
        line-height: 1.1;
    }

    .gc-dashboard-subtitle,
    .gc-box-subtitle,
    .gc-section-subtitle {
        font-size: 14px;
        line-height: 1.45;
    }

    .gc-dashboard-stats,
    .gc-dashboard-stats-3,
    .gc-dashboard-stats-4,
    .gc-dashboard-stats-5,
    .gc-dashboard-grid,
    .gc-dashboard-charts,
    .gc-sale-preview-grid,
    .gc-account-form .gc-form-grid,
    .gc-account-form .gc-form-grid-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gc-box,
    .gc-stat,
    .gc-stat-card {
        padding: 14px;
        border-radius: 16px;
    }

    .gc-stat-value,
    .gc-stat p {
        font-size: 26px;
    }

    .gc-section-header,
    .gc-box-header,
    .gc-dashboard-header,
    .gc-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .gc-section-actions,
    .gc-sales-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .gc-search-input,
    .gc-search-input-sales,
    .gc-filter-select,
    .gc-btn,
    .gc-btn-secondary,
    .gc-btn-outline {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .gc-box {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gc-table {
        min-width: 700px;
    }

    .gc-table thead th,
    .gc-table tbody td {
        font-size: 13px;
        padding: 10px 8px;
        white-space: nowrap;
    }

    .gc-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .gc-btn-table {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .gc-login-page {
        padding: 14px;
    }

    .gc-login-panel-inner,
    .gc-login-wrap {
        padding: 22px;
    }

    .gc-login-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .gc-login-brand-copy h1 {
        font-size: 24px;
    }

    .gc-login-welcome h2 {
        font-size: 30px;
    }

    .gc-login-welcome p,
    .gc-login-card-header p {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .gc-topbar-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .gc-main {
        padding: 10px;
    }

    .gc-page-title,
    .gc-dashboard-title {
        font-size: 22px;
    }

    .gc-box h2,
    .gc-section-title {
        font-size: 18px;
    }

    .gc-stat-value,
    .gc-stat p {
        font-size: 22px;
    }

    .gc-box,
    .gc-stat,
    .gc-stat-card {
        padding: 12px;
    }

    .gc-chart-wrap,
    .gc-box-chart-wide .gc-chart-wrap {
        height: 200px;
    }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f3f4f6;
  font-family: Arial, sans-serif;
}
html,
body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.gc-clean-body {
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8fafc !important;
}

/* Fuerza a todos los wrappers del tema a no limitar ancho */
body.gc-clean-body,
body.gc-clean-body #page,
body.gc-clean-body .site,
body.gc-clean-body #content,
body.gc-clean-body .site-content,
body.gc-clean-body .content-area,
body.gc-clean-body .site-main,
body.gc-clean-body main,
body.gc-clean-body article,
body.gc-clean-body .entry-content,
body.gc-clean-body .inside-article,
body.gc-clean-body .container,
body.gc-clean-body .wrap,
body.gc-clean-body .content-wrapper,
body.gc-clean-body .page-content,
body.gc-clean-body .post,
body.gc-clean-body .page,
body.gc-clean-body .hentry {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Layout principal */
body.gc-clean-body .gc-front {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8fafc !important;
}

/* Menú izquierdo */
body.gc-clean-body .gc-sidebar {
    width: 220px !important;
    min-width: 220px !important;
    min-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Contenido derecho */
body.gc-clean-body .gc-main {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 24px !important;
}

/* Evita cajas centradas internas */
body.gc-clean-body .gc-main > * {
    width: 100% !important;
    max-width: none !important;
}
body.gc-clean-body,
body.gc-clean-body #page,
body.gc-clean-body .site,
body.gc-clean-body #content,
body.gc-clean-body .site-content,
body.gc-clean-body .content-area,
body.gc-clean-body .site-main,
body.gc-clean-body main,
body.gc-clean-body article,
body.gc-clean-body .post,
body.gc-clean-body .page,
body.gc-clean-body .hentry,
body.gc-clean-body .entry-content,
body.gc-clean-body .inside-article,
body.gc-clean-body .container,
body.gc-clean-body .wrap,
body.gc-clean-body .content-wrapper,
body.gc-clean-body .page-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.gc-clean-body .entry-title,
body.gc-clean-body .page-title,
body.gc-clean-body .wp-block-post-title {
    display: none !important;
}

body.gc-clean-body .gc-front {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.gc-clean-body .gc-sidebar {
    width: 220px !important;
    min-width: 220px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

body.gc-clean-body .gc-main {
    flex: 1 !important;
    min-height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 24px !important;
}
/* Página panel en modo app */
body.gc-clean-body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ocultar header/footer del tema */
body.gc-clean-body header,
body.gc-clean-body footer,
body.gc-clean-body .wp-site-blocks > header,
body.gc-clean-body .wp-site-blocks > footer,
body.gc-clean-body .site-header,
body.gc-clean-body .site-footer,
body.gc-clean-body .wp-block-template-part {
    display: none !important;
}

/* Ocultar navegación superior */
body.gc-clean-body .wp-block-navigation,
body.gc-clean-body nav {
    display: none !important;
}

/* Ocultar título de la página */
body.gc-clean-body .entry-title,
body.gc-clean-body .wp-block-post-title,
body.gc-clean-body .page-title,
body.gc-clean-body h1.wp-block-post-title {
    display: none !important;
}

/* Romper el contenedor del tema */
body.gc-clean-body .wp-site-blocks,
body.gc-clean-body main,
body.gc-clean-body .wp-block-group,
body.gc-clean-body .wp-block-post-content,
body.gc-clean-body .entry-content,
body.gc-clean-body .is-layout-constrained,
body.gc-clean-body .alignwide,
body.gc-clean-body .alignfull {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tu app */
body.gc-clean-body .gc-front {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.gc-clean-body .gc-sidebar {
    width: 220px !important;
    min-width: 220px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

body.gc-clean-body .gc-main {
    flex: 1 !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 24px !important;
    max-width: none !important;
}
/* NO ocultar los elementos propios del panel */
body.gc-clean-body .gc-sidebar,
body.gc-clean-body .gc-sidebar *,
body.gc-clean-body .gc-sidebar nav,
body.gc-clean-body .gc-sidebar aside {
    display: initial !important;
}

/* Restaurar la barra lateral */
body.gc-clean-body .gc-sidebar {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 220px !important;
    min-width: 220px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    background: linear-gradient(180deg, #0b1e4d 0%, #081633 100%) !important;
    color: #fff !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    position: sticky !important;
    top: 0 !important;
}

/* Restaurar navegación interna del panel */
body.gc-clean-body .gc-sidebar .gc-sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.gc-clean-body .gc-sidebar .gc-sidebar-nav a {
    display: flex !important;
    align-items: center !important;
}

/* Layout principal */
body.gc-clean-body .gc-front {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh !important;
}

body.gc-clean-body .gc-main {
    display: block !important;
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    padding: 24px !important;
}
/* =========================
   AJUSTE FINO SIDEBAR
========================= */
body.gc-clean-body .gc-sidebar {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: linear-gradient(180deg, #0b1e4d 0%, #081633 100%) !important;
    padding: 18px 14px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

/* Contenedor interno */
body.gc-clean-body .gc-sidebar-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Marca arriba */
body.gc-clean-body .gc-sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

body.gc-clean-body .gc-sidebar-logo {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

body.gc-clean-body .gc-sidebar-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

body.gc-clean-body .gc-sidebar-brand-text {
    min-width: 0 !important;
    line-height: 1.2 !important;
}

body.gc-clean-body .gc-sidebar-brand-text strong {
    display: block !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #fff !important;
    white-space: nowrap !important;
}

body.gc-clean-body .gc-sidebar-brand-text small {
    display: block !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.72) !important;
}

/* Navegación */
body.gc-clean-body .gc-sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.gc-clean-body .gc-sidebar-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: rgba(255,255,255,0.9) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

body.gc-clean-body .gc-nav-icon {
    width: 18px !important;
    min-width: 18px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

body.gc-clean-body .gc-nav-text {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Footer del sidebar */
body.gc-clean-body .gc-sidebar-footer {
    margin-top: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

body.gc-clean-body .gc-sidebar-user {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.06) !important;
    min-width: 0 !important;
}

body.gc-clean-body .gc-sidebar-user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    flex-shrink: 0 !important;
}

body.gc-clean-body .gc-sidebar-user-meta {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

body.gc-clean-body .gc-sidebar-user-meta strong {
    font-size: 13px !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.gc-clean-body .gc-sidebar-user-meta span {
    font-size: 11px !important;
    color: rgba(255,255,255,0.65) !important;
}

/* Botón cerrar sesión */
body.gc-clean-body .gc-btn-logout-sidebar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 46px !important;
    width: 100% !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #ef4444, #f43f5e) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}
/* =========================
   SOLO LOGIN
========================= */
body.gc-login-body header,
body.gc-login-body footer,
body.gc-login-body .wp-block-template-part,
body.gc-login-body .wp-block-post-title,
body.gc-login-body .entry-title,
body.gc-login-body .page-title,
body.gc-login-body .wp-block-navigation,
body.gc-login-body nav:not(.gc-login-page nav) {
    display: none !important;
}

body.gc-login-body,
body.gc-login-body .wp-site-blocks,
body.gc-login-body main,
body.gc-login-body .wp-block-group,
body.gc-login-body .wp-block-post-content,
body.gc-login-body .entry-content,
body.gc-login-body .is-layout-constrained,
body.gc-login-body .alignwide,
body.gc-login-body .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.gc-login-body {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%) !important;
}