html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

body {
    margin-bottom: 0;
    background: #f4f6f9;
}

:root {
    --navy: #06182f;
    --gold: #c9972b;
}

/* HEADER PRINCIPAL */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 42px;
    background: #03101f;
    border-bottom: 3px solid var(--gold);
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-card-link {
    text-decoration: none;
    flex: 0 0 auto;
}

.header-brand-card {
    display: block;
    width: 420px;
    max-width: 42vw;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.top-nav .brand-logo {
    width: 95px !important;
    height: 95px !important;
    object-fit: contain;
}

.brand-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
}

.brand-subtitle {
    font-size: 18px;
    color: var(--navy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .nav-links a {
        text-decoration: none;
        color: white;
        font-weight: 700;
    }

        .nav-links a:hover {
            color: var(--gold);
        }

/* BOTON DORADO */
.btn-gold {
    background: var(--gold);
    color: white !important;
    border: none;
    font-weight: 700;
}

    .btn-gold:hover {
        background: #b78622;
        color: white !important;
    }

/* DROPDOWN SOLUCIONES */
.nav-dropdown {
    position: relative;
    padding: 12px 0;
}

    .nav-dropdown > a {
        cursor: pointer;
        display: inline-block;
    }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    min-width: 260px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,.16);
    padding: 10px 0;
    z-index: 99999;
}

    .nav-dropdown-menu a {
        display: block;
        padding: 13px 20px;
        color: var(--navy);
        white-space: nowrap;
        margin: 0;
    }

        .nav-dropdown-menu a:hover {
            background: #f7f8fa;
            color: var(--gold);
        }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown-menu:hover {
        display: block;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 8px;
    }

    .brand-name {
        font-size: 26px;
    }

    .brand-subtitle {
        font-size: 15px;
    }

    .top-nav .brand-logo {
        width: 75px !important;
        height: 75px !important;
    }

    .header-brand-card {
        width: 320px;
        max-width: 88vw;
    }
}

.site-footer {
    background: #06182f;
    color: white;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
}

.footer-col h4 {
    color: #c9972b;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

    .footer-col a:hover {
        color: #c9972b;
    }

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
}

@media(max-width:768px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.admin-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    min-height: 145px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    border: 1px solid #eee;
    transition: .25s;
}

    .admin-card-primary {
        background: #06182f;
        border-color: #c9972b;
    }

        .admin-card-primary h3,
        .admin-card-primary p {
            color: white;
        }

        .admin-card-primary h3 {
            font-weight: 900;
        }

    .admin-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 38px rgba(0,0,0,.14);
    }

    .admin-card h4 {
        color: #06182f;
        font-weight: 900;
    }

.admin-card p {
    color: #555;
    margin-bottom: 0;
}

.admin-section-title {
    padding: 0 4px;
}

    .admin-section-title h2 {
        color: var(--navy);
        font-weight: 900;
        margin: 4px 0;
    }

    .admin-section-title p {
        color: #666;
        margin: 0;
    }

.carrier-card {
    border-left: 4px solid var(--gold);
}

    .carrier-card h3 {
        color: var(--navy);
        font-size: 24px;
        font-weight: 900;
    }

.external-link-label {
    display: inline-block;
    margin-top: 16px;
    color: var(--gold);
    font-weight: 900;
}

.admin-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
}

