/* =========================
   LAYOUT CRM
========================= */
.crm-container {
    display: flex;
    min-height: 100vh;
}

.crm-sidebar {
    width: 250px;
    background: #111;
    color: #fff;
    padding: 20px;
}

.crm-sidebar ul {
    list-style: none;
    padding: 0;
}

.crm-sidebar li {
    margin: 10px 0;
}

.crm-sidebar a {
    color: #fff;
    text-decoration: none;
}

.crm-main {
    flex: 1;
    padding: 40px;
}

/* =========================
   BOTÓN ACCESO CRM
========================= */
.gmr-header-crm-access {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 50%;

    background: #111827;
    color: #ffffff;

    cursor: pointer;
    line-height: 1;

    box-shadow: 0 8px 22px rgba(0,0,0,.14);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.gmr-header-crm-access:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.gmr-header-crm-access:focus,
.gmr-header-crm-access:active,
.gmr-header-crm-access:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(17,24,39,.16);
}

.gmr-header-crm-access svg {
    width: 22px;
    height: 22px;
    display: block;
}
/* =========================
   MODAL AUTH
========================= */
.gmr-auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.gmr-auth-modal.is-open {
    display: block;
}

.gmr-auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.72);
    backdrop-filter: blur(4px);
}

.gmr-auth-box {
    position: relative;
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}


/* =========================
   HEADER AUTH
========================= */
.gmr-auth-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #111827;
}

.gmr-auth-header p {
    margin: 0 0 22px;
    color: #6b7280;
}

.gmr-auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;
    
    background: #f3f4f6;
    color: #111827;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;

    /* 🔥 Elimina estilos raros por defecto */
    outline: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* Hover limpio (sin rosado) */
.gmr-auth-close:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

/* Focus accesible sin glow feo */
.gmr-auth-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.15);
}

/* Estado activo (click) */
.gmr-auth-close:active {
    background: #d1d5db;
    transform: scale(0.95);
}

/* Estado persistente (si usas clase active con JS) */
.gmr-auth-close.is-active {
    background: #d4af37; /* dorado */
    color: #111;
}

/* =========================
   TABS
========================= */
.gmr-auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.gmr-auth-tabs button,
.gmr-auth-small button {
    border: none;
    background: #f3f4f6;
    color: #111827;
    border-radius: 999px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
}

.gmr-auth-tabs button.is-active {
    background: #111827;
    color: #fff;
}

/* =========================
   FORMULARIOS
========================= */
.gmr-auth-form {
    display: none;
}

.gmr-auth-form.is-active {
    display: block;
}

.gmr-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gmr-auth-form label {
    display: block;
    margin-bottom: 14px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.gmr-auth-form input {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}

.gmr-auth-form input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,.12);
}

.gmr-auth-submit {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.gmr-auth-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* =========================
   ALERTAS
========================= */
.gmr-auth-alert {
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.gmr-auth-alert.is-success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gmr-auth-alert.is-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.gmr-auth-alert.is-info {
    display: block;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* =========================
   FOOTER / TEXTOS
========================= */
.gmr-auth-small {
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
}

.gmr-auth-small button {
    padding: 6px 10px;
    font-size: 13px;
}

/* =========================
   UTILIDADES
========================= */
.gmr-no-scroll {
    overflow: hidden !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 720px) {
    .gmr-auth-grid {
        grid-template-columns: 1fr;
    }

    .gmr-auth-box {
        padding: 22px;
    }

    .gmr-open-auth {
        right: 16px;
        bottom: 16px;
    }
}

.gmr-auth-close.is-active {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #111;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}


/* Reset focus feo del navegador */
.gmr-auth-form input:focus,
.gmr-auth-form input:active,
.gmr-auth-form input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: #111827;
}

/* Botones */
.gmr-auth-submit:focus,
.gmr-auth-submit:active,
.gmr-auth-submit:focus-visible,
.gmr-open-auth:focus,
.gmr-open-auth:active,
.gmr-open-auth:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


.gmr-header-crm-access {
    width: 52px;
    height: 52px;
    min-width: 52px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    border-radius: 50% !important;

    background: #111827 !important;
    color: #ffffff !important;

    cursor: pointer;
    line-height: 1;

    box-shadow: 0 8px 22px rgba(0,0,0,.14);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.gmr-header-crm-access:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.gmr-header-crm-access svg {
    width: 30px;
    height: 30px;
    display: block;
}

.gmr-auth-tabs button,
.gmr-auth-small button,
.gmr-auth-submit,
.gmr-auth-close,
.gmr-header-crm-access {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.gmr-auth-tabs button:hover,
.gmr-auth-tabs button:focus,
.gmr-auth-tabs button:active,
.gmr-auth-tabs button:focus-visible,
.gmr-auth-tabs button.is-active {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    background: #111827 !important;
    color: #ffffff !important;
    border: none !important;
}

.gmr-auth-tabs button:not(.is-active) {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.gmr-auth-small button:hover,
.gmr-auth-small button:focus,
.gmr-auth-small button:active,
.gmr-auth-small button:focus-visible,
.gmr-auth-submit:hover,
.gmr-auth-submit:focus,
.gmr-auth-submit:active,
.gmr-auth-submit:focus-visible,
.gmr-auth-close:hover,
.gmr-auth-close:focus,
.gmr-auth-close:active,
.gmr-auth-close:focus-visible,
.gmr-header-crm-access:hover,
.gmr-header-crm-access:focus,
.gmr-header-crm-access:active,
.gmr-header-crm-access:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.gmr-auth-form input:hover,
.gmr-auth-form input:focus,
.gmr-auth-form input:active,
.gmr-auth-form input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: #111827 !important;
    background: #ffffff !important;
}
/* Badge superior */
.gmr-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 12px;

    padding: 6px 12px;

    border-radius: 999px;

    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #111;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;

    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.gmr-auth-badge span {
    display: block;
}

/* Hover dorado global */
.gmr-auth-tabs button:hover,
.gmr-auth-small button:hover,
.gmr-auth-submit:hover,
.gmr-auth-close:hover,
.gmr-header-crm-access:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e) !important;
    color: #111 !important;
    border-color: transparent !important;
}

/* Tabs activos dorados */
.gmr-auth-tabs button.is-active {
    background: linear-gradient(135deg, #d4af37, #f5d76e) !important;
    color: #111 !important;
}

/* Botón principal */
.gmr-auth-submit {
    background: #111827;
}

.gmr-auth-submit:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e) !important;
    color: #111 !important;
}

/* Botón cerrar */
.gmr-auth-close:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #111;
}

/* Botón header */
.gmr-header-crm-access:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e) !important;
    color: #111 !important;
}