.admin-header {
    background: white;
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

    .admin-header h1 {
        color: var(--navy);
        font-weight: 900;
        margin-bottom: 5px;
    }

    .admin-header p {
        margin: 0;
        color: #666;
    }

.admin-table-card {
    background: white;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    overflow-x: auto;
}

.admin-table th {
    color: var(--navy);
    font-weight: 900;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    vertical-align: middle;
}

.badge-admin {
    background: #f3ead7;
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
}

.status-active {
    background: #e7f7ee;
    color: #198754;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
}

.status-inactive {
    background: #fdeaea;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
}

.admin-form-card {
    background: white;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

    .admin-form-card label {
        font-weight: 800;
        color: var(--navy);
    }

    .admin-form-card .form-control {
        border-radius: 12px;
        padding: 12px 14px;
    }

.admin-eyebrow {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}

.cms-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.cms-section-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    border: 1px solid #eee;
}

.cms-section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.cms-section-badge {
    display: inline-block;
    background: #f3ead7;
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 8px;
}

.cms-section-card h3 {
    color: var(--navy);
    font-weight: 900;
    margin: 0;
}

.cms-preview-image {
    width: 100%;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #f4f6f9;
}

    .cms-preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cms-section-body h4 {
    color: var(--navy);
    font-weight: 900;
}

.cms-subtitle {
    color: var(--gold);
    font-weight: 800;
}

.cms-description {
    color: #555;
}

.cms-section-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.admin-empty {
    background: white;
    border-radius: 24px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

@media(max-width:768px) {
    .cms-section-grid {
        grid-template-columns: 1fr;
    }

    .cms-section-actions {
        flex-direction: column;
    }
}

.call-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.call-productivity-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.call-productivity-strip div {
    background: #06182f;
    color: white;
    border-radius: 16px;
    padding: 18px 20px;
    min-height: 92px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    border: 1px solid rgba(201,151,43,.35);
    box-shadow: 0 12px 30px rgba(6,24,47,.14);
}

.call-productivity-strip span {
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    color: #d49a22;
}

.call-productivity-strip strong {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.call-main {
    display: grid;
    gap: 22px;
}

.call-step-card,
.call-summary-card,
.call-actions-card {
    background: white;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    border: 1px solid #eee;
}

.call-step-card h2 {
    color: var(--navy);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
}

.call-step-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.call-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 16px;
}

.call-summary-card {
    border-top: 4px solid var(--gold);
}

.call-summary-card h3 {
    color: var(--navy);
    font-weight: 900;
    margin: 8px 0 18px;
}

.call-summary-card dl,
.conversation-dl {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.call-summary-card dt,
.conversation-dl dt {
    color: #666;
    font-weight: 800;
}

.call-summary-card dd,
.conversation-dl dd {
    margin: 0;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.call-notes-preview {
    margin-top: 18px;
    padding: 14px;
    background: #f4f6f9;
    border-radius: 12px;
    color: #555;
    min-height: 70px;
}

.conversation-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.call-operations-footer {
    margin-top: 26px;
}

.call-footer-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, .9fr);
    gap: 18px;
    margin-bottom: 18px;
}

.call-activity-panel,
.call-weekly-panel {
    background: white;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    padding: 22px 26px;
    box-shadow: 0 10px 28px rgba(6,24,47,.06);
}

.call-activity-panel h3,
.call-weekly-panel h3 {
    color: #071b3a;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 18px;
}

.call-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.call-activity-item {
    min-height: 76px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-right: 18px;
    border-right: 1px solid #e6ebf2;
}

.call-activity-item:last-child {
    border-right: 0;
}

.call-activity-item strong {
    color: #071b3a;
    display: block;
    font-size: 15px;
}

.call-activity-item small,
.call-activity-item time,
.call-weekly-grid small {
    color: #667391;
}

.call-activity-item time {
    grid-column: 2;
    font-size: 12px;
}

.call-footer-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.call-footer-svg {
    width: 42px;
    height: 42px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.call-whatsapp-svg {
    width: 46px;
    height: 46px;
    display: block;
}

.call-whatsapp-svg .wa-bubble {
    fill: #25d366;
}

.call-whatsapp-svg .wa-phone {
    fill: white;
}

.call-green {
    color: #10ad5c;
}

.call-red {
    color: #ff3045;
}

.call-blue {
    color: #1167f2;
}

.call-weekly-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.call-weekly-grid div {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    padding: 4px 16px;
    border-right: 1px solid #e6ebf2;
    color: #173660;
}

.call-weekly-grid div:last-child {
    border-right: 0;
}

.call-stat-svg {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    color: #173660;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.call-stat-blue {
    color: #1167f2;
}

.call-stat-teal {
    color: #0f9a9a;
}

.call-weekly-grid strong {
    color: #071b3a;
    font-size: 22px;
    line-height: 1;
}

.call-bottom-actions {
    display: grid;
    grid-template-columns: minmax(280px, 360px) repeat(4, minmax(150px, 1fr));
    gap: 18px;
    align-items: center;
}

.call-bottom-actions a {
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #071b3a;
    text-decoration: none;
    font-weight: 900;
    border-radius: 18px;
}

.call-bottom-actions a:not(.call-primary-action):hover {
    background: white;
    box-shadow: 0 8px 22px rgba(6,24,47,.08);
}

.call-bottom-actions .sr7-card-icon {
    width: 28px;
    height: 28px;
    color: #071b3a;
}

.call-primary-action {
    background: #1167f2;
    color: white !important;
    min-height: 70px;
    border-radius: 28px !important;
    box-shadow: 0 14px 28px rgba(17,103,242,.32);
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 18px;
    font-weight: 900;
}

.call-primary-action:hover {
    background: #0d57ce;
    color: white !important;
    transform: translateY(-2px);
}

.call-primary-phone {
    width: 25px;
    height: 25px;
    fill: white;
    stroke: white;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.call-primary-action .sr7-card-icon {
    color: white;
}

.crm-header {
    align-items: center;
}

.crm-preview-shell {
    background: #06182f;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 16px 42px rgba(0,0,0,.14);
    border: 1px solid rgba(201,151,43,.35);
}

.crm-preview-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.crm-object-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.crm-object-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: center;
    text-decoration: none;
    color: var(--navy);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.crm-object-card:hover {
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.crm-object-card small {
    grid-column: 2;
    color: #666;
}

.crm-object-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
}

.crm-object-icon .sr7-card-icon {
    width: 27px;
    height: 27px;
}

.crm-blue {
    background: #1167f2;
}

.crm-teal {
    background: #0f9a9a;
}

.crm-gold {
    background: var(--gold);
}

.crm-red {
    background: #ff3045;
}

.crm-orange {
    background: #ff6a1a;
}

.crm-purple {
    background: #6f2cc9;
}

.crm-green {
    background: #11a85b;
}

.crm-pink {
    background: #d93693;
}

.crm-indigo {
    background: #5d65bf;
}

.sr7-shell {
    min-height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #f6f8fc;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0,0,0,.08);
}

.sr7-sidebar {
    background: #06182f;
    color: white;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.sr7-brand {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 6px;
}

.sr7-brand strong {
    font-size: 24px;
    letter-spacing: .08em;
}

.sr7-brand span {
    color: #55d7f7;
    font-size: 13px;
    font-weight: 800;
}

.sr7-shield {
    width: 76px;
    height: 76px;
    border: 3px solid #1167f2;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #55d7f7;
    font-size: 26px;
    font-weight: 900;
}

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

.sr7-nav a {
    color: white;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 13px;
}

.sr7-nav a:hover,
.sr7-nav a.active {
    background: #1167f2;
    color: white;
}

.sr7-agent-card {
    margin-top: auto;
    background: rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 0;
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}

.sr7-agent-card span,
.sr7-agent-card small {
    color: rgba(255,255,255,.82);
}

.sr7-agent-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sr7-agent-top img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.22);
}

.sr7-agent-top div {
    display: grid;
    gap: 2px;
}

.sr7-agent-top strong {
    color: white;
    font-weight: 900;
}

.sr7-agent-top span {
    font-size: 12px;
}

.sr7-productivity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px 6px;
    font-size: 13px;
}

.sr7-productivity-row strong {
    color: white;
}

.sr7-productivity-row span {
    color: #38dfe6;
    font-weight: 900;
}

.sr7-progress {
    height: 10px;
    background: rgba(17,103,242,.16);
    border-radius: 99px;
    overflow: hidden;
}

.sr7-agent-card > .sr7-progress {
    margin: 0 18px 18px;
}

.sr7-progress div {
    height: 100%;
    background: #1167f2;
    border-radius: inherit;
}

.sr7-agent-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.08);
}