.gmr-header-crm-access,
.gmr-header-crm-access:hover,
.gmr-header-crm-access:focus,
.gmr-header-crm-access:active,
.gmr-header-crm-access:focus-visible {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.gmr-header-crm-access {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
}

.gmr-crm-body {
    margin: 0;
    background: #f6f7fb;
    color: #111827;
    font-family: inherit;
}

.gmr-crm-shell {
    display: flex;
    min-height: 100vh;
}

.gmr-crm-sidebar {
    width: 280px;
    background: #0f172a;
    color: #fff;
    padding: 28px 20px;
    flex-shrink: 0;
}

.gmr-crm-brand {
    margin-bottom: 32px;
}

.gmr-crm-brand strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.gmr-crm-brand span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

.gmr-crm-menu {
    display: grid;
    gap: 8px;
}

.gmr-crm-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-weight: 700;
    transition: all .2s ease;
}

.gmr-crm-menu a:hover,
.gmr-crm-menu a.is-active {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #111827;
}

.gmr-crm-menu hr {
    width: 100%;
    border: none;
    border-top: 1px solid rgba(255,255,255,.12);
    margin: 12px 0;
}

.gmr-crm-main {
    flex: 1;
    padding: 32px;
}

.gmr-crm-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.gmr-crm-kicker {
    color: #d4af37;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
}

.gmr-crm-topbar h1 {
    margin: 6px 0 0;
    font-size: 34px;
    line-height: 1.1;
}

.gmr-crm-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 26px rgba(15,23,42,.08);
}

.gmr-crm-user span {
    font-weight: 800;
}

.gmr-crm-user a {
    color: #991b1b;
    text-decoration: none;
    font-weight: 800;
}

.gmr-crm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.gmr-crm-card,
.gmr-crm-panel {
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15,23,42,.06);
}

.gmr-crm-card {
    padding: 22px;
}

.gmr-crm-card span {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: 13px;
}

.gmr-crm-card strong {
    display: block;
    margin-top: 10px;
    font-size: 36px;
    color: #111827;
}

.gmr-crm-grid {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 22px;
}

.gmr-crm-panel {
    padding: 24px;
}

.gmr-crm-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.gmr-crm-panel-head h2 {
    margin: 0;
    font-size: 22px;
}

.gmr-crm-panel-head span {
    color: #64748b;
    font-weight: 700;
}

.gmr-crm-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gmr-crm-service {
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    text-decoration: none;
    color: #111827;
    border: 1px solid rgba(15,23,42,.08);
    transition: all .2s ease;
}

.gmr-crm-service:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    transform: translateY(-2px);
}

.gmr-crm-service span {
    display: block;
    font-weight: 900;
}

.gmr-crm-service small {
    display: block;
    margin-top: 6px;
    color: rgba(15,23,42,.65);
    font-weight: 700;
}

.gmr-crm-activity {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gmr-crm-activity li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(15,23,42,.08);
}

.gmr-crm-activity strong {
    display: block;
}

.gmr-crm-activity span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.gmr-crm-empty {
    color: #64748b;
    font-weight: 700;
}

.gmr-crm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.gmr-crm-btn:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #111827;
}

@media (max-width: 980px) {
    .gmr-crm-shell {
        display: block;
    }

    .gmr-crm-sidebar {
        width: auto;
    }

    .gmr-crm-stats,
    .gmr-crm-grid {
        grid-template-columns: 1fr;
    }

    .gmr-crm-services {
        grid-template-columns: 1fr;
    }

    .gmr-crm-main {
        padding: 22px;
    }
}

.gmr-crm-body {
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.12), transparent 34%),
        linear-gradient(135deg, #070707 0%, #111111 45%, #17130a 100%);
    color: #ffffff;
}

.gmr-crm-main {
    background: transparent;
}

.gmr-crm-topbar {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(212,175,55,.18);
}

.gmr-crm-topbar h1 {
    color: #ffffff;
}

.gmr-crm-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(212,175,55,.10);
    border: 1px solid rgba(212,175,55,.28);
    color: #d4af37;
}

.gmr-crm-balance span {
    font-weight: 700;
    color: rgba(255,255,255,.65);
}

.gmr-crm-balance strong {
    color: #f5d76e;
    font-size: 18px;
}

.gmr-crm-hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: center;
    margin: 28px 0;
    padding: 34px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
        radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 36%);
    border: 1px solid rgba(212,175,55,.22);
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.gmr-crm-hero-badge {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #111827;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 14px;
}

.gmr-crm-hero h2 {
    margin: 0;
    color: #d4af37;
    font-size: 34px;
    font-weight: 900;
}

.gmr-crm-hero p {
    color: rgba(255,255,255,.68);
    font-size: 16px;
    max-width: 620px;
}

.gmr-crm-silver-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 24px;
    color: #111827;
    background:
        linear-gradient(135deg, #f8fafc 0%, #cbd5e1 42%, #ffffff 70%, #94a3b8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 24px 60px rgba(0,0,0,.38);
    border: 1px solid rgba(255,255,255,.55);
}

.gmr-crm-card-shine {
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55), transparent 70%);
    transform: rotate(12deg);
}

.gmr-crm-silver-card span {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
    color: rgba(15,23,42,.62);
}

.gmr-crm-silver-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 18px 0 8px;
    font-size: 42px;
    line-height: 1;
    font-weight: 950;
    color: #111827;
}

.gmr-crm-silver-card small {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-weight: 800;
}

.gmr-crm-card,
.gmr-crm-panel {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(212,175,55,.18);
    color: #ffffff;
    backdrop-filter: blur(14px);
}

.gmr-crm-card span,
.gmr-crm-panel-head span,
.gmr-crm-empty {
    color: rgba(255,255,255,.62);
}

.gmr-crm-card strong,
.gmr-crm-panel-head h2 {
    color: #ffffff;
}

.gmr-crm-service {
    min-height: 130px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    color: #ffffff;
    border-color: rgba(212,175,55,.18);
}

.gmr-crm-service span {
    color: #ffffff;
}

.gmr-crm-service small {
    color: rgba(255,255,255,.62);
}

.gmr-crm-service:hover {
    background:
        radial-gradient(circle at top right, rgba(245,215,110,.28), transparent 42%),
        linear-gradient(135deg, #d4af37, #6b4f10);
    color: #111827;
}

.gmr-crm-service:hover span,
.gmr-crm-service:hover small {
    color: #111827;
}

.gmr-crm-service-banner {
    position: relative;
    overflow: hidden;
    padding: 38px;
    margin-bottom: 24px;
    border-radius: 28px;
    border: 1px solid rgba(212,175,55,.25);
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.28), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.gmr-crm-service-banner span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #111827;
    font-weight: 900;
    font-size: 12px;
}

.gmr-crm-service-banner h2 {
    margin: 0;
    color: #ffffff;
    font-size: 38px;
}

.gmr-crm-service-banner p {
    max-width: 640px;
    color: rgba(255,255,255,.68);
}

.gmr-crm-btn {
    margin-top: 12px;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #111827;
}

@media (max-width: 980px) {
    .gmr-crm-hero {
        grid-template-columns: 1fr;
    }
}

:root {
    --gmr-crm-dark: #0f172a;
    --gmr-crm-text: #0f172a;
    --gmr-crm-muted: rgba(15, 23, 42, .68);
    --gmr-crm-bg: #ffffff;
    --gmr-crm-soft: #f8fafc;
    --gmr-crm-border: rgba(15, 23, 42, .10);
    --gmr-crm-gold: var(--gmr-gold, #d4af37);
    --gmr-crm-gold-soft: #f5d76e;
}

.gmr-crm-body {
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.12), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef2f7 100%) !important;
    color: var(--gmr-crm-text) !important;
    font-family: inherit !important;
}

.gmr-crm-sidebar {
    background: #0f172a !important;
    color: #ffffff !important;
}

.gmr-crm-topbar {
    border-bottom: 1px solid var(--gmr-crm-border) !important;
}

.gmr-crm-topbar h1,
.gmr-crm-panel-head h2,
.gmr-crm-card strong {
    color: var(--gmr-crm-text) !important;
    font-family: inherit !important;
}

.gmr-crm-kicker {
    color: var(--gmr-crm-gold) !important;
}

.gmr-crm-balance {
    background: #ffffff !important;
    border: 1px solid rgba(212,175,55,.35) !important;
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
}

.gmr-crm-balance span {
    color: var(--gmr-crm-muted) !important;
}

.gmr-crm-balance strong {
    color: var(--gmr-crm-text) !important;
}

.gmr-crm-hero,
.gmr-crm-panel,
.gmr-crm-card {
    background: #ffffff !important;
    color: var(--gmr-crm-text) !important;
    border: 1px solid var(--gmr-crm-border) !important;
    box-shadow: 0 18px 50px rgba(15,23,42,.08) !important;
}

.gmr-crm-hero h2 {
    color: var(--gmr-crm-text) !important;
}

.gmr-crm-hero p,
.gmr-crm-card span,
.gmr-crm-empty,
.gmr-crm-panel-head span {
    color: var(--gmr-crm-muted) !important;
}

.gmr-crm-hero-badge,
.gmr-crm-menu a:hover,
.gmr-crm-menu a.is-active,
.gmr-crm-btn,
.gmr-crm-service-hero__badge {
    background: var(--gmr-crm-gold) !important;
    color: #111111 !important;
}

.gmr-crm-btn:hover,
.gmr-crm-service:hover {
    background: var(--gmr-crm-dark) !important;
    color: #ffffff !important;
}

.gmr-crm-silver-card {
    background:
        linear-gradient(135deg, #f8fafc 0%, #d9dee7 42%, #ffffff 70%, #b8c0cc 100%) !important;
    color: #0f172a !important;
    border: 1px solid rgba(15,23,42,.12) !important;
}

.gmr-crm-silver-card small {
    background: var(--gmr-crm-dark) !important;
    color: #ffffff !important;
}

.gmr-crm-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gmr-crm-service {
    min-height: 135px;
    background: #ffffff !important;
    color: var(--gmr-crm-text) !important;
    border: 1px solid var(--gmr-crm-border) !important;
    box-shadow: 0 14px 36px rgba(15,23,42,.07);
}

.gmr-crm-service span {
    color: var(--gmr-crm-text) !important;
}

.gmr-crm-service small {
    color: var(--gmr-crm-muted) !important;
}

.gmr-crm-service:hover span,
.gmr-crm-service:hover small {
    color: #ffffff !important;
}

.gmr-crm-service-hero {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: center;

    min-height: 330px;
    margin-bottom: 28px;
    padding: 38px;

    border-radius: 30px;
    border: 1px solid rgba(15,23,42,.12);

    background:
        linear-gradient(90deg, rgba(15,23,42,.90), rgba(15,23,42,.62)),
        var(--gmr-service-banner) center/cover no-repeat;

    box-shadow: 0 28px 80px rgba(15,23,42,.18);
}

.gmr-crm-service-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.28), transparent 34%),
        linear-gradient(180deg, transparent, rgba(15,23,42,.18));
    pointer-events: none;
}

.gmr-crm-service-hero__content,
.gmr-crm-service-commission-card {
    position: relative;
    z-index: 1;
}

.gmr-crm-service-hero__badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .04em;
}

.gmr-crm-service-hero h2 {
    margin: 0;
    color: #ffffff !important;
    font-size: 42px;
    line-height: 1.05;
    font-family: inherit !important;
}

.gmr-crm-service-hero p {
    max-width: 580px;
    color: rgba(255,255,255,.78) !important;
    font-size: 16px;
}