.sr7-agent-stats div {
    min-height: 72px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-right: 1px solid rgba(255,255,255,.08);
}

.sr7-agent-stats div:last-child {
    border-right: 0;
}

.sr7-agent-stats strong {
    color: white;
    font-size: 24px;
    line-height: 1;
}

.sr7-agent-stats span {
    color: rgba(255,255,255,.82);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.sr7-menu-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
    color: currentColor;
}

.sr7-svg-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.sr7-svg-icon svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr7-sidebar-whatsapp {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sr7-sidebar-whatsapp svg {
    width: 25px;
    height: 25px;
    display: block;
}

.sr7-sidebar-whatsapp .wa-bubble {
    fill: white;
}

.sr7-sidebar-whatsapp .wa-phone {
    fill: #06182f;
}

.sr7-nav a.active .sr7-sidebar-whatsapp .wa-phone,
.sr7-nav a:hover .sr7-sidebar-whatsapp .wa-phone {
    fill: #1167f2;
}

.sr7-card-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
    color: currentColor;
}

.sr7-menu-icon::before,
.sr7-menu-icon::after,
.sr7-card-icon::before,
.sr7-card-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.sr7-icon-home::before {
    width: 16px;
    height: 14px;
    left: 4px;
    top: 8px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px;
}

.sr7-icon-home::after {
    width: 14px;
    height: 14px;
    left: 5px;
    top: 2px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

.sr7-icon-phone::before {
    width: 17px;
    height: 17px;
    left: 4px;
    top: 3px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-right-color: transparent;
    border-radius: 5px;
    transform: rotate(-45deg);
}

.sr7-icon-heart::before {
    width: 18px;
    height: 16px;
    left: 3px;
    top: 5px;
    background: currentColor;
    clip-path: polygon(50% 100%, 4% 48%, 4% 18%, 25% 0, 50% 20%, 75% 0, 96% 18%, 96% 48%);
}

.sr7-icon-medical::before {
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: currentColor;
    border-radius: 6px;
}

.sr7-icon-medical::after {
    width: 14px;
    height: 14px;
    left: 5px;
    top: 5px;
    background:
        linear-gradient(currentColor, currentColor) center / 4px 14px no-repeat,
        linear-gradient(currentColor, currentColor) center / 14px 4px no-repeat;
    filter: invert(1);
}

.sr7-icon-bank::before {
    width: 20px;
    height: 4px;
    left: 2px;
    top: 18px;
    background: currentColor;
    box-shadow: 0 -12px 0 -1px currentColor;
}

.sr7-icon-bank::after {
    width: 18px;
    height: 12px;
    left: 3px;
    top: 6px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
    box-shadow: inset 5px 0 0 -2px currentColor, inset -5px 0 0 -2px currentColor;
}

.sr7-icon-chat::before {
    width: 20px;
    height: 16px;
    left: 2px;
    top: 4px;
    border: 2px solid currentColor;
    border-radius: 9px;
}

.sr7-icon-chat::after {
    width: 7px;
    height: 7px;
    left: 6px;
    top: 16px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skewX(-25deg);
}

.sr7-icon-message::before {
    width: 19px;
    height: 19px;
    left: 3px;
    top: 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.sr7-icon-message::after {
    width: 8px;
    height: 8px;
    left: 5px;
    top: 16px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-20deg);
}

.sr7-icon-mail::before {
    width: 20px;
    height: 15px;
    left: 2px;
    top: 5px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.sr7-icon-mail::after {
    width: 14px;
    height: 14px;
    left: 5px;
    top: 2px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.sr7-icon-list::before {
    width: 4px;
    height: 4px;
    left: 3px;
    top: 5px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

.sr7-icon-list::after {
    width: 13px;
    height: 2px;
    left: 9px;
    top: 6px;
    background: currentColor;
    box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

.sr7-icon-check::before {
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.sr7-icon-check::after {
    width: 12px;
    height: 7px;
    left: 6px;
    top: 8px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(-45deg);
}

.sr7-icon-doc::before {
    width: 16px;
    height: 20px;
    left: 4px;
    top: 2px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.sr7-icon-doc::after {
    width: 8px;
    height: 2px;
    left: 8px;
    top: 9px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.sr7-icon-folder::before {
    width: 20px;
    height: 15px;
    left: 2px;
    top: 7px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.sr7-icon-folder::after {
    width: 10px;
    height: 5px;
    left: 4px;
    top: 4px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
}

.sr7-icon-calendar::before {
    width: 20px;
    height: 18px;
    left: 2px;
    top: 4px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.sr7-icon-calendar::after {
    width: 20px;
    height: 2px;
    left: 2px;
    top: 9px;
    background: currentColor;
    box-shadow: 5px 6px 0 -1px currentColor, 11px 6px 0 -1px currentColor, 5px 11px 0 -1px currentColor, 11px 11px 0 -1px currentColor;
}

.sr7-icon-shield::before {
    width: 18px;
    height: 20px;
    left: 3px;
    top: 2px;
    border: 2px solid currentColor;
    border-radius: 9px 9px 12px 12px;
    clip-path: polygon(50% 0, 100% 18%, 100% 64%, 50% 100%, 0 64%, 0 18%);
}

.sr7-icon-shield::after {
    width: 10px;
    height: 6px;
    left: 7px;
    top: 9px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.sr7-icon-user::before {
    width: 9px;
    height: 9px;
    left: 7px;
    top: 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.sr7-icon-user::after {
    width: 18px;
    height: 10px;
    left: 3px;
    top: 14px;
    border: 2px solid currentColor;
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
}

.sr7-icon-search::before {
    width: 15px;
    height: 15px;
    left: 3px;
    top: 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.sr7-icon-search::after {
    width: 9px;
    height: 2px;
    left: 15px;
    top: 17px;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 99px;
}

.sr7-icon-star::before {
    width: 22px;
    height: 22px;
    left: 1px;
    top: 1px;
    background: currentColor;
    clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.sr7-icon-clock::before {
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.sr7-icon-clock::after {
    width: 8px;
    height: 8px;
    left: 11px;
    top: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.sr7-main {
    padding: 22px;
}

.sr7-topbar {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.sr7-search {
    flex: 1;
    background: white;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 14px 18px;
    color: #69738a;
    box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

.sr7-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
}

.sr7-hero-row h1,
.sr7-module-header h1 {
    color: #071b3a;
    font-weight: 900;
    margin: 0;
}

.sr7-hero-row h2 {
    color: #071b3a;
    font-size: 24px;
    font-weight: 900;
    margin: 6px 0;
}

.sr7-hero-row p,
.sr7-module-header p {
    color: #4e5a72;
    margin: 0;
}

.sr7-goal-card,
.sr7-panel,
.sr7-section,
.sr7-module-header {
    background: white;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.sr7-goal-card {
    display: grid;
    gap: 8px;
}

.sr7-section {
    margin-bottom: 22px;
}

.sr7-section h3,
.sr7-panel h3 {
    color: #071b3a;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 18px;
}

.sr7-quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.sr7-quick-card,
.sr7-module-card {
    background: white;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    text-decoration: none;
    color: #071b3a;
    box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

.sr7-quick-card {
    min-height: 90px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border-radius: 14px;
}

.sr7-quick-card strong {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 900;
    color: #071b3a;
}

.sr7-quick-card .crm-object-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
}

.sr7-quick-card .crm-object-icon .sr7-card-icon {
    width: 31px;
    height: 31px;
}

.sr7-quick-svg {
    width: 31px;
    height: 31px;
    display: block;
    fill: none;
    stroke: white;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr7-module-svg {
    width: 29px;
    height: 29px;
    display: block;
    fill: none;
    stroke: white;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.crm-whatsapp-logo {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.crm-whatsapp-logo svg {
    width: 43px;
    height: 43px;
    display: block;
}

.crm-whatsapp-logo .wa-bubble {
    fill: #25d366;
}

.crm-whatsapp-logo .wa-phone {
    fill: white;
}

.crm-object-icon .wa-bubble {
    fill: white;
}

.crm-object-icon .wa-phone {
    fill: #11a85b;
}

.crm-object-icon svg {
    width: 36px;
    height: 36px;
    display: block;
}

.sr7-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.sr7-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sr7-module-card {
    padding: 18px;
    min-height: 150px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.sr7-module-card strong {
    color: #071b3a;
    font-weight: 900;
}

.sr7-module-card p {
    color: #4e5a72;
    margin: 0;
}

.sr7-module-card small {
    color: #1167f2;
    font-weight: 900;
}

.sr7-quick-card:hover,
.sr7-module-card:hover {
    color: #071b3a;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,.1);
}

.sr7-right-rail {
    display: grid;
    gap: 16px;
    align-content: start;
}

.sr7-panel {
    display: grid;
    gap: 10px;
}

.sr7-panel label {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #071b3a;
}

.sr7-panel ul {
    margin: 0;
    padding-left: 18px;
    color: #4e5a72;
}

.sr7-module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.underwriting-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.underwriting-main {
    display: grid;
    gap: 22px;
}

.underwriting-main .call-step-card h2 {
    color: #071b3a;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
}

.underwriting-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.underwriting-progress-number {
    color: #071b3a;
    font-size: 42px;
    font-weight: 950;
    line-height: 1;
    margin: 12px 0;
}

.sr7-progress {
    background: #e8eef8;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.sr7-progress div {
    background: linear-gradient(90deg, #1167f2, #16a3a3);
    border-radius: inherit;
    height: 100%;
}

.underwriting-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #4e5a72;
    list-style: none;
}

.underwriting-list li {
    border: 1px solid #dce5f2;
    border-radius: 10px;
    display: grid;
    gap: 6px;
    padding: 12px;
}

.underwriting-list li strong {
    color: #071b3a;
}

.underwriting-list li span {
    color: #4e5a72;
}

.underwriting-signals {
    display: grid;
    gap: 10px;
}

.underwriting-signal {
    border: 1px solid #dce5f2;
    border-left-width: 5px;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.underwriting-signal strong {
    color: #071b3a;
}

.underwriting-signal span {
    color: #4e5a72;
}

.underwriting-signal .btn,
.underwriting-list .btn {
    justify-self: start;
    margin-top: 4px;
}

.underwriting-signal.review {
    border-left-color: #d59a21;
    background: #fff9ec;
}

.underwriting-signal.critical {
    border-left-color: #dc3545;
    background: #fff4f5;
}

.underwriting-signal.info {
    border-left-color: #1167f2;
    background: #f2f7ff;
}

.sr7-field-highlight {
    background: #fff9ec;
    border: 1px solid #d59a21;
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(213, 154, 33, .14);
    padding: 10px;
    transition: box-shadow .2s ease, background .2s ease;
}

.sr7-field-message {
    color: #9a6400;
    font-size: 13px;
    font-weight: 750;
    margin-top: 6px;
}

.sr7-smart-skip {
    display: none;
}

.carrier-catalog-grid,
.carrier-candidate-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.carrier-card {
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(7, 27, 58, .08);
    padding: 22px;
}

.carrier-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.carrier-card h2 {
    color: #071b3a;
    font-size: 24px;
    font-weight: 950;
    margin: 4px 0;
}

.carrier-card h3 {
    color: #071b3a;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.carrier-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 12px;
    text-transform: uppercase;
}

.carrier-status.ready,
.carrier-status.Activo {
    background: #e8fff3;
    color: #087b45;
}

.carrier-status.review {
    background: #fff6df;
    color: #9b6b00;
}

.carrier-status.missing_data {
    background: #fff1f2;
    color: #b42334;
}

.carrier-status.inactive {
    background: #eef2f7;
    color: #536074;
}

.carrier-product-list {
    border-top: 1px solid #e7edf5;
    display: grid;
    gap: 12px;
    padding-top: 14px;
}

.carrier-product-list div {
    display: grid;
    gap: 2px;
}

.carrier-product-list span,
.carrier-card p,
.carrier-card li {
    color: #4e5a72;
}

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

.carrier-columns ul {
    margin: 0;
    padding-left: 18px;
}

.carrier-actions {
    border-top: 1px solid #e7edf5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
}

.carrier-selection-banner,
.carrier-warning {
    border-radius: 14px;
    margin-bottom: 18px;
    padding: 18px 22px;
}

.carrier-selection-banner {
    align-items: center;
    background: #eef7ff;
    border: 1px solid #cfe3ff;
    color: #071b3a;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.carrier-selection-banner strong {
    display: block;
    font-size: 20px;
    font-weight: 950;
}

.carrier-selection-banner > span {
    background: #1167f2;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    padding: 9px 14px;
}

.carrier-warning {
    background: #fff9ec;
    border: 1px solid #f0d79a;
    color: #705200;
    font-weight: 700;
}

.illustration-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.illustration-main {
    display: grid;
    gap: 22px;
}

.illustration-main .call-step-card h2 {
    color: #071b3a;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
}

.illustration-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.illustration-context-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.illustration-context-grid div {
    background: #f7f9fc;
    border: 1px solid #e4eaf3;
    border-radius: 12px;
    display: grid;
    gap: 4px;
    padding: 14px;
}

.illustration-context-grid strong {
    color: #071b3a;
    font-weight: 900;
}

.illustration-context-grid span {
    color: #4e5a72;
}

.illustration-mini-card {
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(7, 27, 58, .08);
    display: grid;
    gap: 12px;
    padding: 18px;
}

.illustration-mini-card.selected {
    border-color: #d59a21;
    box-shadow: 0 14px 34px rgba(213, 154, 33, .18);
}

.illustration-mini-card strong {
    color: #071b3a;
    display: block;
    font-size: 18px;
    font-weight: 950;
}

.illustration-mini-card span {
    color: #4e5a72;
}

.illustration-mini-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    row-gap: 6px;
}

.illustration-mini-card dt {
    color: #4e5a72;
    font-weight: 800;
}

.illustration-mini-card dd {
    color: #071b3a;
    font-weight: 900;
    margin: 0;
    text-align: right;
}

.carrier-status.draft {
    background: #eef2f7;
    color: #536074;
}

.carrier-status.captured {
    background: #eef7ff;
    color: #1167f2;
}

.carrier-status.presented {
    background: #fff6df;
    color: #9b6b00;
}

.carrier-status.selected {
    background: #e8fff3;
    color: #087b45;
}

.pipeline-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pipeline-board {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    overflow-x: auto;
    padding-bottom: 12px;
}

.pipeline-column {
    background: #f6f8fb;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    min-height: 260px;
    padding: 14px;
}

.pipeline-column h2 {
    align-items: center;
    color: #071b3a;
    display: flex;
    font-size: 14px;
    font-weight: 950;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pipeline-card {
    background: white;
    border: 1px solid #e4eaf3;
    border-radius: 12px;
    color: #071b3a;
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
    padding: 13px;
    text-decoration: none;
}

.pipeline-card:hover {
    color: #071b3a;
    box-shadow: 0 10px 24px rgba(7, 27, 58, .1);
    transform: translateY(-2px);
}

.pipeline-card span,
.pipeline-card small {
    color: #4e5a72;
}

.pipeline-summary-grid,
.pipeline-modules-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pipeline-summary-grid div,
.pipeline-modules-grid a {
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 12px;
    color: #071b3a;
    display: grid;
    gap: 4px;
    padding: 14px;
    text-decoration: none;
}

.pipeline-summary-grid strong {
    font-weight: 950;
}

.pipeline-summary-grid span {
    color: #4e5a72;
}

.timeline-list {
    display: grid;
    gap: 12px;
}

.timeline-list article,
.pipeline-task,
.pipeline-note {
    border: 1px solid #e4eaf3;
    border-radius: 12px;
    padding: 12px;
}

.timeline-list article strong,
.pipeline-task strong {
    color: #071b3a;
    display: block;
}

.timeline-list article p,
.pipeline-note p {
    margin: 4px 0;
}

.timeline-list article span,
.pipeline-task span,
.pipeline-note span {
    color: #4e5a72;
    font-size: 13px;
}

.pipeline-task {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.pipeline-task.overdue {
    border-left: 5px solid #dc3545;
}

@media(max-width:992px) {
    .call-workspace,
    .conversation-detail-grid,
    .underwriting-layout {
        grid-template-columns: 1fr;
    }

    .call-productivity-strip {
        grid-template-columns: 1fr;
    }

    .call-footer-panels,
    .call-activity-grid,
    .call-weekly-grid,
    .call-bottom-actions {
        grid-template-columns: 1fr;
    }

    .call-activity-item,
    .call-weekly-grid div {
        border-right: 0;
        border-bottom: 1px solid #e6ebf2;
        padding-bottom: 16px;
    }

    .call-sidebar,
    .underwriting-sidebar {
        position: static;
    }

    .crm-object-grid {
        grid-template-columns: 1fr;
    }

    .sr7-shell {
        grid-template-columns: 1fr;
    }

    .sr7-sidebar {
        border-radius: 0;
    }

    .sr7-hero-row,
    .sr7-content-grid,
    .sr7-module-grid,
    .sr7-quick-grid,
    .carrier-catalog-grid,
    .carrier-candidate-grid,
    .carrier-columns,
    .illustration-layout,
    .illustration-context-grid,
    .pipeline-summary-grid,
    .pipeline-modules-grid {
        grid-template-columns: 1fr;
    }

    .carrier-selection-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .illustration-sidebar {
        position: static;
    }
}