.gmr-crm-service-commission-card {
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 24px;

    background:
        linear-gradient(135deg, #f8fafc 0%, #d9dee7 42%, #ffffff 70%, #b8c0cc 100%);

    color: #0f172a;
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.gmr-crm-service-commission-card span {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
    color: rgba(15,23,42,.62);
}

.gmr-crm-service-commission-card strong {
    display: block;
    margin: 18px 0 8px;
    font-size: 42px;
    line-height: 1;
    font-weight: 950;
    color: #0f172a;
}

.gmr-crm-service-commission-card small {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .gmr-crm-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gmr-crm-service-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .gmr-crm-services {
        grid-template-columns: 1fr;
    }

    .gmr-crm-service-hero {
        padding: 26px;
    }

    .gmr-crm-service-hero h2 {
        font-size: 32px;
    }
}

.gmr-lead-form {
    margin-top: 18px;
}

.gmr-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gmr-lead-field {
    display: block;
}

.gmr-lead-field span {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--gmr-crm-text, #0f172a);
}

.gmr-lead-field em {
    color: #b91c1c;
    font-style: normal;
}

.gmr-lead-field input,
.gmr-lead-field select,
.gmr-lead-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    font: inherit;
}

.gmr-lead-field textarea {
    min-height: 120px;
    resize: vertical;
}

.gmr-lead-field input:focus,
.gmr-lead-field select:focus,
.gmr-lead-field textarea:focus {
    border-color: var(--gmr-crm-gold, #d4af37);
    box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}

.gmr-lead-field-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gmr-lead-field-checkbox input {
    width: 20px;
    min-height: 20px;
}

.gmr-lead-submit {
    margin-top: 22px;
}

.gmr-crm-btn-light {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15,23,42,.12);
}

@media (max-width: 820px) {
    .gmr-lead-grid {
        grid-template-columns: 1fr;
    }
}

.gmr-lead-field-checkbox {
    display: flex;
    align-items: flex-end;
}

.gmr-lead-field-checkbox > span {
    display: none;
}

.gmr-check-card {
    width: 100%;
    min-height: 54px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
    color: #0f172a;
    transition: .2s ease;
}

.gmr-check-card:hover {
    border-color: var(--gmr-crm-gold, #d4af37);
    background: rgba(212,175,55,.08);
}

.gmr-check-card input {
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    accent-color: var(--gmr-crm-gold, #d4af37);
}

.gmr-check-card span {
    margin: 0 !important;
    color: #0f172a !important;
}

.gmr-lead-extras {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 22px;
    background: #f8fafc;
}

.gmr-lead-extras__head {
    margin-bottom: 18px;
}

.gmr-lead-extras__head h3 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
}

.gmr-lead-extras__head p {
    margin: 6px 0 0;
    color: rgba(15,23,42,.62);
    font-weight: 700;
}

.gmr-lead-extras__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gmr-check-card {
    min-height: 56px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
    color: #0f172a;
    transition: .2s ease;
}

.gmr-check-card:hover {
    border-color: var(--gmr-crm-gold, #d4af37);
    background: rgba(212,175,55,.08);
}

.gmr-check-card input {
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    accent-color: var(--gmr-crm-gold, #d4af37);
    flex: 0 0 auto;
}

.gmr-check-card span {
    margin: 0 !important;
    color: #0f172a !important;
}

.gmr-check-card:has(input:checked) {
    border-color: var(--gmr-crm-gold, #d4af37);
    background: rgba(212,175,55,.16);
}

@media (max-width: 980px) {
    .gmr-lead-extras__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .gmr-lead-extras__grid {
        grid-template-columns: 1fr;
    }
}

.gmr-leads-table {
    width: 100%;
    border-collapse: collapse;
}

.gmr-leads-table th,
.gmr-leads-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.gmr-status {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
}

.gmr-status-new { background: #e0f2fe; }
.gmr-status-contacted { background: #fef3c7; }
.gmr-status-closed { background: #dcfce7; }


.gmr-leads-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    background: #f8fafc;
}

.gmr-leads-filter label {
    display: grid;
    gap: 6px;
    font-weight: 800;
    color: #0f172a;
}

.gmr-leads-filter select {
    min-width: 190px;
    min-height: 42px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 12px;
    padding: 8px 12px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
}

.gmr-leads-table-wrap {
    overflow-x: auto;
}

.gmr-leads-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}

.gmr-leads-table th,
.gmr-leads-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    text-align: left;
    vertical-align: middle;
    color: #0f172a;
}

.gmr-leads-table th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(15,23,42,.62);
}

.gmr-leads-table td strong {
    display: block;
    color: #0f172a;
}

.gmr-leads-table td small {
    display: block;
    margin-top: 3px;
    color: rgba(15,23,42,.58);
}

.gmr-change-status {
    min-height: 38px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 10px;
    padding: 6px 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
}

.gmr-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gmr-status-new {
    background: #e0f2fe;
    color: #075985;
}

.gmr-status-contacted {
    background: #fef3c7;
    color: #92400e;
}

.gmr-status-visit {
    background: #ede9fe;
    color: #5b21b6;
}

.gmr-status-negotiation {
    background: #ffedd5;
    color: #9a3412;
}

.gmr-status-won {
    background: #dcfce7;
    color: #166534;
}

.gmr-status-lost {
    background: #fee2e2;
    color: #991b1b;
}

.gmr-muted {
    color: rgba(15,23,42,.48);
    font-weight: 800;
}

.gmr-crm-btn-small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
}

.gmr-lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gmr-lead-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.gmr-lead-detail-main,
.gmr-lead-detail-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.gmr-lead-detail-card {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.gmr-lead-detail-card h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 18px;
}

.gmr-lead-detail-grid,
.gmr-lead-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gmr-lead-detail-grid div,
.gmr-lead-meta-grid div {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.gmr-lead-detail-grid span,
.gmr-lead-meta-grid span {
    display: block;
    margin-bottom: 5px;
    color: rgba(15,23,42,.55);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.gmr-lead-detail-grid strong,
.gmr-lead-meta-grid strong {
    display: block;
    color: #0f172a;
    font-weight: 800;
    word-break: break-word;
}

.gmr-lead-meta-grid a {
    color: #0f172a;
    font-weight: 900;
    text-decoration: underline;
}

.gmr-lead-property-box {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: center;
}

.gmr-lead-property-box img {
    width: 130px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.gmr-lead-property-box strong {
    display: block;
    color: #0f172a;
}

.gmr-lead-property-box span {
    display: block;
    margin: 4px 0 8px;
    color: rgba(15,23,42,.58);
}

.gmr-lead-property-box a {
    color: var(--gmr-crm-gold, #c19b5e);
    font-weight: 900;
}

.gmr-lead-manage-label,
.gmr-lead-note-form label {
    display: grid;
    gap: 8px;
    color: #0f172a;
    font-weight: 900;
}

.gmr-lead-note-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.gmr-lead-note-form textarea {
    width: 100%;
    min-height: 130px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    padding: 12px 14px;
    resize: vertical;
    color: #0f172a;
    font: inherit;
}

.gmr-lead-note-form textarea:focus {
    outline: none;
    border-color: var(--gmr-crm-gold, #c19b5e);
    box-shadow: 0 0 0 3px rgba(193,155,94,.18);
}

.gmr-lead-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.gmr-lead-history li {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border-left: 4px solid var(--gmr-crm-gold, #c19b5e);
}

.gmr-lead-history strong {
    display: block;
    color: #0f172a;
}

.gmr-lead-history p {
    margin: 6px 0;
    color: rgba(15,23,42,.72);
}

.gmr-lead-history span {
    display: block;
    color: rgba(15,23,42,.55);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .gmr-lead-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .gmr-lead-detail-grid,
    .gmr-lead-meta-grid,
    .gmr-lead-property-box {
        grid-template-columns: 1fr;
    }

    .gmr-lead-property-box img {
        width: 100%;
        height: 180px;
    }
}

.gmr-kanban-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(280px, 1fr));
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.gmr-kanban-column {
    min-width: 280px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    padding: 14px;
}

.gmr-kanban-column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.gmr-kanban-column-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.gmr-kanban-column-head span {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.gmr-kanban-list {
    display: grid;
    gap: 12px;
}

.gmr-kanban-empty {
    padding: 18px;
    border: 1px dashed rgba(15,23,42,.18);
    border-radius: 16px;
    color: rgba(15,23,42,.48);
    text-align: center;
    font-weight: 800;
}

.gmr-kanban-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.gmr-kanban-card-top {
    display: grid;
    gap: 8px;
}

.gmr-kanban-card-top strong {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.25;
}

.gmr-kanban-meta {
    display: grid;
    gap: 5px;
    color: rgba(15,23,42,.68);
    font-size: 13px;
    font-weight: 700;
}

.gmr-kanban-email {
    color: rgba(15,23,42,.55);
    font-size: 13px;
    word-break: break-word;
}

.gmr-kanban-date {
    color: rgba(15,23,42,.46);
    font-size: 12px;
    font-weight: 800;
}

.gmr-kanban-actions {
    display: grid;
    gap: 8px;
}

.gmr-kanban-actions .gmr-change-status {
    width: 100%;
}

@media (max-width: 1300px) {
    .gmr-kanban-board {
        grid-template-columns: repeat(6, 280px);
    }
}

.gmr-profile-form {
    margin-top: 18px;
}

.gmr-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.gmr-profile-main {
    display: grid;
    gap: 20px;
}

.gmr-profile-card {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.gmr-profile-card h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 18px;
}

.gmr-profile-help {
    margin: -6px 0 16px;
    color: rgba(15,23,42,.62);
    font-weight: 700;
}

.gmr-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gmr-profile-grid label {
    display: grid;
    gap: 7px;
    color: #0f172a;
    font-weight: 900;
}

.gmr-profile-grid input,
.gmr-profile-grid textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}

.gmr-profile-grid textarea {
    resize: vertical;
}

.gmr-profile-grid input:focus,
.gmr-profile-grid textarea:focus {
    outline: none;
    border-color: var(--gmr-crm-gold, #c19b5e);
    box-shadow: 0 0 0 3px rgba(193,155,94,.18);
}

.gmr-profile-full {
    grid-column: 1 / -1;
}

.gmr-profile-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.gmr-profile-photo-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px dashed rgba(15,23,42,.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15,23,42,.52);
    font-weight: 900;
    margin-bottom: 14px;
}

.gmr-profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmr-profile-preview-agent {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.gmr-profile-preview-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #0f172a;
    overflow: hidden;
    flex: 0 0 auto;
}

.gmr-profile-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmr-profile-preview-agent strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}

.gmr-profile-preview-agent span {
    display: block;
    color: rgba(15,23,42,.58);
    font-size: 13px;
    font-weight: 800;
}

.gmr-profile-submit {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .gmr-profile-layout {
        grid-template-columns: 1fr;
    }

    .gmr-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CRM - Propiedades intranet
========================================================= */

.gmr-properties-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;

    margin-bottom: 24px;
    padding: 16px;

    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;

    background: #f8fafc;
}

.gmr-properties-filter label {
    display: grid;
    gap: 6px;

    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
}

.gmr-properties-filter select {
    min-width: 190px;
    min-height: 42px;

    border: 1px solid rgba(15,23,42,.14);
    border-radius: 12px;

    padding: 8px 12px;

    background: #ffffff;
    color: #0f172a;

    font-weight: 700;
    font-family: inherit;
}

.gmr-properties-filter select:focus {
    outline: none;
    border-color: var(--gmr-crm-gold, #c19b5e);
    box-shadow: 0 0 0 3px rgba(193,155,94,.18);
}

.gmr-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.gmr-property-card {
    overflow: hidden;

    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;

    background: #ffffff;

    box-shadow: 0 16px 44px rgba(15,23,42,.07);

    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gmr-property-card:hover {
    transform: translateY(-3px);
    border-color: rgba(193,155,94,.35);
    box-shadow: 0 22px 58px rgba(15,23,42,.11);
}

.gmr-property-card__media {
    position: relative;

    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #0f172a;
    color: #ffffff;

    text-decoration: none;
}

.gmr-property-card__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform .28s ease;
}

.gmr-property-card:hover .gmr-property-card__media img {
    transform: scale(1.04);
}

.gmr-property-card__placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: rgba(255,255,255,.68);
    font-weight: 900;
}

.gmr-property-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;

    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 6px 11px;

    background: var(--gmr-crm-gold, #c19b5e);
    color: #0f172a;

    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gmr-property-card__body {
    padding: 18px;
}

.gmr-property-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 10px;
}

.gmr-property-card__top h3 {
    margin: 0;

    color: #0f172a;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.gmr-property-status {
    display: inline-flex;
    align-items: center;

    min-height: 26px;
    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;

    white-space: nowrap;
}

.gmr-property-status-publish {
    background: #dcfce7;
    color: #166534;
}

.gmr-property-status-draft {
    background: #e5e7eb;
    color: #374151;
}

.gmr-property-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.gmr-property-card__price {
    display: block;

    margin-bottom: 6px;

    color: #0f172a;

    font-size: 20px;
    font-weight: 950;
}

.gmr-property-card__zone {
    margin: 0 0 12px;

    color: rgba(15,23,42,.62);

    font-weight: 700;
}

.gmr-property-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 14px;
}

.gmr-property-card__facts span {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 5px 9px;

    border-radius: 999px;

    background: #f8fafc;
    color: #0f172a;

    font-size: 12px;
    font-weight: 900;
}

.gmr-property-card__seller {
    display: none !important;
}

.gmr-property-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gmr-crm-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 26px;
}

.gmr-crm-pagination a {
    min-width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.12);

    background: #ffffff;
    color: #0f172a;

    text-decoration: none;
    font-weight: 900;

    transition: all .2s ease;
}

.gmr-crm-pagination a.is-active,
.gmr-crm-pagination a:hover {
    background: var(--gmr-crm-gold, #c19b5e);
    color: #0f172a;
    border-color: var(--gmr-crm-gold, #c19b5e);
}

@media (max-width: 1180px) {
    .gmr-properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .gmr-properties-grid {
        grid-template-columns: 1fr;
    }

    .gmr-properties-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gmr-properties-filter select,
    .gmr-properties-filter .gmr-crm-btn {
        width: 100%;
    }

    .gmr-property-card__top {
        display: grid;
    }
}

/* =========================================================
   CRM - Histórico
========================================================= */

.gmr-history-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;

    margin-bottom: 24px;
    padding: 16px;

    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;

    background: #f8fafc;
}

.gmr-history-filter label {
    display: grid;
    gap: 6px;

    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
}

.gmr-history-filter select {
    min-width: 210px;
    min-height: 42px;

    border: 1px solid rgba(15,23,42,.14);
    border-radius: 12px;

    padding: 8px 12px;

    background: #ffffff;
    color: #0f172a;

    font-weight: 700;
    font-family: inherit;
}

.gmr-history-filter select:focus {
    outline: none;
    border-color: var(--gmr-crm-gold, #c19b5e);
    box-shadow: 0 0 0 3px rgba(193,155,94,.18);
}

.gmr-history-timeline {
    position: relative;

    display: grid;
    gap: 18px;

    padding-left: 24px;
}

.gmr-history-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;

    width: 2px;

    background: rgba(15,23,42,.10);
}

.gmr-history-item {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
}

.gmr-history-dot {
    position: absolute;
    left: -24px;
    top: 18px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: var(--gmr-crm-gold, #c19b5e);
    border: 3px solid #ffffff;

    box-shadow: 0 0 0 3px rgba(193,155,94,.20);
}

.gmr-history-content {
    padding: 18px;

    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;

    background: #ffffff;

    box-shadow: 0 12px 34px rgba(15,23,42,.06);
}

.gmr-history-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.gmr-history-top strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.gmr-history-top span {
    color: rgba(15,23,42,.52);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.gmr-history-content p {
    margin: 8px 0 12px;

    color: rgba(15,23,42,.72);
    font-weight: 600;
    line-height: 1.6;
}

.gmr-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gmr-history-meta span {
    display: inline-flex;
    align-items: center;

    min-height: 26px;
    padding: 5px 9px;

    border-radius: 999px;

    background: #f8fafc;
    color: #0f172a;

    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 720px) {
    .gmr-history-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gmr-history-filter select,
    .gmr-history-filter .gmr-crm-btn {
        width: 100%;
    }

    .gmr-history-top {
        display: grid;
    }
}

/* =========================================================
   CRM - Clientes
========================================================= */

.gmr-clients-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;

    margin-bottom: 24px;
    padding: 16px;

    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;

    background: #f8fafc;
}

.gmr-clients-filter label {
    display: grid;
    gap: 6px;

    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
}

.gmr-clients-filter input {
    min-width: 320px;
    min-height: 42px;

    border: 1px solid rgba(15,23,42,.14);
    border-radius: 12px;

    padding: 8px 12px;

    background: #ffffff;
    color: #0f172a;

    font-weight: 700;
    font-family: inherit;
}

.gmr-clients-filter input:focus {
    outline: none;
    border-color: var(--gmr-crm-gold, #c19b5e);
    box-shadow: 0 0 0 3px rgba(193,155,94,.18);
}

.gmr-clients-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.gmr-client-card,
.gmr-client-summary-card,
.gmr-client-leads-panel {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15,23,42,.07);
}

.gmr-client-card {
    padding: 18px;
}

.gmr-client-card__head {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 16px;
}

.gmr-client-avatar {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0f172a;
    color: var(--gmr-crm-gold, #c19b5e);

    font-weight: 950;
    font-size: 20px;
}

.gmr-client-avatar-large {
    width: 76px;
    height: 76px;
    font-size: 32px;
}

.gmr-client-card__head h3 {
    margin: 0;

    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.gmr-client-card__head span {
    display: block;
    margin-top: 4px;

    color: rgba(15,23,42,.58);
    font-size: 13px;
    font-weight: 800;
}

.gmr-client-card__info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-bottom: 14px;
}

.gmr-client-card__info div {
    padding: 12px;

    border-radius: 14px;
    background: #f8fafc;
}

.gmr-client-card__info span {
    display: block;
    margin-bottom: 4px;

    color: rgba(15,23,42,.50);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.gmr-client-card__info strong {
    display: block;

    color: #0f172a;
    font-weight: 900;
    word-break: break-word;
}

.gmr-client-card__status {
    display: grid;
    gap: 8px;

    margin-bottom: 14px;
}

.gmr-client-card__status small {
    color: rgba(15,23,42,.55);
    font-weight: 800;
}

.gmr-client-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gmr-client-detail-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
}

.gmr-client-summary-card {
    padding: 24px;
    align-self: start;
}

.gmr-client-summary-card h3 {
    margin: 16px 0 10px;
    color: #0f172a;
    font-size: 22px;
}

.gmr-client-summary-card p {
    margin: 6px 0;
    color: rgba(15,23,42,.68);
    font-weight: 800;
    word-break: break-word;
}

.gmr-client-leads-panel {
    padding: 22px;
}

.gmr-client-leads-panel h3 {
    margin: 0 0 16px;
    color: #0f172a;
}

.gmr-client-leads-list {
    display: grid;
    gap: 12px;
}

.gmr-client-lead-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;

    padding: 14px;

    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;

    background: #f8fafc;
}

.gmr-client-lead-row strong {
    display: block;

    color: #0f172a;
    font-weight: 900;
}

.gmr-client-lead-row span {
    display: inline-flex;
}

.gmr-client-lead-row div span {
    display: block;
    margin-top: 4px;

    color: rgba(15,23,42,.55);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .gmr-clients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gmr-client-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .gmr-clients-grid,
    .gmr-client-card__info,
    .gmr-client-lead-row {
        grid-template-columns: 1fr;
    }

    .gmr-clients-filter {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gmr-clients-filter input,
    .gmr-clients-filter .gmr-crm-btn {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   CRM - Usuarios admin
========================================================= */

.gmr-users-table-wrap {
    overflow-x: auto;
}

.gmr-users-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}

.gmr-users-table th,
.gmr-users-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    text-align: left;
    vertical-align: middle;
    color: #0f172a;
}

.gmr-users-table th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(15,23,42,.62);
}

.gmr-users-table td strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}

.gmr-users-table td small {
    display: block;
    margin-top: 3px;
    color: rgba(15,23,42,.52);
    font-weight: 700;
}

.gmr-user-status-select,
.gmr-user-role-select {
    min-height: 38px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 10px;
    padding: 6px 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
}

.gmr-user-status-select:focus,
.gmr-user-role-select:focus {
    outline: none;
    border-color: var(--gmr-crm-gold, #c19b5e);
    box-shadow: 0 0 0 3px rgba(193,155,94,.18);
}

.gmr-user-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.gmr-user-badge-active {
    background: #dcfce7;
    color: #166534;
}

.gmr-user-badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.gmr-file-help {
    display: block;
    margin-top: 7px;
    color: rgba(15,23,42,.58);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

/* =========================================================
   CRM - Comisiones
========================================================= */

.gmr-commission-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.gmr-commission-rule-card,
.gmr-lead-commission-form {
    display: grid;
    gap: 14px;
}

.gmr-commission-rule-card {
    padding: 20px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.gmr-commission-rule-head {
    margin-bottom: 4px;
}

.gmr-commission-rule-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.gmr-commission-rule-head span {
    display: block;
    margin-top: 4px;
    color: rgba(15,23,42,.52);
    font-size: 12px;
    font-weight: 800;
}

.gmr-commission-rule-card label,
.gmr-lead-commission-form label {
    display: grid;
    gap: 7px;
    color: #0f172a;
    font-weight: 900;
}

.gmr-commission-rule-card input,
.gmr-commission-rule-card select,
.gmr-lead-commission-form input,
.gmr-lead-commission-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    padding: 10px 12px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-family: inherit;
}

.gmr-commission-rule-card input:focus,
.gmr-commission-rule-card select:focus,
.gmr-lead-commission-form input:focus,
.gmr-lead-commission-form select:focus {
    outline: none;
    border-color: var(--gmr-crm-gold, #c19b5e);
    box-shadow: 0 0 0 3px rgba(193,155,94,.18);
}

.gmr-commission-preview {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
}

.gmr-commission-preview span {
    display: block;
    color: rgba(15,23,42,.56);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.gmr-commission-preview strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 950;
}

@media (max-width: 1180px) {
    .gmr-commission-rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .gmr-commission-rules {
        grid-template-columns: 1fr;
    }
}

.gmr-crm-service-earned {
    display: block;
    margin-top: 10px;
    color: var(--gmr-crm-gold, #c19b5e);
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.gmr-crm-service small {
    display: block;
    margin-top: 8px;
}

.gmr-service-activity-list {
    display: grid;
    gap: 12px;
}

.gmr-service-activity-item {
    padding: 16px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    background: #f8fafc;
}

.gmr-service-activity-item strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}

.gmr-service-activity-item p {
    margin: 6px 0;
    color: rgba(15,23,42,.70);
}

.gmr-service-activity-item small {
    color: rgba(15,23,42,.55);
    font-weight: 800;
}

/* =========================================================
   CRM - Editor único de comisiones
========================================================= */

.gmr-commission-editor {
    max-width: 980px;
}

.gmr-commission-editor-form {
    display: grid;
    gap: 22px;
}

.gmr-commission-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gmr-commission-editor-grid label {
    display: grid;
    gap: 8px;
    color: #0f172a;
    font-weight: 900;
}

.gmr-commission-editor-grid input,
.gmr-commission-editor-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    padding: 10px 12px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-family: inherit;
}

.gmr-commission-editor-grid input:focus,
.gmr-commission-editor-grid select:focus {
    outline: none;
    border-color: var(--gmr-crm-gold, #c19b5e);
    box-shadow: 0 0 0 3px rgba(193,155,94,.18);
}

.gmr-commission-summary {
    padding: 20px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
}

.gmr-commission-summary span {
    display: block;
    margin-bottom: 6px;
    color: rgba(15,23,42,.56);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.gmr-commission-summary strong {
    display: block;
    color: #0f172a;
    font-size: 34px;
    font-weight: 950;
}

.gmr-commission-summary small {
    display: block;
    margin-top: 6px;
    color: rgba(15,23,42,.60);
    font-weight: 800;
}

@media (max-width: 760px) {
    .gmr-commission-editor-grid {
        grid-template-columns: 1fr;
    }
}

.gmr-lead-commission-amount {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.gmr-lead-commission-label {
    display: block;
    margin-top: 3px;
    color: rgba(15,23,42,.55);
    font-size: 12px;
    font-weight: 800;
}

.gmr-kanban-commission {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
}

.gmr-kanban-commission span {
    display: block;
    color: rgba(15,23,42,.55);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.gmr-kanban-commission strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.gmr-kanban-commission small {
    display: block;
    margin-top: 2px;
    color: rgba(15,23,42,.55);
    font-size: 12px;
    font-weight: 800;
}

.gmr-commission-context {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
}

.gmr-commission-context span {
    display: block;
    color: rgba(15,23,42,.55);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.gmr-commission-context strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.gmr-commission-context small {
    display: block;
    margin-top: 4px;
    color: rgba(15,23,42,.58);
    font-weight: 800;
}

/* =========================================================
   CRM - Kanban adaptable sin recorte horizontal
========================================================= */

.gmr-kanban-board {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
    align-items: start !important;
}

.gmr-kanban-column {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    padding: 14px;
}

.gmr-kanban-card {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.gmr-kanban-card * {
    min-width: 0;
}

.gmr-kanban-card-top strong,
.gmr-kanban-meta span,
.gmr-kanban-email,
.gmr-kanban-commission strong,
.gmr-kanban-commission small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gmr-kanban-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.gmr-kanban-actions .gmr-crm-btn,
.gmr-kanban-actions .gmr-change-status {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1500px) {
    .gmr-kanban-board {
        grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    .gmr-kanban-board {
        grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .gmr-kanban-board {
        grid-template-columns: 1fr !important;
    }
}
.gmr-auth-steps {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(193,155,94,.28);
    border-radius: 16px;
    background: rgba(193,155,94,.08);
    color: #0f172a;
}

.gmr-auth-steps strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 950;
}

.gmr-auth-steps ol {
    margin: 0;
    padding-left: 20px;
}

.gmr-auth-steps li {
    margin: 5px 0;
    color: rgba(15,23,42,.74);
    font-weight: 700;
    line-height: 1.35;
}

.gmr-auth-help {
    display: block;
    margin: 10px 0 14px;
    color: rgba(15,23,42,.62);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.gmr-auth-check {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 18px;
    color: rgba(15,23,42,.72);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.gmr-auth-check input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.gmr-auth-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =========================================================
   AUTH MODAL - Corrección responsive sin scroll horizontal
========================================================= */

.gmr-auth-modal,
.gmr-auth-modal *,
.gmr-auth-modal *::before,
.gmr-auth-modal *::after {
    box-sizing: border-box;
}

.gmr-auth-modal {
    overflow: hidden;
}

.gmr-auth-box {
    width: min(720px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    margin: 12px auto !important;
    padding: 24px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 22px;
}

.gmr-auth-form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.gmr-auth-grid {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
}

.gmr-auth-grid label,
.gmr-auth-form label {
    min-width: 0;
    max-width: 100%;
}

.gmr-auth-form input,
.gmr-auth-form select,
.gmr-auth-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.gmr-auth-steps {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.gmr-auth-steps ol {
    max-width: 100%;
    padding-left: 20px;
}

.gmr-auth-steps li {
    overflow-wrap: anywhere;
}

.gmr-auth-help {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.gmr-auth-check {
    width: 100%;
    max-width: 100%;
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    overflow-wrap: anywhere;
}

.gmr-auth-check input {
    width: 18px !important;
    height: 18px;
    margin: 2px 0 0;
}

.gmr-auth-check span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.gmr-auth-submit {
    width: 100%;
    max-width: 100%;
    white-space: normal;
}

@media (max-width: 760px) {
    .gmr-auth-box {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        margin: 8px auto !important;
        padding: 18px !important;
        border-radius: 18px;
    }

    .gmr-auth-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .gmr-auth-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gmr-auth-tabs button {
        width: 100%;
    }
}

/* =========================================================
   AUTH - Mostrar / ocultar contraseña
========================================================= */

.gmr-password-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.gmr-password-wrap input {
    width: 100% !important;
    padding-right: 52px !important;
}

.gmr-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;

    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 999px;

    background: rgba(15,23,42,.06);
    color: #0f172a;

    cursor: pointer;
    font-size: 16px;
    line-height: 1;

    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gmr-toggle-password:hover {
    background: rgba(193,155,94,.22);
}

.gmr-toggle-password:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(193,155,94,.22);
}

.gmr-toggle-password.is-visible {
    background: rgba(193,155,94,.28);
}

.gmr-eye-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   AUTH - Ojito de contraseña más notorio
========================================================= */

/* =========================================================
   AUTH - Icono SVG mostrar / ocultar contraseña
========================================================= */

.gmr-password-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.gmr-password-wrap input {
    width: 100% !important;
    padding-right: 64px !important;
}

.gmr-toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;

    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 1px solid rgba(193,155,94,.55);
    border-radius: 999px;

    background: rgba(193,155,94,.18);
    color: #0f172a;

    cursor: pointer;

    box-shadow: 0 6px 16px rgba(15,23,42,.10);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.gmr-toggle-password:hover {
    background: rgba(193,155,94,.34);
    border-color: rgba(193,155,94,.85);
    transform: translateY(-50%) scale(1.04);
}

.gmr-toggle-password:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(193,155,94,.25),
        0 6px 16px rgba(15,23,42,.10);
}

.gmr-toggle-password.is-visible {
    background: rgba(193,155,94,.42);
    border-color: rgba(193,155,94,.95);
}

.gmr-eye-icon {
    width: 24px;
    height: 24px;

    display: block;

    object-fit: contain;
    pointer-events: none;
}

/* =========================================================
   AUTH - Ojito SVG grande, sin círculo ni sombra
========================================================= */

.gmr-password-wrap input {
    padding-right: 58px !important;
}

.gmr-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;

    width: 42px !important;
    height: 42px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    cursor: pointer;
    padding: 0 !important;
}

.gmr-toggle-password:hover,
.gmr-toggle-password.is-visible {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: translateY(-50%) scale(1.08);
}

.gmr-toggle-password:focus {
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gmr-eye-icon {
    width: 30px !important;
    height: 30px !important;

    display: block;
    object-fit: contain;

    opacity: 1 !important;

    /*
     * Aumenta contraste si el SVG es oscuro o poco visible.
     * Puedes subir brightness(0) a brightness(.2) si queda demasiado negro.
     */
    filter: brightness(0) contrast(1.8) !important;

    pointer-events: none;
}

.gmr-toggle-password:hover .gmr-eye-icon,
.gmr-toggle-password.is-visible .gmr-eye-icon {
    filter: brightness(0) contrast(2.2) !important;
}


/* =========================================================
   CRM - Tabla de comisiones cargadas
========================================================= */

.gmr-commission-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gmr-commission-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.gmr-commission-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}

.gmr-commission-table th,
.gmr-commission-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    text-align: left;
    vertical-align: middle;
    color: #0f172a;
}

.gmr-commission-table th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(15,23,42,.62);
}

.gmr-commission-table td strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}

.gmr-commission-table td small {
    display: block;
    margin-top: 3px;
    color: rgba(15,23,42,.52);
    font-weight: 700;
}

@media (max-width: 760px) {
    .gmr-commission-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gmr-commission-actions .gmr-crm-btn {
        width: 100%;
    }
}

/* =========================================================
   Header CTAs - Ingreso Asociados / Quiero mi sucursal
========================================================= */

.gmr-header-cta-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gmr-header-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(193,155,94,.65);
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.gmr-header-cta-login {
    background: #0f172a;
    color: #ffffff;
}

.gmr-header-cta-login:hover {
    background: #1f2937;
    color: #ffffff;
    transform: translateY(-1px);
}

.gmr-header-cta-branch {
    background: #c19b5e;
    color: #0f172a;
}

.gmr-header-cta-branch:hover {
    background: #d7b477;
    color: #0f172a;
    transform: translateY(-1px);
}

/* =========================================================
   Modal Quiero mi sucursal
========================================================= */

.gmr-branch-modal,
.gmr-branch-modal *,
.gmr-branch-modal *::before,
.gmr-branch-modal *::after {
    box-sizing: border-box;
}

.gmr-branch-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.gmr-branch-modal.is-open {
    display: flex;
}

.gmr-branch-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.72);
    backdrop-filter: blur(5px);
}

.gmr-branch-box {
    position: relative;
    z-index: 1;
    width: min(640px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(15,23,42,.30);
}

.gmr-branch-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.gmr-branch-header {
    margin-bottom: 20px;
}

.gmr-branch-header span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(193,155,94,.16);
    color: #8a6834;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.gmr-branch-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
}

.gmr-branch-header p {
    margin: 8px 0 0;
    color: rgba(15,23,42,.65);
    font-weight: 700;
    line-height: 1.45;
}

.gmr-branch-form {
    display: grid;
    gap: 18px;
}

.gmr-branch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gmr-branch-grid label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #0f172a;
    font-weight: 900;
}

.gmr-branch-grid input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 14px;
    padding: 10px 12px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-weight: 700;
}

.gmr-branch-grid input:focus {
    outline: none;
    border-color: #c19b5e;
    box-shadow: 0 0 0 3px rgba(193,155,94,.20);
}

.gmr-branch-submit {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
}

.gmr-branch-submit:hover {
    background: #1f2937;
}

@media (max-width: 760px) {
    .gmr-header-cta-group {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }

    .gmr-header-cta {
        width: 100%;
    }

    .gmr-branch-box {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 22px;
        border-radius: 20px;
    }

    .gmr-branch-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CRM: nuevos módulos Gestoría / Telefonía / Jurídico
========================================= */

.gmr-crm-service.gmr-service-gestoria {
  background:
    radial-gradient(circle at top right, rgba(193,155,94,.22), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border-color: rgba(193,155,94,.28);
}

.gmr-crm-service.gmr-service-servicio-juridico {
  background:
    radial-gradient(circle at top right, rgba(193,155,94,.22), transparent 38%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-color: rgba(193,155,94,.35);
}

.gmr-crm-service.gmr-service-servicio-juridico span,
.gmr-crm-service.gmr-service-servicio-juridico strong,
.gmr-crm-service.gmr-service-servicio-juridico small {
  color: #fff;
}

.gmr-crm-service.gmr-service-telefonia {
  background:
    radial-gradient(circle at top right, rgba(193,155,94,.18), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,245,249,.96));
}

.gmr-crm-service-hero {
  overflow: hidden;
}

.gmr-crm-service-hero__content h2 {
  letter-spacing: -.04em;
}

.gmr-service-gestoria .gmr-crm-service-earned,
.gmr-service-telefonia .gmr-crm-service-earned {
  color: rgba(193,155,94,.98);
}

@media (max-width: 760px) {
  .gmr-crm-service.gmr-service-servicio-juridico,
  .gmr-crm-service.gmr-service-gestoria,
  .gmr-crm-service.gmr-service-telefonia {
    border-radius: 22px;
  }
}

/* =========================================
   CRM: módulo Facturación
========================================= */

.gmr-crm-billing {
  display: grid;
  gap: 24px;
}

.gmr-crm-billing__hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at top right, rgba(193,155,94,.24), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: 0 28px 90px rgba(2,6,23,.20);
}

.gmr-crm-billing__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: rgba(193,155,94,.98);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.gmr-crm-billing__hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.gmr-crm-billing__hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.80);
  line-height: 1.65;
}

.gmr-crm-billing__badge {
  min-width: 220px;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
}

.gmr-crm-billing__badge span {
  display: block;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.gmr-crm-billing__badge strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.gmr-crm-billing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gmr-crm-billing-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 22px 70px rgba(2,6,23,.07);
}

.gmr-crm-billing-card__label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(193,155,94,.14);
  color: rgba(136,104,45,1);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.gmr-crm-billing-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.gmr-crm-billing-card p {
  margin: 0;
  color: rgba(15,23,42,.66);
  line-height: 1.55;
}

.gmr-crm-billing-card__cta {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  padding: 10px 16px;
  background: rgba(193,155,94,.98);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(193,155,94,.24);
}

@media (max-width: 1024px) {
  .gmr-crm-billing__grid {
    grid-template-columns: 1fr;
  }

  .gmr-crm-billing__hero {
    grid-template-columns: 1fr;
  }

  .gmr-crm-billing__badge {
    min-width: 0;
  }
}