/**
 * CARLA 360° - Estilo analítica (Salesforce / Tableau / Power BI)
 * Azules, morados, minimalista, scorecards, dashboard modular
 */
:root {
    --c360-primary:     #0f3758;
    --c360-secondary:   #4f83a5;
    --c360-accent:      #6366f1;
    --c360-purple:      #7c3aed;
    --c360-bg:          #f8fafc;
    --c360-card:        #ffffff;
    --c360-border:      #e2e8f0;
    --c360-text:        #1e293b;
    --c360-muted:       #64748b;
    --c360-success:     #10b981;
    --c360-warning:     #f59e0b;
    --c360-danger:      #ef4444;
    --c360-sidebar-w:   260px;
}

/* Vista 360: solo el panel principal hace scroll; la barra izquierda (y el menú de saltos) permanece visible */
html.c360-html,
html:has(body.carla-360) {
    height: 100%;
    overflow: hidden;
}

body.carla-360 {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--c360-bg);
    color: var(--c360-text);
    margin: 0;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Layout: sidebar + main */
.c360-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.c360-sidebar {
    width: var(--c360-sidebar-w);
    align-self: stretch;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    background: linear-gradient(180deg, var(--c360-primary) 0%, #1e3a5f 100%);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(15, 55, 88, 0.12);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.c360-sidebar .logo {
    padding: 1.5rem;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.c360-sidebar .logo span { color: #93c5fd; }

.c360-sidebar .nav {
    padding: 1rem 0;
}

.c360-sidebar .nav a {
    display: block;
    padding: 0.65rem 1.5rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.c360-sidebar .nav a:hover,
.c360-sidebar .nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Saltos rápidos bajo «Cerrar sesión»: panel en sidebar (no fixed al viewport) */
.c360-sidebar .c360-quick-dock--sidebar {
    position: static;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 0.2rem;
    padding: 0 0.65rem 0.85rem;
    width: auto;
    pointer-events: auto;
}

.c360-sidebar .c360-quick-dock--sidebar > .c360-quick-rail {
    flex: 1;
    min-height: 0;
}

.c360-quick-rail {
    margin: 0;
    padding: 0.55rem 0.45rem 0.65rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 20px rgba(0, 0, 0, 0.15);
}

.c360-quick-rail-kicker {
    margin: 0 0 0.55rem 0;
    padding: 0 0.15rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.c360-quick-rail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.c360-quick-pin {
    --c360-pin-a: rgba(255, 255, 255, 0.12);
    --c360-pin-b: rgba(255, 255, 255, 0.04);
    --c360-pin-glow: rgba(147, 197, 253, 0.35);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem 0.45rem 0.42rem;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--c360-pin-a) 0%, var(--c360-pin-b) 55%, rgba(0, 0, 0, 0.08) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

.c360-sidebar .c360-quick-dock .c360-quick-pin:hover:not(.c360-quick-pin--disabled) {
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 20px rgba(0, 0, 0, 0.18);
}

.c360-quick-pin:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.9);
    outline-offset: 2px;
}

.c360-quick-pin--disabled {
    opacity: 0.42;
    pointer-events: none;
    cursor: not-allowed;
}

.c360-quick-pin-glow {
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at 20% 40%, var(--c360-pin-glow) 0%, transparent 55%);
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.c360-quick-pin:hover:not(.c360-quick-pin--disabled) .c360-quick-pin-glow {
    opacity: 0.85;
}

.c360-quick-pin-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.c360-quick-pin-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.c360-quick-pin-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.c360-quick-pin-sub {
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.c360-quick-pin--hero {
    --c360-pin-glow: rgba(244, 114, 182, 0.45);
}
.c360-quick-pin--hero .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.42), rgba(190, 24, 93, 0.2));
    color: #fce7f3;
}

.c360-quick-pin--kpi {
    --c360-pin-glow: rgba(45, 212, 191, 0.5);
}
.c360-quick-pin--kpi .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.45), rgba(13, 148, 136, 0.22));
    color: #ccfbf1;
}

.c360-quick-pin--clv {
    --c360-pin-glow: rgba(52, 211, 153, 0.45);
}
.c360-quick-pin--clv .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.15));
    color: #d1fae5;
}

.c360-quick-pin--desglose {
    --c360-pin-glow: rgba(129, 140, 248, 0.5);
}
.c360-quick-pin--desglose .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.45), rgba(79, 70, 229, 0.2));
    color: #e0e7ff;
}

.c360-quick-pin--detalle {
    --c360-pin-glow: rgba(56, 189, 248, 0.45);
}
.c360-quick-pin--detalle .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.4), rgba(2, 132, 199, 0.18));
    color: #e0f2fe;
}

.c360-quick-pin--adicionales {
    --c360-pin-glow: rgba(249, 115, 22, 0.4);
}
.c360-quick-pin--adicionales .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(234, 88, 12, 0.4), rgba(99, 102, 241, 0.3));
    color: #fff7ed;
}

.c360-quick-pin--ben {
    --c360-pin-glow: rgba(192, 132, 252, 0.5);
}
.c360-quick-pin--ben .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.42), rgba(126, 34, 206, 0.2));
    color: #f3e8ff;
}

.c360-quick-pin--mascotas {
    --c360-pin-glow: rgba(251, 191, 36, 0.45);
}
.c360-quick-pin--mascotas .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.45), rgba(217, 119, 6, 0.2));
    color: #fffbeb;
}

.c360-quick-pin--sfun {
    --c360-pin-glow: rgba(148, 163, 184, 0.4);
}
.c360-quick-pin--sfun .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(100, 116, 139, 0.45), rgba(51, 65, 85, 0.25));
    color: #f1f5f9;
}

.c360-quick-pin--parque {
    --c360-pin-glow: rgba(45, 212, 191, 0.45);
}
.c360-quick-pin--parque .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.42), rgba(15, 118, 110, 0.22));
    color: #ccfbf1;
}

.c360-quick-pin--pred {
    --c360-pin-glow: rgba(96, 165, 250, 0.5);
}
.c360-quick-pin--pred .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.46), rgba(37, 99, 235, 0.22));
    color: #dbeafe;
}

.c360-quick-pin--bern {
    --c360-pin-glow: rgba(16, 185, 129, 0.5);
}
.c360-quick-pin--bern .c360-quick-pin-icon {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.44), rgba(5, 150, 105, 0.2));
    color: #d1fae5;
}

#c360-hero-wrap,
#c360-kpi-grid-wrap,
#c360-clv-root,
#c360-desglose-wrap,
#c360-detalle-contratos-wrap,
#c360-servicios-adicionales-wrap,
#c360-beneficiarios-wrap,
#c360-mascotas-wrap,
#c360-sfun-wrap,
#c360-parque-memorial-wrap,
#c360-proyeccion-wrap,
#c360-bernoulli-wrap {
    scroll-margin-top: 1rem;
}

.c360-detalle-retirados-note {
    margin: 0 0 0.75rem 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--c360-text);
    background: rgba(254, 243, 199, 0.45);
    border-radius: 8px;
    border: 1px solid rgba(217, 119, 6, 0.28);
}

/* Servicios adicionales: complementario contrato + repatriación en afiliado (misma tarjeta) */
.c360-serv-adic-combined-section {
    margin: 1.25rem 0 1.5rem 0;
    padding: 1.15rem 1.25rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 55, 88, 0.14);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 247, 237, 0.65) 38%,
        rgba(238, 242, 255, 0.72) 72%,
        rgba(241, 245, 249, 0.95) 100%
    );
    box-shadow:
        0 4px 22px rgba(15, 23, 42, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.c360-serv-adic-combined-section > h2 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.45rem 0;
    color: #0f3758;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.25;
}

.c360-serv-adic-combined-section > h2::before {
    content: '';
    width: 4px;
    min-height: 1.25em;
    border-radius: 4px;
    background: linear-gradient(180deg, #ea580c 0%, #fb923c 38%, #6366f1 62%, #818cf8 100%);
    flex-shrink: 0;
}

.c360-serv-adic-combined-intro {
    margin: 0 0 1.1rem 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--c360-text);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    border: 1px solid rgba(15, 55, 88, 0.08);
}

.c360-serv-adic-combined-intro strong {
    font-weight: 700;
    color: #0f3758;
}

.c360-serv-adic-combined-intro code {
    font-size: 0.88em;
    padding: 0.06rem 0.28rem;
    border-radius: 4px;
    background: rgba(15, 55, 88, 0.06);
}

.c360-serv-adic-subblock {
    margin-top: 1.15rem;
    padding-top: 1.05rem;
    border-top: 1px dashed rgba(15, 55, 88, 0.14);
}

.c360-serv-adic-subblock:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.c360-serv-adic-subtitle {
    margin: 0 0 0.55rem 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--c360-text);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.c360-serv-adic-subnum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(145deg, #0f3758 0%, #2563eb 100%);
    flex-shrink: 0;
}

.c360-servicios-adicionales-intro {
    margin: 0 0 0.85rem 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--c360-text);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    border: 1px solid rgba(234, 88, 12, 0.18);
}

.c360-servicios-adicionales-intro code {
    font-size: 0.88em;
    padding: 0.06rem 0.28rem;
    border-radius: 4px;
    background: rgba(234, 88, 12, 0.1);
    color: #9a3412;
}

.c360-serv-adic-table-shell {
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.c360-tabla-servicios-adicionales {
    margin: 0;
    font-size: 0.82rem;
    border-collapse: collapse;
    min-width: 100%;
}

.c360-tabla-servicios-adicionales thead tr {
    background: linear-gradient(180deg, rgba(15, 55, 88, 0.09) 0%, rgba(15, 55, 88, 0.05) 100%);
}

.c360-tabla-servicios-adicionales th {
    padding: 0.65rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f3758;
    border-bottom: 2px solid rgba(15, 55, 88, 0.12);
    white-space: nowrap;
}

.c360-tabla-servicios-adicionales td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(15, 55, 88, 0.07);
    vertical-align: top;
    color: var(--c360-text);
}

.c360-tabla-servicios-adicionales tbody tr:last-child td {
    border-bottom: none;
}

.c360-tabla-servicios-adicionales tbody tr.c360-sadic-row:hover td {
    background: rgba(251, 146, 60, 0.06);
}

.c360-sadic-th-fecha,
.c360-sadic-td-fecha {
    width: 1%;
    white-space: nowrap;
}

.c360-sadic-fecha {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #334155;
}

.c360-sadic-fecha--nd {
    font-weight: 500;
    font-style: italic;
    color: var(--c360-muted);
    letter-spacing: 0.02em;
}

.c360-sadic-repat-label {
    display: inline-block;
    margin-right: 0.15rem;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3730a3;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.22);
    vertical-align: baseline;
}

.c360-sadic-row--repat:hover td {
    background: rgba(99, 102, 241, 0.06);
}

.c360-sadic-th-contrato,
.c360-sadic-td-contrato {
    width: 1%;
    white-space: nowrap;
}

.c360-sadic-contrato-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(15, 55, 88, 0.08);
    color: var(--c360-primary);
    border: 1px solid rgba(15, 55, 88, 0.1);
}

.c360-sadic-td-servicio {
    line-height: 1.45;
    min-width: 12rem;
    max-width: 36rem;
}

.c360-sadic-th-valor,
.c360-sadic-td-valor {
    text-align: right;
    white-space: nowrap;
}

.c360-sadic-valor {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #0f3758;
    letter-spacing: 0.01em;
}

.c360-sadic-valor--total {
    font-size: 1.02rem;
    font-weight: 800;
    color: #9a3412;
}

.c360-tabla-servicios-adicionales .c360-servicios-adicionales-total th {
    padding: 0.75rem 0.85rem;
    text-align: right;
    vertical-align: middle;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--c360-text);
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.12) 0%, rgba(254, 215, 170, 0.22) 100%);
    border-top: 2px solid rgba(234, 88, 12, 0.35);
    border-bottom: none;
}

.c360-tabla-servicios-adicionales .c360-servicios-adicionales-total td {
    padding: 0.75rem 0.85rem;
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.12) 0%, rgba(254, 215, 170, 0.22) 100%);
    border-top: 2px solid rgba(234, 88, 12, 0.35);
    border-bottom: none;
}

.c360-servicios-adicionales-total-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c360-muted);
}

.c360-servicios-adicionales-error {
    margin: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    color: var(--c360-danger);
    background: rgba(254, 226, 226, 0.35);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.c360-servicios-adicionales-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--c360-muted);
}

.c360-repatriacion-intro {
    margin: 0 0 1rem 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--c360-text);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    border: 1px solid rgba(15, 55, 88, 0.08);
}

.c360-repatriacion-intro code {
    font-size: 0.88em;
    padding: 0.06rem 0.28rem;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
}

.c360-repat-table-shell {
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.c360-tabla-repatriacion {
    margin: 0;
    font-size: 0.82rem;
    border-collapse: collapse;
    min-width: 100%;
}

.c360-tabla-repatriacion thead tr {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%);
}

.c360-tabla-repatriacion th {
    padding: 0.65rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3730a3;
    border-bottom: 2px solid rgba(99, 102, 241, 0.22);
    white-space: nowrap;
}

.c360-tabla-repatriacion td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(15, 55, 88, 0.07);
    vertical-align: top;
    color: var(--c360-text);
}

.c360-tabla-repatriacion tbody tr:last-child td {
    border-bottom: none;
}

.c360-tabla-repatriacion tbody tr.c360-repat-row:hover td {
    background: rgba(99, 102, 241, 0.06);
}

.c360-repat-th-valor,
.c360-repat-td-valor {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.c360-repat-valor {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #0f3758;
    letter-spacing: 0.01em;
}

.c360-repat-valor--total {
    font-size: 1.05rem;
    font-weight: 800;
    color: #4338ca;
}

.c360-repat-th-ben,
.c360-repat-td-ben {
    min-width: 14rem;
    line-height: 1.45;
}

.c360-repat-ben-nombre {
    font-weight: 600;
}

.c360-tabla-repatriacion .c360-repat-total th,
.c360-tabla-repatriacion .c360-repat-total td {
    padding: 0.75rem 0.85rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(199, 210, 254, 0.25) 100%);
    border-top: 2px solid rgba(99, 102, 241, 0.35);
    border-bottom: none;
}

.c360-repat-total-label {
    text-align: left;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--c360-text);
}

.c360-repat-total-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c360-muted);
}

.c360-repatriacion-error {
    margin: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    color: var(--c360-danger);
    background: rgba(254, 226, 226, 0.35);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.c360-repatriacion-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--c360-muted);
}

.c360-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.c360-topbar {
    flex-shrink: 0;
    background: var(--c360-card);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--c360-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.c360-topbar .search-wrap {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 520px;
    align-items: stretch;
    flex-wrap: wrap;
}

.c360-topbar .search-wrap .c360-btn {
    flex-shrink: 0;
}

.c360-btn.c360-btn--limpiar {
    background: linear-gradient(165deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    color: #fff;
    border: 1px solid rgba(127, 29, 29, 0.65);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.c360-btn.c360-btn--limpiar:hover {
    background: linear-gradient(165deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    border-color: #991b1b;
    color: #fff;
    transform: translateY(-1px);
}

.c360-topbar .search-wrap input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--c360-border);
    border-radius: 8px;
    font-size: 0.95rem;
}

.c360-topbar .search-wrap input:focus {
    outline: none;
    border-color: var(--c360-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.c360-topbar .user {
    font-size: 0.9rem;
    color: var(--c360-muted);
}

.c360-topbar .user a {
    color: var(--c360-secondary);
    text-decoration: none;
}

.c360-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.c360-btn.c360-btn-print {
    background: linear-gradient(120deg, var(--c360-accent) 0%, var(--c360-purple) 100%);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.22);
}

.c360-btn.c360-btn-print:hover:not(:disabled) {
    background: linear-gradient(120deg, #4f46e5 0%, #6d28d9 100%);
}

.c360-btn.c360-btn-print:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.c360-content {
    padding: 1.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.c360-print-meta {
    display: none;
}

/* Bloques solo visibles al imprimir (anotaciones, nota cartera desde API) */
.c360-print-suplemento {
    display: none;
}

.c360-print-suplemento-title {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--c360-primary);
}

.c360-print-suplemento-intro {
    margin: 0 0 0.65rem 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-print-suplemento-intro code {
    font-size: 0.78em;
}

/* Scorecards KPI */
.c360-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.c360-scorecard {
    background: var(--c360-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--c360-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.c360-scorecard:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.c360-scorecard {
    position: relative;
}

.c360-scorecard .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c360-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.c360-scorecard .label .c360-label-hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.9;
    font-size: 0.68rem;
}

.c360-scorecard .c360-scorecard-meta {
    font-size: 0.65rem;
    color: var(--c360-muted);
    margin-top: 0.25rem;
    line-height: 1.35;
    font-weight: 500;
    text-transform: none;
}

/* Estilo unificado para todos los íconos de ayuda (?) */
.c360-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.12rem;
    height: 1.12rem;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.26);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.95));
    color: #4f46e5;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.42) inset;
    transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.c360-help:hover {
    transform: translateY(-1px);
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.92), rgba(139, 92, 246, 0.92));
    color: #fff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28), 0 0 0 1px rgba(99, 102, 241, 0.28);
}

.c360-help:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25), 0 0 0 4px rgba(99, 102, 241, 0.12), 0 6px 16px rgba(79, 70, 229, 0.25);
}

.c360-scorecard .c360-help {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Tarjeta alerta: descuento por nómina (grupo EMPRESAS OFICINA PRINCIPAL) */
.c360-scorecard.c360-scorecard--nomina {
    background: linear-gradient(145deg, rgba(254, 243, 199, 0.65) 0%, rgba(255, 237, 213, 0.75) 50%, rgba(254, 215, 170, 0.45) 100%);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.08);
    padding-left: 2.35rem;
}

.c360-scorecard.c360-scorecard--nomina:hover {
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.12);
    border-color: rgba(217, 119, 6, 0.55);
}

.c360-scorecard-nomina-icon {
    position: absolute;
    left: 0.65rem;
    top: 0.55rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.18);
    color: #c2410c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(234, 88, 12, 0.28);
}

.c360-scorecard--nomina .value.c360-scorecard-nomina-value {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: #9a3412;
    text-transform: uppercase;
}

.c360-scorecard--nomina .c360-scorecard-meta {
    color: rgba(120, 53, 15, 0.85);
}

.c360-scorecard .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c360-text);
}

.c360-scorecard .value.highlight { color: var(--c360-primary); }
.c360-scorecard .value.success { color: var(--c360-success); }
.c360-scorecard .value.danger { color: var(--c360-danger); }
.c360-scorecard .value.accent { color: var(--c360-accent); }

.c360-scorecard .value.c360-estrellas-valor {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 1.35rem;
    color: var(--c360-text);
}

.c360-scorecard--estrellas {
    border-color: rgba(217, 119, 6, 0.28);
    background: linear-gradient(155deg, rgba(255, 251, 235, 0.98) 0%, #ffffff 52%);
    box-shadow: 0 2px 14px rgba(217, 119, 6, 0.1);
}

.c360-estrellas-fila {
    display: inline-flex;
    align-items: center;
    gap: 0.08em;
    line-height: 1;
}

.c360-scorecard .c360-estrella--llena {
    color: #ca8a04;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65),
        0 0 10px rgba(250, 204, 21, 0.45);
    filter: drop-shadow(0 1px 1px rgba(146, 64, 14, 0.22));
}

.c360-scorecard .c360-estrella--vacia {
    color: rgba(180, 165, 130, 0.42);
    text-shadow: none;
    filter: none;
}

.c360-scorecard .value.c360-estrellas-valor .c360-estrellas-num {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--c360-muted);
    opacity: 1;
}

.carla-tabla .c360-link-contrato {
    color: var(--c360-accent);
    text-decoration: none;
    font-weight: 600;
}
.carla-tabla .c360-link-contrato:hover {
    text-decoration: underline;
}

/* Segmento y scores 360 */
.c360-hero {
    background: linear-gradient(135deg, var(--c360-primary) 0%, var(--c360-purple) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.c360-hero .title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.25rem 0; }
.c360-hero .sub { font-size: 0.85rem; opacity: 0.9; }
.c360-hero .segment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.86rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.c360-hero .segment-badge .segment-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
}

.c360-hero .segment-badge .segment-badge-icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.c360-hero .segment-badge.segment-badge--riesgo_alto {
    background: rgba(239, 68, 68, 0.25);
}

.c360-hero .segment-badge.segment-badge--riesgo_medio {
    background: rgba(245, 158, 11, 0.25);
}

.c360-hero .segment-badge.segment-badge--alto_valor {
    background: rgba(34, 197, 94, 0.24);
}

.c360-hero .segment-badge.segment-badge--potencial_crecimiento {
    background: rgba(56, 189, 248, 0.24);
}

.c360-hero .segment-badge.segment-badge--estable {
    background: rgba(148, 163, 184, 0.24);
}

.c360-gauges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.c360-hero-scores-scope {
    flex-basis: 100%;
    width: 100%;
    order: 3;
    margin: 0;
    padding: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    max-width: 52rem;
}

.c360-hero-scores-scope strong {
    font-weight: 700;
    color: #fff;
}

.c360-hero-nomina-note {
    flex-basis: 100%;
    order: 4;
    margin: 0;
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
    line-height: 1.45;
    background: rgba(254, 243, 199, 0.22);
    border: 1px solid rgba(253, 230, 138, 0.4);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.c360-hero-nomina-note strong {
    color: #fff;
    font-weight: 700;
}

.c360-gauge {
    position: relative;
    text-align: center;
}

.c360-gauge .gauge-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.c360-gauge .gauge-value {
    font-size: 1.75rem;
    font-weight: 800;
}

.c360-gauge .gauge-bar {
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 999px;
    margin-top: 0.35rem;
    overflow: hidden;
}

.c360-gauge .gauge-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.c360-gauge.riesgo .gauge-fill { background: #f87171; }
.c360-gauge.crecimiento .gauge-fill { background: #34d399; }

.c360-gauge .c360-help {
    flex-shrink: 0;
}

/* Modal de ayuda (ventana emergente para todas las ?) */
.c360-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.c360-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 55, 88, 0.5);
    cursor: pointer;
}
.c360-modal-content {
    position: relative;
    background: var(--c360-card);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border: 1px solid var(--c360-border);
}
.c360-modal-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--c360-primary);
}
.c360-modal-body {
    margin: 0 0 1.25rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--c360-text);
}
.c360-modal-close {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--c360-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.c360-modal-close:hover {
    filter: brightness(1.1);
}

.c360-modal-content--sfun-obs {
    max-width: min(640px, 96vw);
}

.c360-modal-sfun-obs-body {
    margin: 0 0 1.25rem 0;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--c360-text);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: min(60vh, 28rem);
    overflow: auto;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 8px;
    border: 1px solid var(--c360-border);
    font-family: inherit;
}

.c360-modal-content--anotaciones {
    max-width: min(960px, 96vw);
}

.c360-modal-anotaciones-intro {
    margin: 0 0 0.85rem 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-modal-anotaciones-wrap {
    margin: 0 0 1.25rem 0;
    max-height: min(58vh, 520px);
    overflow: auto;
    border-radius: 10px;
    border: 1px solid var(--c360-border);
    font-size: 0.8rem;
}

.c360-tabla-anotaciones {
    margin: 0;
    font-size: 0.78rem;
}

.c360-tabla-anotaciones th,
.c360-tabla-anotaciones td {
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}

.c360-tabla-anotaciones td:nth-child(4) {
    max-width: 280px;
}

.c360-anotaciones-msg {
    text-align: center;
    color: var(--c360-muted);
    padding: 1rem 0.75rem !important;
}

.c360-anotaciones-msg--error {
    color: var(--c360-danger);
}

/* Modal: contratante_display (dirección y contacto) */
.c360-modal-content--contratante {
    max-width: min(520px, 96vw);
}

.c360-modal-contratante-intro {
    margin: 0 0 1rem 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-modal-contratante-body {
    margin: 0 0 1.25rem 0;
    max-height: min(62vh, 560px);
    overflow: auto;
    padding-right: 0.25rem;
}

.c360-modal-contratante-empty {
    margin: 0;
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--c360-muted);
    font-size: 0.88rem;
}

.c360-contratante-block {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c360-border);
}

.c360-contratante-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.c360-contratante-block-title {
    margin: 0 0 0.65rem 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--c360-primary);
}

.c360-contratante-dl {
    display: grid;
    grid-template-columns: minmax(6.5rem, 34%) 1fr;
    gap: 0.4rem 0.75rem;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.c360-contratante-dl dt {
    margin: 0;
    font-weight: 700;
    color: var(--c360-muted);
}

.c360-contratante-dl dd {
    margin: 0;
    color: var(--c360-text);
    word-break: break-word;
}

.c360-contratante-dd-only {
    grid-column: 1 / -1;
    color: var(--c360-text);
}

.c360-scorecard--contratante .c360-contratante-preview {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.c360-scorecard--contratante .c360-contratante-ver-btn {
    margin-top: 0.65rem;
    width: 100%;
    padding: 0.48rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.07);
    color: var(--c360-accent);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.c360-scorecard--contratante .c360-contratante-ver-btn:hover {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.5);
}

.c360-scorecard--contratante .c360-contratante-ver-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.c360-modal-content--notas-cartera {
    max-width: min(1100px, 98vw);
}

.c360-modal-notas-cartera-intro {
    margin: 0 0 0.85rem 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-modal-notas-cartera-wrap {
    margin: 0 0 1.25rem 0;
    max-height: min(58vh, 520px);
    overflow: auto;
    border-radius: 10px;
    border: 1px solid var(--c360-border);
    font-size: 0.8rem;
}

.c360-tabla-notas-cartera {
    margin: 0;
    font-size: 0.78rem;
}

.c360-tabla-notas-cartera th,
.c360-tabla-notas-cartera td {
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}

.c360-tabla-notas-cartera td:nth-child(4) {
    max-width: min(320px, 32vw);
}

.c360-notas-cartera-msg {
    text-align: center;
    color: var(--c360-muted);
    padding: 1rem 0.75rem !important;
}

.c360-notas-cartera-msg--error {
    color: var(--c360-danger);
}

@keyframes c360-fab-anot-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 4px 14px rgba(15, 55, 88, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset,
            0 0 0 0 rgba(37, 99, 235, 0.45);
    }
    50% {
        transform: scale(1.035);
        box-shadow:
            0 6px 22px rgba(15, 55, 88, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.18) inset,
            0 0 0 6px rgba(37, 99, 235, 0.18);
    }
}

@keyframes c360-fab-notas-cartera-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 4px 14px rgba(6, 78, 59, 0.38),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset,
            0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.035);
        box-shadow:
            0 6px 22px rgba(6, 95, 70, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.18) inset,
            0 0 0 6px rgba(16, 185, 129, 0.2);
    }
}

/* Botón flotante: nota cartera previsión (encima del FAB anotaciones) */
.c360-fab-notas-cartera {
    position: fixed;
    z-index: 941;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(5.75rem, calc(env(safe-area-inset-bottom) + 4.75rem));
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem 0.5rem 0.6rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(145deg, #064e3b 0%, #047857 48%, #10b981 130%);
    box-shadow:
        0 4px 14px rgba(6, 78, 59, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.c360-fab-notas-cartera--pulse {
    animation: c360-fab-notas-cartera-pulse 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .c360-fab-notas-cartera--pulse {
        animation: none;
    }
}

.c360-fab-notas-cartera:hover {
    animation: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(6, 95, 70, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 0 4px rgba(16, 185, 129, 0.16);
}

.c360-fab-notas-cartera:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 3px;
    animation: none;
}

.c360-fab-notas-cartera-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    flex-shrink: 0;
}

.c360-fab-notas-cartera-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    line-height: 1.15;
    text-align: left;
}

.c360-fab-notas-cartera-label {
    white-space: nowrap;
    font-size: 0.8rem;
}

.c360-fab-notas-cartera-hint {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.92;
}

@media (max-width: 480px) {
    .c360-fab-notas-cartera-label {
        display: none;
    }

    .c360-fab-notas-cartera {
        padding: 0.55rem 0.7rem;
        border-radius: 999px;
        bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 4.35rem));
    }

    .c360-fab-notas-cartera-hint {
        font-size: 0.58rem;
    }
}

/* Botón flotante: anotaciones (tabAnotacion) */
.c360-fab-anotaciones {
    position: fixed;
    z-index: 940;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem 0.5rem 0.6rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(145deg, #0f3758 0%, #1e3a5f 55%, #2563eb 160%);
    box-shadow:
        0 4px 14px rgba(15, 55, 88, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.c360-fab-anotaciones--pulse {
    animation: c360-fab-anot-pulse 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .c360-fab-anotaciones--pulse {
        animation: none;
    }
}

.c360-fab-anotaciones:hover {
    animation: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(15, 55, 88, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 0 4px rgba(37, 99, 235, 0.15);
}

.c360-fab-anotaciones:focus-visible {
    outline: 2px solid var(--c360-accent);
    outline-offset: 3px;
    animation: none;
}

.c360-fab-anotaciones-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    flex-shrink: 0;
}

.c360-fab-anotaciones-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    line-height: 1.15;
    text-align: left;
}

.c360-fab-anotaciones-label {
    white-space: nowrap;
    font-size: 0.8rem;
}

.c360-fab-anotaciones-hint {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.92;
}

@media (max-width: 480px) {
    .c360-fab-anotaciones-label {
        display: none;
    }

    .c360-fab-anotaciones {
        padding: 0.55rem 0.7rem;
        border-radius: 999px;
    }

    .c360-fab-anotaciones-hint {
        font-size: 0.58rem;
    }
}

/* Sección servicios funerarios (tarjeta aparte, debajo de KPI / convenio) */
.c360-sfun-section {
    margin: 1.25rem 0 1.5rem 0;
    padding: 1.15rem 1.25rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--c360-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.92) 100%);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.c360-sfun-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.4rem;
}

.c360-sfun-main-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e3a5f;
}

.c360-sfun-head-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.c360-sfun-chip {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem 0.45rem;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    font-size: 0.74rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(30, 58, 95, 0.14);
    color: var(--c360-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.c360-sfun-chip strong {
    font-variant-numeric: tabular-nums;
}

.c360-sfun-chip-lbl {
    color: var(--c360-muted);
    font-weight: 500;
}

.c360-sfun-chip--gasto {
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.c360-sfun-chip--ingreso {
    border-color: rgba(217, 119, 6, 0.35);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.98));
}

.c360-sfun-chart-card {
    margin: 0.85rem 0 1rem;
    padding: 0.9rem 1rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 95, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.c360-sfun-chart-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c360-text);
}

.c360-sfun-chart-sub {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.chart-container--sfun {
    position: relative;
    height: 228px;
    max-height: 38vh;
}

.c360-chart-insight#c360-sfun-chart-insight {
    margin: 0.55rem 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-sfun-tipo--ingreso {
    font-weight: 600;
}

.c360-sfun-cuenta-badge {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.12rem 0.4rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(217, 119, 6, 0.18);
    color: #b45309;
    vertical-align: middle;
}

.c360-sfun-valor--ingreso {
    color: #b45309;
    font-weight: 600;
}

.c360-sfun-kpi--ingreso-note {
    border-left: 2px solid rgba(217, 119, 6, 0.45);
    padding-left: 0.45rem;
}

.c360-sfun-section-intro {
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--c360-muted);
}

.c360-sfun-section-intro--compact {
    margin-bottom: 0.65rem;
    font-size: 0.76rem;
}

/* Parque Memorial (contratos cementerio por documento titular) — tarjeta y tabla alineadas con Servicios adicionales */
.c360-parque-section {
    margin: 1.25rem 0 1.5rem 0;
    padding: 1.15rem 1.25rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(13, 148, 136, 0.28);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 253, 250, 0.9) 42%, rgba(241, 245, 249, 0.94) 100%);
    box-shadow:
        0 4px 22px rgba(15, 23, 42, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.c360-parque-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.35rem;
}

.c360-parque-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f766e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.c360-parque-title::before {
    content: '';
    width: 4px;
    height: 1.15em;
    border-radius: 4px;
    background: linear-gradient(180deg, #0d9488 0%, #14b8a6 100%);
    flex-shrink: 0;
}

.c360-parque-head-kpis {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.c360-parque-kpi-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 148, 136, 0.22);
    color: var(--c360-text);
    box-shadow: 0 1px 4px rgba(15, 118, 110, 0.06);
}

.c360-parque-kpi-chip strong {
    font-size: 0.95em;
    font-variant-numeric: tabular-nums;
}

.c360-parque-kpi-label {
    color: var(--c360-muted);
    font-weight: 500;
}

.c360-parque-kpi-chip--total {
    flex-direction: column;
    align-items: flex-end;
    border-color: rgba(13, 148, 136, 0.38);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.98));
}

.c360-parque-kpi-chip--total .c360-parque-kpi-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.c360-parque-kpi-chip--total strong {
    font-size: 1.02rem;
    color: #0f766e;
}

.c360-parque-chart-card {
    margin: 0.85rem 0 1rem;
    padding: 0.9rem 1rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(13, 148, 136, 0.2);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.c360-parque-chart-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c360-text);
}

.c360-parque-chart-sub {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.chart-container--parque {
    position: relative;
    height: 220px;
    max-height: 36vh;
}

.c360-chart-insight#c360-parque-chart-insight {
    margin: 0.55rem 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-parque-intro {
    margin: 0 0 1rem 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--c360-text);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    border: 1px solid rgba(15, 55, 88, 0.08);
}

.c360-parque-intro code {
    font-size: 0.88em;
    padding: 0.06rem 0.28rem;
    border-radius: 4px;
    background: rgba(13, 148, 136, 0.08);
    color: #0f766e;
}

.c360-parque-table-shell {
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    margin-top: 0.15rem;
}

.c360-tabla-parque {
    margin: 0;
    font-size: 0.82rem;
    border-collapse: collapse;
    min-width: 100%;
}

.c360-tabla-parque thead tr {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.06) 100%);
}

.c360-tabla-parque th {
    padding: 0.65rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f766e;
    border-bottom: 2px solid rgba(13, 148, 136, 0.2);
    white-space: nowrap;
}

.c360-tabla-parque td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(15, 55, 88, 0.07);
    vertical-align: top;
    color: var(--c360-text);
}

.c360-tabla-parque tbody tr:last-child td {
    border-bottom: none;
}

.c360-tabla-parque tbody tr.c360-parque-fila:hover td {
    background: rgba(45, 212, 191, 0.08);
}

.c360-parque-th-contrato,
.c360-parque-td-contrato {
    width: 1%;
    white-space: nowrap;
}

.c360-parque-contrato-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(13, 148, 136, 0.1);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.18);
}

.c360-parque-th-fecha,
.c360-parque-td-fecha {
    width: 1%;
    white-space: nowrap;
}

.c360-parque-fecha {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #334155;
}

.c360-parque-th-inhumado,
.c360-parque-td-inhumado {
    min-width: 8.5rem;
    max-width: 14rem;
}

.c360-parque-th-tipo,
.c360-parque-td-tipo {
    min-width: 6rem;
    max-width: 11rem;
}

.c360-parque-th-origen,
.c360-parque-td-origen {
    width: 1%;
    white-space: nowrap;
}

.c360-parque-origen {
    display: inline-block;
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.c360-parque-td-desc {
    line-height: 1.45;
    min-width: 12rem;
    max-width: 36rem;
}

.c360-parque-th-valor,
.c360-parque-td-valor {
    text-align: right;
    white-space: nowrap;
}

.c360-parque-valor {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #0f3758;
    letter-spacing: 0.01em;
}

.c360-parque-empty,
.c360-parque-nota {
    margin: 0.65rem 0 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-parque-nota {
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: rgba(15, 55, 88, 0.04);
    border: 1px solid rgba(15, 55, 88, 0.06);
}

.c360-parque-module--error {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(254, 226, 226, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.c360-parque-error {
    margin: 0;
    font-size: 0.82rem;
    color: #b91c1c;
}

/* Dashboard ejecutivo SFUN (escaneo rápido) */
.c360-sfun-exec {
    margin: 0 0 1rem 0;
    padding: 0.85rem 1rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    background: rgba(255, 255, 255, 0.98);
}

.c360-sfun-exec--bajo {
    border-left: 4px solid #10b981;
}

.c360-sfun-exec--medio {
    border-left: 4px solid #eab308;
}

.c360-sfun-exec--critico {
    border-left: 4px solid #dc2626;
}

.c360-sfun-exec--sin_datos {
    border-left: 4px solid #94a3b8;
}

.c360-sfun-exec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.c360-sfun-exec-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--c360-primary);
}

.c360-sfun-exec-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 520px) {
    .c360-sfun-exec-kpis {
        grid-template-columns: 1fr;
    }
}

.c360-sfun-exec-kpi {
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.c360-sfun-exec-kpi-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c360-muted);
    margin-bottom: 0.2rem;
}

.c360-sfun-exec-kpi-val {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--c360-text);
}

.c360-sfun-exec-estado {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: rgba(15, 55, 88, 0.05);
}

.c360-sfun-exec-estado-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.c360-sfun-exec-estado-text {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--c360-text);
}

.c360-sfun-exec-estado-k {
    font-weight: 700;
    margin-right: 0.25rem;
}

.c360-sfun-exec-estado-v {
    font-weight: 600;
    color: var(--c360-primary);
}

.c360-sfun-exec-block {
    margin-bottom: 0.65rem;
}

.c360-sfun-exec-block:last-child {
    margin-bottom: 0;
}

.c360-sfun-exec-h4 {
    margin: 0 0 0.35rem 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c360-muted);
}

.c360-sfun-exec-bullets {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--c360-text);
}

.c360-sfun-exec-bullets--action li::marker {
    color: var(--c360-accent);
}

.c360-sfun-exec-none {
    margin: 0;
    font-size: 0.78rem;
    color: var(--c360-muted);
    font-style: italic;
}

.c360-sfun-analisis {
    margin: 0 0 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: rgba(99, 102, 241, 0.06);
}

.c360-sfun-analisis--muy_alto {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(254, 242, 242, 0.65);
}

.c360-sfun-analisis--alto {
    border-color: rgba(234, 179, 8, 0.4);
    background: rgba(254, 252, 232, 0.7);
}

.c360-sfun-analisis--moderado {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(239, 246, 255, 0.75);
}

.c360-sfun-analisis--bajo {
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(240, 253, 244, 0.65);
}

.c360-sfun-analisis--sin_servicios,
.c360-sfun-analisis--sin_saldo,
.c360-sfun-analisis--indefinido {
    border-color: var(--c360-border);
    background: rgba(248, 250, 252, 0.9);
}

.c360-sfun-analisis-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.c360-sfun-analisis-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c360-primary);
}

.c360-sfun-analisis-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.c360-sfun-analisis-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.c360-sfun-analisis-kpi-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c360-muted);
}

.c360-sfun-analisis-kpi-val {
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--c360-text);
}

.c360-sfun-analisis-etiqueta {
    margin: 0 0 0.4rem 0;
    font-size: 0.88rem;
    color: var(--c360-text);
}

.c360-sfun-analisis-texto {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--c360-muted);
}

.c360-sfun-analisis-resumen-ejecutivo {
    margin: 0 0 1rem 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.45);
}

.c360-sfun-clasif-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0 0 1rem 0;
}

.c360-sfun-clasif-badge {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.c360-sfun-clasif-badge--bajo {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
}

.c360-sfun-clasif-badge--medio {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
}

.c360-sfun-clasif-badge--alto {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #b45309;
}

.c360-sfun-clasif-badge--critico {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

.c360-sfun-clasif-badge--sin_datos {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.3);
    color: #475569;
}

.c360-sfun-clasif-hint {
    font-size: 0.72rem;
    color: var(--c360-muted);
    line-height: 1.4;
    flex: 1 1 12rem;
}

.c360-sfun-intel {
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.c360-sfun-intel-block {
    margin: 0;
    padding: 0;
}

.c360-sfun-intel-block-title {
    margin: 0 0 0.45rem 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c360-primary);
}

.c360-sfun-intel-block-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--c360-text);
}

.c360-sfun-intel-list {
    margin: 0 0 0 1.1rem;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--c360-muted);
}

.c360-sfun-intel-list--riesgo li::marker {
    color: var(--c360-danger);
}

.c360-sfun-intel-list--oportunidad li::marker {
    color: var(--c360-success);
}

.c360-sfun-intel-block--alertas .c360-sfun-intel-alerts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c360-sfun-intel-alert {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.45rem;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.45;
    border: 1px solid var(--c360-border);
    background: rgba(248, 250, 252, 0.95);
}

.c360-sfun-intel-alert:last-child {
    margin-bottom: 0;
}

.c360-sfun-intel-alert--riesgo {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(254, 242, 242, 0.65);
}

.c360-sfun-intel-alert--atencion {
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(254, 252, 232, 0.75);
}

.c360-sfun-intel-alert--oportunidad {
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(240, 253, 244, 0.7);
}

.c360-sfun-intel-alert-ico {
    flex-shrink: 0;
    line-height: 1.35;
}

.c360-sfun-intel-alert-txt {
    color: var(--c360-text);
}

.c360-sfun-intel-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem 1.25rem;
}

.c360-sfun-intel-rec-label {
    margin: 0 0 0.35rem 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c360-accent);
}

.c360-sfun-intel-conclusion {
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 55, 88, 0.18);
    background: linear-gradient(135deg, rgba(15, 55, 88, 0.06) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.c360-sfun-intel-conclusion-title {
    margin: 0 0 0.45rem 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--c360-primary);
}

.c360-sfun-intel-conclusion-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--c360-text);
}

/* Módulo servicios funerarios (dashboard) */
.c360-sfun-module {
    margin: 0 0 1.25rem 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.c360-sfun-module--error {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(254, 242, 242, 0.9);
}

.c360-sfun-error {
    margin: 0;
    font-size: 0.88rem;
    color: #b91c1c;
}

.c360-sfun-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c360-text);
}

.c360-sfun-h3-count {
    font-weight: 600;
    font-size: 0.88em;
    color: var(--c360-muted);
}

.c360-sfun-intro {
    margin: 0 0 0.65rem 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--c360-muted);
}

.c360-sfun-kpis {
    margin: 0 0 0.75rem 0;
    font-size: 0.82rem;
    color: var(--c360-text);
}

.c360-sfun-kpi {
    margin-right: 1.25rem;
}

.c360-sfun-empty {
    margin: 0;
    font-size: 0.82rem;
    color: var(--c360-muted);
}

.c360-sfun-tabla-wrap {
    margin-top: 0.35rem;
}

.c360-tabla-sfun {
    font-size: 0.78rem;
}

.c360-sfun-obs-cell {
    max-width: 14rem;
    vertical-align: top;
}

.c360-sfun-obs-preview {
    display: inline;
    color: var(--c360-muted);
}

.c360-sfun-obs-btn {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--c360-primary);
    border-radius: 6px;
    background: #fff;
    color: var(--c360-primary);
}

.c360-sfun-obs-btn:hover {
    background: rgba(99, 102, 241, 0.08);
}

/* Filas de la tabla por estado del contrato */
.carla-tabla tr.c360-fila-activo td {
    background: rgba(16, 185, 129, 0.12);
}
.carla-tabla tr.c360-fila-activo:hover td {
    background: rgba(16, 185, 129, 0.18);
}
.carla-tabla tr.c360-fila-atrasado td {
    background: rgba(245, 158, 11, 0.15);
}
.carla-tabla tr.c360-fila-atrasado:hover td {
    background: rgba(245, 158, 11, 0.22);
}
.carla-tabla tr.c360-fila-retirado td {
    background: rgba(239, 68, 68, 0.12);
}
.carla-tabla tr.c360-fila-retirado:hover td {
    background: rgba(239, 68, 68, 0.18);
}

/* Detalle de contratos: tabla densa + cabecera fija al scroll */
.c360-detalle-contratos-wrap {
    margin-top: 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--c360-border);
    overflow: auto;
    max-height: min(70vh, 520px);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

.c360-tabla-detalle-contratos {
    font-size: 0.82rem;
    border-collapse: separate;
    border-spacing: 0;
}

.c360-tabla-detalle-contratos thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    padding: 0.7rem 0.55rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
}

.c360-tabla-detalle-contratos tbody td {
    padding: 0.55rem 0.55rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.c360-tabla-detalle-contratos tbody tr:last-child td {
    border-bottom: none;
}

.c360-td-fecha-retiro {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.c360-celda-fecha-retiro {
    font-weight: 600;
    color: #9a3412;
}

.c360-celda-vacia {
    color: var(--c360-muted);
    font-weight: 500;
}

/* Badge de estado en desglose por contrato (mismos colores que la tabla) */
.c360-scorecard .label .c360-estado-badge {
    font-weight: normal;
    text-transform: none;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
}
.c360-scorecard .label .c360-estado-activo {
    background: rgba(16, 185, 129, 0.25);
    color: #047857;
}
.c360-scorecard .label .c360-estado-atrasado {
    background: rgba(245, 158, 11, 0.28);
    color: #b45309;
}
.c360-scorecard .label .c360-estado-retirado {
    background: rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

/* Alertas + recomendaciones (alineadas con bloque CLV) */
.c360-alertas-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.c360-alertas-rec-note {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-alertas-rec-empty {
    margin: 0;
    font-size: 0.88rem;
    color: var(--c360-muted);
    line-height: 1.4;
}

.c360-rec-accion {
    color: var(--c360-muted);
    font-size: 0.85rem;
}

/* Alertas */
.c360-alertas {
    background: var(--c360-card);
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    padding: 1rem 1.25rem;
    margin-bottom: 0;
}

.c360-alertas h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c360-text);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.c360-alerta-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--c360-border);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.c360-alerta-item:last-child { border-bottom: none; }

.c360-alerta-item.critico { border-left: 3px solid var(--c360-danger); padding-left: 0.5rem; }
.c360-alerta-item.advertencia { border-left: 3px solid var(--c360-warning); padding-left: 0.5rem; }
.c360-alerta-item.info { border-left: 3px solid var(--c360-accent); padding-left: 0.5rem; }

/* Recomendaciones */
.c360-recomendaciones {
    background: var(--c360-card);
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    padding: 1rem 1.25rem;
    margin-bottom: 0;
}

.c360-recomendaciones h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.c360-rec-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--c360-border);
    font-size: 0.9rem;
}

.c360-rec-item:last-child { border-bottom: none; }

.c360-rec-item .rec-tipo {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.c360-rec-item .rec-tipo.retencion { background: #fef3c7; color: #92400e; }
.c360-rec-item .rec-tipo.cobro { background: #fee2e2; color: #b91c1c; }
.c360-rec-item .rec-tipo.upsell { background: #d1fae5; color: #065f46; }
.c360-rec-item .rec-tipo.cross_sell { background: #dbeafe; color: #1e40af; }
.c360-rec-item .rec-tipo.fidelizacion { background: #e0e7ff; color: #3730a3; }
.c360-rec-item .rec-tipo.seguimiento { background: #e2e8f0; color: #475569; }

/* Gráficos */
.c360-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.c360-chart-card {
    background: var(--c360-card);
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.c360-chart-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c360-text);
    margin: 0 0 1rem 0;
}

.c360-chart-card .chart-container {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.c360-chart-card .chart-container canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.c360-chart-card--decision .c360-chart-sub {
    margin: -0.35rem 0 0.75rem 0;
    font-size: 0.75rem;
    color: var(--c360-muted);
    line-height: 1.45;
}

.chart-container--scores {
    height: 280px;
}

.chart-container--pago {
    min-height: 220px;
    height: 220px;
}

.chart-container--proyeccion {
    min-height: 280px;
    height: 320px;
}

.chart-container--bernoulli {
    min-height: 250px;
    height: 280px;
}

.c360-chart-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.15rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: rgba(15, 55, 88, 0.06);
    font-size: 0.78rem;
    color: var(--c360-text);
    align-items: baseline;
}

.c360-chart-kpi strong {
    color: var(--c360-primary);
    font-variant-numeric: tabular-nums;
}

.c360-chart-insight {
    margin: 0.75rem 0 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--c360-muted);
    padding-top: 0.65rem;
    border-top: 1px dashed var(--c360-border);
}

.c360-predictive-section {
    margin-top: 1rem;
}

.c360-bernoulli-section {
    margin-top: 1rem;
}

.c360-bernoulli-sub {
    margin: -0.35rem 0 1rem;
    font-size: 0.82rem;
    color: var(--c360-muted);
    line-height: 1.5;
}

.c360-bernoulli-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 1rem;
    align-items: start;
}

.c360-predictive-sub {
    margin: -0.35rem 0 1rem;
    font-size: 0.82rem;
    color: var(--c360-muted);
    line-height: 1.5;
}

.c360-predictive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
    gap: 1rem;
    align-items: start;
}

.c360-predictive-main {
    min-width: 0;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.c360-predictive-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.c360-predictive-head h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.c360-predictive-switch {
    display: inline-flex;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 999px;
    padding: 3px;
    gap: 0.2rem;
}

.c360-predictive-switch-btn {
    border: 0;
    background: transparent;
    color: var(--c360-muted);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.32rem 0.68rem;
    cursor: pointer;
    transition: all .2s ease;
}

.c360-predictive-switch-btn:hover {
    color: var(--c360-primary);
}

.c360-predictive-switch-btn.is-active {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.92), rgba(139, 92, 246, 0.9));
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

.c360-predictive-side {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.c360-predictive-side > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.c360-predictive-kpis,
.c360-predictive-assumptions,
.c360-predictive-bernoulli,
.c360-predictive-alerts,
.c360-predictive-analysis {
    background: var(--c360-card);
    border: 1px solid var(--c360-border);
    border-radius: 12px;
    padding: 0.9rem;
}

.c360-predictive-kpis {
    display: grid;
    gap: 0.65rem;
}

.c360-predictive-kpi {
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    background: rgba(99, 102, 241, 0.04);
}

.c360-predictive-kpi .kpi-label {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c360-muted);
    font-weight: 700;
}

.c360-predictive-kpi .kpi-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--c360-primary);
    margin-top: 0.2rem;
}

.c360-predictive-kpi .kpi-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--c360-muted);
    margin-top: 0.12rem;
}

.c360-predictive-assumptions h4 {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    color: var(--c360-text);
}

.c360-predictive-assumptions ul {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.74rem;
    color: var(--c360-muted);
    line-height: 1.5;
}

.c360-predictive-bernoulli h4 {
    margin: 0;
    font-size: 0.82rem;
    color: var(--c360-text);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.c360-predictive-bernoulli h4 .c360-help {
    position: static;
}

.c360-bernoulli-kpis {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.5rem;
}

.c360-bernoulli-kpi {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 10px;
    padding: 0.45rem 0.5rem;
}

.c360-bernoulli-kpi .b-label {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c360-muted);
    font-weight: 700;
}

.c360-bernoulli-kpi .b-value {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--c360-primary);
}

.c360-bernoulli-kpi .b-meta {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.7rem;
    color: var(--c360-muted);
}

.c360-bernoulli-list {
    margin: 0.55rem 0 0;
    padding-left: 1.05rem;
    font-size: 0.73rem;
    color: var(--c360-muted);
    line-height: 1.5;
}

.c360-bernoulli-list .c360-bernoulli-retiro-title {
    list-style: none;
    margin: 0.25rem 0 0.1rem -1.05rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--c360-border);
    color: var(--c360-text);
}

.c360-bernoulli-mini-year {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.14rem 0.52rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

#c360-bernoulli-wrap {
    scroll-margin-top: 1rem;
}

.c360-predictive-alerts h4 {
    margin: 0;
    font-size: 0.82rem;
    color: var(--c360-text);
}

.c360-predictive-alert-global {
    margin: 0.45rem 0 0.55rem;
    font-size: 0.74rem;
    color: var(--c360-muted);
}

.c360-semaforo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.14rem 0.5rem;
    min-width: 52px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.c360-semaforo-pill.is-green {
    color: #166534;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.32);
}

.c360-semaforo-pill.is-amber {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.34);
}

.c360-semaforo-pill.is-red {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.34);
}

.c360-predictive-alert-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 0.38rem;
    font-size: 0.73rem;
    color: var(--c360-muted);
    line-height: 1.45;
}

.c360-predictive-alert-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.32rem 0.38rem;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
}

.c360-predictive-alert-legend {
    margin: 0.55rem 0 0;
    font-size: 0.7rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-predictive-metric-hint {
    font-size: 0.72rem;
    color: var(--c360-muted);
    font-weight: 500;
}

.c360-predictive-analysis h4 {
    margin: 0;
    font-size: 0.82rem;
    color: var(--c360-text);
}

.c360-predictive-analysis h5 {
    margin: 0.65rem 0 0.35rem;
    font-size: 0.76rem;
    color: var(--c360-text);
}

.c360-predictive-confidence {
    margin: 0.45rem 0 0.55rem;
    font-size: 0.74rem;
    color: var(--c360-muted);
}

.c360-predictive-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.14rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.c360-predictive-pill.is-high {
    color: #166534;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.32);
}

.c360-predictive-pill.is-mid {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.34);
}

.c360-predictive-pill.is-low {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.34);
}

.c360-predictive-analysis-list,
.c360-predictive-actions-list {
    margin: 0;
    padding-left: 1.05rem;
    font-size: 0.73rem;
    color: var(--c360-muted);
    line-height: 1.5;
}

.c360-predictive-actions-list li::marker {
    color: var(--c360-accent);
}

.c360-predictive-table-wrap {
    margin-top: 0;
    overflow-x: auto;
}

.c360-predictive-table-title {
    margin: 0 0 0.55rem;
    font-size: 0.85rem;
    color: var(--c360-text);
}

.c360-predictive-table td,
.c360-predictive-table th {
    font-size: 0.78rem;
}

.c360-predictive-table {
    min-width: 620px;
}

.c360-predictive-table td {
    vertical-align: middle;
}

.c360-predictive-table .c360-predictive-money {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--c360-text);
}

.c360-delta-chip,
.c360-risk-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.c360-delta-chip.is-up {
    color: #166534;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.c360-delta-chip.is-down {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.c360-delta-chip.is-flat {
    color: #0f172a;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.32);
}

.c360-risk-chip--low {
    color: #166534;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.32);
}

.c360-risk-chip--mid {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.34);
}

.c360-risk-chip--high {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.34);
}

.c360-risk-chip--na {
    color: var(--c360-muted);
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.c360-beneficiarios-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-bottom: 1.1rem;
    align-items: stretch;
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    background: linear-gradient(165deg, rgba(99, 102, 241, 0.05), rgba(255, 255, 255, 0.4) 42%);
}

@media (min-width: 900px) {
    .c360-beneficiarios-charts {
        grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 980px) {
    .c360-predictive-grid {
        grid-template-columns: 1fr;
    }

    .c360-predictive-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1240px) {
    .c360-predictive-grid {
        grid-template-columns: 1fr;
    }

    .c360-bernoulli-grid {
        grid-template-columns: 1fr;
    }
}

.c360-beneficiarios-section .c360-chart-card--ben-edad,
.c360-beneficiarios-section .c360-chart-card--ben-rent {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.c360-chart-card h3.c360-ben-chart-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 0.4rem 0;
    color: var(--c360-text);
}

.c360-beneficiarios-section .c360-chart-card--ben-edad .chart-container--ben-edad,
.c360-beneficiarios-section .c360-chart-card--ben-rent .chart-container--ben-rent {
    flex: 1 1 auto;
}

.c360-chart-card .chart-container.chart-container--tall {
    height: min(520px, 75vh);
    min-height: 260px;
}

.c360-beneficiarios-section .c360-chart-card .chart-container.chart-container--ben-edad {
    height: auto;
    min-height: 168px;
    max-height: 480px;
}

.c360-beneficiarios-section .c360-chart-sub {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    color: var(--c360-muted);
    line-height: 1.4;
}

.c360-chart-card--ben-edad .c360-chart-sub strong {
    color: var(--c360-text);
    font-weight: 700;
}

.c360-chart-card--ben-rent .c360-chart-sub strong {
    color: var(--c360-text);
    font-weight: 700;
}

.c360-beneficiarios-section .c360-chart-card--ben-rent .chart-container--ben-rent {
    min-height: 276px;
    height: 276px;
    width: 100%;
}

.c360-chart-insight--ben-edad,
.c360-chart-insight--ben-rent {
    margin-top: 0.65rem;
    margin-bottom: 0;
    padding: 0.55rem 0.65rem 0.55rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--c360-text);
    border: none;
    border-left: 3px solid rgba(99, 102, 241, 0.55);
    border-radius: 0 10px 10px 0;
    background: rgba(99, 102, 241, 0.06);
    flex-shrink: 0;
}

/* Cruce analítico Beneficiarios ↔ Servicios funerarios (misma consulta) */
.c360-ben-cruce,
.c360-sfun-cruce {
    margin: 0 0 0.85rem 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--c360-text);
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.06);
}

.c360-ben-cruce--info,
.c360-sfun-cruce--info {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(239, 246, 255, 0.65);
}

.c360-ben-cruce--atencion,
.c360-sfun-cruce--atencion {
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(254, 252, 232, 0.75);
}

.c360-ben-cruce--neutro,
.c360-sfun-cruce--neutro {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
}

.c360-cruce-kicker {
    display: inline-block;
    margin-right: 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c360-accent);
}

a.c360-cruce-anchor {
    margin-left: 0.25rem;
    font-weight: 700;
    color: var(--c360-secondary);
    text-decoration: none;
    white-space: nowrap;
}

a.c360-cruce-anchor:hover {
    text-decoration: underline;
}

/* Resumen acumulado: Bueno / Regular / Malo */
.c360-ben-resumen {
    margin-bottom: 1.25rem;
}

.c360-ben-resumen-inner {
    border-radius: 12px;
    padding: 1rem 1.15rem;
    border: 1px solid var(--c360-border);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.c360-ben-resumen-inner--favorable {
    border-color: rgba(22, 163, 74, 0.45);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.c360-ben-resumen-inner--moderado {
    border-color: rgba(202, 138, 4, 0.4);
    box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.1);
}

.c360-ben-resumen-inner--critico {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.c360-ben-resumen-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.65rem;
}

.c360-ben-resumen-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c360-muted);
}

.c360-ben-resumen-veredicto {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.c360-ben-resumen-etiqueta {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--c360-text);
}

.c360-ben-resumen-inner--favorable .c360-ben-resumen-etiqueta {
    color: #15803d;
}

.c360-ben-resumen-inner--moderado .c360-ben-resumen-etiqueta {
    color: #a16207;
}

.c360-ben-resumen-inner--critico .c360-ben-resumen-etiqueta {
    color: #b91c1c;
}

.c360-ben-resumen-puntos {
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.c360-ben-resumen-max {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.65;
}

.c360-ben-resumen-bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 0.65rem;
}

.c360-ben-resumen-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.c360-ben-resumen-desc {
    font-size: 0.82rem;
    color: var(--c360-text);
    line-height: 1.45;
    margin: 0 0 0.65rem 0;
}

.c360-ben-resumen-ley {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.8rem;
    color: var(--c360-muted);
}

.c360-ben-resumen-ley strong {
    color: var(--c360-text);
    font-weight: 700;
}

.c360-ben-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.c360-ben-dot--verde { background: #22c55e; }
.c360-ben-dot--amarillo { background: #eab308; }
.c360-ben-dot--rojo { background: #ef4444; }
.c360-ben-dot--gris { background: #94a3b8; }

.c360-ben-resumen-leyenda {
    margin: 0.75rem 0 0 0;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--c360-border);
    font-size: 0.72rem;
    color: var(--c360-muted);
    line-height: 1.45;
}

.c360-ben-resumen-pct {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c360-muted);
    white-space: nowrap;
}

/* Eje simple · edad (alineado a perfil acumulado) */
.c360-ben-eje {
    margin: 0.85rem 0 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--c360-border);
}

.c360-ben-eje-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c360-muted);
    margin: 0 0 0.35rem 0;
}

.c360-ben-eje-aling {
    font-size: 0.72rem;
    color: var(--c360-muted);
    line-height: 1.45;
    margin: 0 0 0.5rem 0;
}

.c360-ben-eje-aling strong {
    color: var(--c360-text);
}

.c360-ben-eje-aling .c360-ben-nota-link {
    color: var(--c360-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.c360-ben-eje-aling .c360-ben-nota-link:hover {
    text-decoration-thickness: 2px;
}

.c360-ben-eje-bar-wrap {
    position: relative;
    margin: 0 0 0.65rem 0;
}

.c360-ben-eje-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    margin: 0;
}

.c360-ben-eje-markers-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.c360-ben-eje-mark {
    position: absolute;
    left: 0;
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--c360-primary);
    box-shadow: 0 1px 6px rgba(15, 55, 88, 0.22);
    pointer-events: auto;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.c360-ben-eje-mark--multi {
    width: 12px;
    height: 12px;
    border-width: 2px;
}

.c360-ben-eje-mark--fallecido {
    width: 14px;
    height: 14px;
    border-width: 3px;
    background: #fecaca;
    box-shadow: 0 0 0 2px rgba(127, 29, 29, 0.35), 0 2px 10px rgba(127, 29, 29, 0.28);
}

.c360-ben-eje-mark--fallecido.c360-ben-eje-mark--multi {
    width: 16px;
    height: 16px;
    border-width: 3px;
}

.c360-ben-eje-mark--fallecido:hover,
.c360-ben-eje-mark--fallecido:focus-visible {
    box-shadow: 0 0 0 2px rgba(127, 29, 29, 0.45), 0 4px 12px rgba(99, 102, 241, 0.35);
}

.c360-ben-eje-mark--ev-plus {
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45), 0 2px 10px rgba(217, 119, 6, 0.22);
}

.c360-ben-eje-mark:hover,
.c360-ben-eje-mark:focus-visible {
    transform: translateX(-50%) scale(1.2) !important;
    z-index: 6;
    outline: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.c360-ben-eje-mark--ev-plus:hover,
.c360-ben-eje-mark--ev-plus:focus-visible {
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45), 0 4px 14px rgba(217, 119, 6, 0.35);
}

.c360-ben-eje-seg {
    display: block;
    min-width: 2px;
    height: 100%;
    flex-shrink: 0;
}

.c360-ben-eje-seg--empty {
    opacity: 0.38;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.c360-ben-eje-sin-edad {
    font-size: 0.72rem;
    color: var(--c360-muted);
    margin: 0.4rem 0 0 0;
    line-height: 1.4;
}

.c360-ben-eje-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.4rem 1rem;
    font-size: 0.78rem;
    color: var(--c360-text);
}

.c360-ben-eje-list li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.c360-ben-eje-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.c360-ben-eje-rango {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--c360-text);
    font-weight: 600;
}

.c360-ben-eje-cnt {
    font-variant-numeric: tabular-nums;
    color: var(--c360-muted);
}

.c360-beneficiarios-nota {
    font-size: 0.78rem;
    color: var(--c360-muted);
    line-height: 1.45;
    margin: 0 0 1rem 0;
}

.c360-ben-h2-count {
    font-weight: 600;
    font-size: 0.88em;
    color: var(--c360-muted);
    letter-spacing: 0.02em;
}

.c360-beneficiarios-empty,
.c360-beneficiarios-error {
    font-size: 0.88rem;
    color: var(--c360-muted);
    margin: 0.5rem 0 0 0;
}

.c360-beneficiarios-error {
    color: #b91c1c;
}

.c360-ben-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.c360-beneficiarios-tabla-wrap {
    margin-top: 0.75rem;
}

.c360-ben-td-contrato {
    max-width: 16.5rem;
    font-size: 0.78rem;
    line-height: 1.4;
    word-break: break-word;
    vertical-align: top;
}

.c360-ben-td-estado-contrato {
    font-size: 0.82rem;
    white-space: nowrap;
}

.c360-ben-td-estado-contrato--retirado {
    font-weight: 600;
    color: #9a3412;
    background: rgba(254, 215, 170, 0.35);
}

/* Tabs / secciones */
.c360-section {
    background: var(--c360-card);
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.c360-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c360-text);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--c360-border);
}

/* Botón principal */
.c360-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    background: var(--c360-accent);
    color: #fff;
    transition: background 0.2s, transform 0.1s;
}

.c360-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Empty state */
.c360-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--c360-muted);
}

.c360-empty .empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c360-text);
    margin-bottom: 0.5rem;
}

/* Carga consulta: mismo lenguaje visual que el dashboard 360° (card clara, acentos indigo/morado) */
.c360-loading-analisis.c360-empty {
    position: relative;
    overflow: hidden;
    max-width: 36rem;
    margin: 2rem auto 2.5rem;
    padding: 2rem 1.5rem 2.1rem;
    text-align: center;
    color: var(--c360-muted);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(238, 242, 255, 0.88) 42%,
        rgba(241, 245, 249, 0.98) 100%
    );
    border-radius: 16px;
    border: 1px solid rgba(15, 55, 88, 0.12);
    box-shadow:
        0 4px 22px rgba(15, 23, 42, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.c360-loading-cinematic {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.c360-loading-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(15, 55, 88, 0.06) 100%);
}

.c360-loading-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(15, 55, 88, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 55, 88, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: c360-load-grid-drift 20s linear infinite;
    opacity: 0.65;
}

.c360-loading-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 32%;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(99, 102, 241, 0.06) 48%,
        rgba(124, 58, 237, 0.05) 52%,
        transparent
    );
    animation: c360-load-scan 8s ease-in-out infinite;
    opacity: 0.85;
}

.c360-loading-glow {
    position: absolute;
    width: 120%;
    height: 55%;
    left: -10%;
    bottom: -8%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 68%);
    animation: c360-load-glow-breathe 4s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes c360-load-grid-drift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

@keyframes c360-load-scan {
    0%,
    100% {
        transform: translateY(-35%);
        opacity: 0.2;
    }
    50% {
        transform: translateY(130%);
        opacity: 0.55;
    }
}

@keyframes c360-load-glow-breathe {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.03);
    }
}

.c360-loading-analisis-inner {
    position: relative;
    z-index: 1;
}

.c360-loading-pipeline {
    margin-bottom: 1.35rem;
}

.c360-loading-progress {
    position: relative;
    height: 4px;
    margin: 0 0.5rem 1.15rem;
    border-radius: 999px;
    background: rgba(15, 55, 88, 0.08);
    box-shadow: 0 0 0 1px rgba(15, 55, 88, 0.06) inset;
    overflow: hidden;
}

.c360-loading-progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    transform-origin: left center;
    transform: scaleX(0.1);
    /* Un poco menos que CARGA_ANALISIS_MS_POR_FASE (2000 ms) para que la barra termine antes del siguiente paso */
    transition: transform 1.15s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--c360-accent) 0%, var(--c360-purple) 55%, var(--c360-secondary) 100%);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.c360-loading-analisis--s0 .c360-loading-progress-fill {
    transform: scaleX(0.12);
}

.c360-loading-analisis--s1 .c360-loading-progress-fill {
    transform: scaleX(0.38);
}

.c360-loading-analisis--s2 .c360-loading-progress-fill {
    transform: scaleX(0.64);
}

.c360-loading-analisis--s3 .c360-loading-progress-fill {
    transform: scaleX(1);
}

.c360-loading-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.25rem;
}

.c360-loading-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.c360-loading-step--done {
    opacity: 0.78;
}

.c360-loading-step--active {
    opacity: 1;
}

.c360-loading-step-name {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c360-muted);
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c360-loading-step--active .c360-loading-step-name {
    color: var(--c360-primary);
}

.c360-loading-step-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    background: var(--c360-card);
    border: 1px solid var(--c360-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.c360-loading-step--active .c360-loading-step-ring {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.12),
        0 4px 18px rgba(99, 102, 241, 0.2);
    animation: c360-load-ring-pulse 1.8s ease-in-out infinite;
}

.c360-loading-step--done .c360-loading-step-ring {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.08);
}

.c360-loading-step-ico {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--c360-secondary);
}

.c360-loading-step--active .c360-loading-step-ico {
    color: var(--c360-accent);
}

.c360-loading-step--done .c360-loading-step-ico {
    color: var(--c360-success);
}

@keyframes c360-load-ring-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.c360-loading-phase {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c360-text);
    margin: 0 0 0.55rem 0;
    min-height: 1.45em;
    line-height: 1.35;
    transition: opacity 0.25s ease;
}

.c360-loading-sub {
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 0;
    color: var(--c360-muted);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 520px) {
    .c360-loading-analisis.c360-empty {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 1.65rem 1rem;
    }

    .c360-loading-step-ring {
        width: 2.35rem;
        height: 2.35rem;
    }

    .c360-loading-step-name {
        font-size: 0.52rem;
        letter-spacing: 0.06em;
    }

    .c360-loading-phase {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c360-loading-grid,
    .c360-loading-scan,
    .c360-loading-glow {
        animation: none;
    }

    .c360-loading-step--active .c360-loading-step-ring {
        animation: none;
    }

    .c360-loading-progress-fill {
        transition-duration: 0.01ms;
    }

    .c360-loading-phase {
        transition: none;
    }

    .c360-loading-step {
        transition: none;
    }
}
.c360-convenio-wrap {
    margin-bottom: 1rem;
}

.c360-convenio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.c360-convenio-card {
    position: relative;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--c360-card), var(--c360-card)) padding-box,
        linear-gradient(120deg, var(--c360-accent), var(--c360-purple), var(--c360-secondary)) border-box;
    box-shadow: 0 8px 32px rgba(15, 55, 88, 0.08);
    max-width: 100%;
}

.c360-convenio-card .value {
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: break-word;
}

.c360-convenio-vacio {
    color: var(--c360-muted);
    font-weight: 500;
}

.c360-timeline-section .c360-timeline-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0;
    border-bottom: none;
}

.c360-timeline-section .c360-timeline-head h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1rem;
    font-weight: 700;
}

.c360-timeline-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
}

.c360-clv .c360-timeline-section {
    overflow-x: visible;
}

/* —— Línea de vida: card, KPI strip, estado —— */
.c360-clv-card {
    background: var(--c360-card);
    border: 1px solid var(--c360-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem 1.25rem;
    box-shadow: 0 4px 24px rgba(15, 55, 88, 0.06);
}

.c360-clv-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.15rem;
}

.c360-clv-header-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.c360-clv-status {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1.2;
    max-width: 100%;
    text-align: center;
}

.c360-clv-status--info {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
}

.c360-clv-status--danger {
    color: #991b1b;
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(185, 28, 28, 0.4);
}

.c360-clv-status--warning {
    color: #92400e;
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(202, 138, 4, 0.45);
}

.c360-clv-status--success {
    color: #166534;
    background: rgba(74, 222, 128, 0.18);
    border-color: rgba(22, 163, 74, 0.4);
}

.c360-clv-status--neutral {
    color: var(--c360-muted);
    background: rgba(15, 55, 88, 0.06);
    border-color: var(--c360-border);
}

.c360-clv-subtitle {
    margin-top: 0.15rem;
}

/* —— SaaS: alertas, dashboard grid, semáforo, insights —— */
.c360-clv-dash-sub {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: var(--c360-muted);
}

.c360-clv-alerts-strip {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0 0 1rem;
}

.c360-clv-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.4;
    border: 1px solid transparent;
}

.c360-clv-alert-item-text {
    flex: 1;
    min-width: 0;
}

.c360-clv-alert-item-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.c360-clv-alert-item--critical {
    color: #7f1d1d;
    background: linear-gradient(105deg, rgba(254, 226, 226, 0.95), rgba(248, 113, 113, 0.12));
    border-color: rgba(185, 28, 28, 0.35);
}

.c360-clv-alert-item--critical .c360-clv-alert-item-icon {
    background: #b91c1c;
    color: #fff;
}

.c360-clv-alert-item--preventive {
    color: #78350f;
    background: linear-gradient(105deg, rgba(254, 243, 199, 0.65), rgba(251, 191, 36, 0.12));
    border-color: rgba(202, 138, 4, 0.4);
}

.c360-clv-alert-item--preventive .c360-clv-alert-item-icon {
    background: #d97706;
    color: #fff;
}

.c360-clv-alert-item--info {
    color: #1e3a8a;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(37, 99, 235, 0.28);
}

.c360-clv-alert-item--info .c360-clv-alert-item-icon {
    background: #2563eb;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
}

.c360-clv-alert-item--ok {
    color: #14532d;
    background: rgba(74, 222, 128, 0.14);
    border-color: rgba(22, 163, 74, 0.35);
}

.c360-clv-alert-item--ok .c360-clv-alert-item-icon {
    background: #16a34a;
    color: #fff;
}

.c360-clv-dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: start;
}

@media (min-width: 900px) {
    .c360-clv-dash-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
    }
}

.c360-clv-dash-main {
    min-width: 0;
}

.c360-clv-hero-panel.c360-clv-health {
    margin: 0;
}

.c360-clv-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.65rem;
}

.c360-clv-semaphore {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 55, 88, 0.06);
    border: 1px solid var(--c360-border);
}

.c360-clv-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    opacity: 0.22;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.c360-clv-light--red {
    background: linear-gradient(145deg, #f87171, #b91c1c);
}

.c360-clv-light--amber {
    background: linear-gradient(145deg, #fcd34d, #ca8a04);
}

.c360-clv-light--green {
    background: linear-gradient(145deg, #86efac, #15803d);
}

.c360-clv-light.is-active {
    opacity: 1;
    transform: scale(1.12);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 4px 12px rgba(15, 55, 88, 0.2);
}

.c360-clv-hero-scorewrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
}

.c360-clv-semantic-pill {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.c360-clv-semantic-pill--t1 {
    color: #991b1b;
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(185, 28, 28, 0.35);
}

.c360-clv-semantic-pill--t2 {
    color: #92400e;
    background: rgba(251, 191, 36, 0.22);
    border-color: rgba(202, 138, 4, 0.4);
}

.c360-clv-semantic-pill--t3 {
    color: #166534;
    background: rgba(74, 222, 128, 0.22);
    border-color: rgba(22, 163, 74, 0.4);
}

.c360-clv-segmented-wrap {
    margin-bottom: 0.55rem;
}

.c360-clv-segmented-track {
    position: relative;
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: visible;
    margin-bottom: 0.25rem;
}

.c360-clv-segzone {
    flex: 1;
    min-width: 0;
    height: 100%;
    opacity: 0.35;
}

.c360-clv-segzone--crit {
    flex: 40;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, #fecaca, #f87171);
}

.c360-clv-segzone--mid {
    flex: 30;
    background: linear-gradient(90deg, #fde68a, #fbbf24);
}

.c360-clv-segzone--ok {
    flex: 30;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, #bbf7d0, #4ade80);
}

.c360-clv-segmented-pin {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 18px;
    margin-left: -2px;
    margin-top: -9px;
    border-radius: 3px;
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
    z-index: 2;
    pointer-events: none;
}

.c360-clv-segmented-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c360-muted);
    padding: 0 2px;
}

.c360-clv-health-bar--hero {
    height: 10px;
    margin-top: 0.15rem;
}

.c360-clv-peer-line {
    margin: 0.55rem 0 0.35rem;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--c360-text);
    font-weight: 600;
}

.c360-clv-action-strip {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c360-text);
    background: linear-gradient(100deg, rgba(99, 102, 241, 0.1), rgba(37, 99, 235, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.c360-clv-method-details {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--c360-muted);
}

.c360-clv-method-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--c360-accent);
}

.c360-clv-method-text {
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.c360-clv-dash-behavior {
    border: 1px solid var(--c360-border);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    background: rgba(15, 55, 88, 0.025);
}

.c360-clv-behavior-head {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.55rem;
}

.c360-clv-behavior-title {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c360-muted);
}

.c360-clv-behavior-hint {
    font-size: 0.68rem;
    color: var(--c360-accent);
    font-weight: 650;
}

.c360-clv-kpi-actionable .c360-clv-kpi--secondary {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.65);
}

.c360-clv-behavior-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.c360-clv-behavior-verdict {
    margin: 0.4rem 0 0;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--c360-text);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.c360-clv-kpi--freq .c360-clv-kpi-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--c360-muted);
    line-height: 1.35;
}

.c360-clv-kpi-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.c360-clv-freq-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.c360-clv-freq-badge--ok {
    color: #166534;
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(22, 163, 74, 0.35);
}

.c360-clv-freq-badge--warn {
    color: #92400e;
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(202, 138, 4, 0.45);
}

.c360-clv-freq-badge--info {
    color: #1e40af;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
}

.c360-clv-behavior-chips .c360-clv-health-chip--ok {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(22, 163, 74, 0.35);
    color: #166534;
}

.c360-clv-behavior-chips .c360-clv-health-chip--warn {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(202, 138, 4, 0.4);
    color: #92400e;
}

.c360-clv-behavior-chips .c360-clv-health-chip--bad {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(185, 28, 28, 0.35);
    color: #991b1b;
}

.c360-clv-insights-panel {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.06), rgba(255, 255, 255, 0.5));
}

.c360-clv-insights-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.c360-clv-insights-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c360-text);
}

.c360-clv-insights-sub {
    font-size: 0.65rem;
    color: var(--c360-muted);
    font-weight: 600;
}

.c360-clv-insight-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--c360-text);
    font-weight: 600;
}

.c360-clv-insight-list li {
    margin-bottom: 0.35rem;
}

.c360-clv-insight-list li:last-child {
    margin-bottom: 0;
}

.c360-clv-insights-empty {
    margin: 0;
    font-size: 0.78rem;
    color: var(--c360-muted);
}

.c360-clv-timeline-section-title {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c360-muted);
}

.c360-clv-health {
    margin: 0.5rem 0 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--c360-border);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(15, 55, 88, 0.03));
}

.c360-clv-health-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.c360-clv-health-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.c360-clv-health-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c360-muted);
}

.c360-clv-health--prominent {
    border-width: 2px;
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 32px rgba(15, 55, 88, 0.07);
}

.c360-clv-health-scoreblock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    border: 2px solid transparent;
}

.c360-clv-risk-row--high {
    border-color: rgba(185, 28, 28, 0.45);
    background: rgba(248, 113, 113, 0.08);
}

.c360-clv-risk-row--mid {
    border-color: rgba(202, 138, 4, 0.5);
    background: rgba(251, 191, 36, 0.1);
}

.c360-clv-risk-row--low {
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(74, 222, 128, 0.1);
}

.c360-clv-health-scorerow {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.c360-clv-health-band {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c360-muted);
}

.c360-clv-health-insight {
    margin: 0.55rem 0 0;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c360-text);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.c360-clv-health-score {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
    color: var(--c360-text);
    letter-spacing: -0.04em;
}

.c360-clv-health-max {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c360-muted);
}

.c360-clv-health-hint {
    margin: 0;
    flex: 1;
    min-width: 12rem;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--c360-muted);
}

.c360-clv-health-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 55, 88, 0.08);
    overflow: hidden;
}

.c360-clv-health-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.c360-clv-health-fill--ok {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.c360-clv-health-fill--mid {
    background: linear-gradient(90deg, #fbbf24, #d97706);
}

.c360-clv-health-fill--low {
    background: linear-gradient(90deg, #f87171, #b91c1c);
}

.c360-clv-health-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-top: 0.55rem;
}

.c360-clv-health-chip {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 55, 88, 0.05);
    border: 1px solid var(--c360-border);
    color: var(--c360-text);
}

.c360-clv-alert {
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
    border: 1px solid transparent;
}

.c360-clv-alert--info {
    color: #1e40af;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.c360-clv-alert--warning {
    color: #92400e;
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(202, 138, 4, 0.4);
}

.c360-clv-alert--danger {
    color: #991b1b;
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(185, 28, 28, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .c360-clv-health-fill {
        transition: none;
    }
}

.c360-clv-insight {
    margin: 0.35rem 0 0.65rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--c360-text);
    background: linear-gradient(105deg, rgba(99, 102, 241, 0.08), rgba(37, 99, 235, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.c360-clv-kpi-primary {
    margin-bottom: 0.65rem;
}

.c360-clv-kpi-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.c360-clv-kpi-details {
    margin-bottom: 0.85rem;
    border: 1px dashed var(--c360-border);
    border-radius: 10px;
    padding: 0.35rem 0.65rem;
    background: rgba(15, 55, 88, 0.02);
}

.c360-clv-kpi-details-sum {
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c360-accent);
    list-style: none;
}

.c360-clv-kpi-details-sum::-webkit-details-marker {
    display: none;
}

.c360-clv-kpi-tertiary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.45rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--c360-border);
}

.c360-clv-kpi--primary {
    padding: 0.65rem 0.75rem;
}

.c360-clv-kpi--primary .c360-clv-kpi-value {
    font-size: 1.05rem;
}

.c360-clv-kpi--secondary .c360-clv-kpi-value {
    font-size: 0.82rem;
}

.c360-clv-kpi--tertiary {
    padding: 0.45rem 0.5rem;
    font-size: 0.9em;
}

.c360-clv-kpi {
    background: rgba(15, 55, 88, 0.03);
    border: 1px solid var(--c360-border);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.c360-clv-kpi--wide {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .c360-clv-kpi-tertiary .c360-clv-kpi--wide {
        grid-column: span 2;
    }
}

.c360-clv-kpi-label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c360-muted);
}

.c360-clv-kpi-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--c360-text);
    line-height: 1.3;
    word-break: break-word;
}

.c360-clv-kpi-tramos {
    font-size: 0.78rem;
    font-weight: 600;
}

.c360-clv-kpi-meta {
    font-size: 0.68rem;
    color: var(--c360-muted);
    line-height: 1.25;
}

.c360-clv-timeline-card {
    border: 1px solid var(--c360-border);
    border-radius: 14px;
    padding: 0.75rem 0.85rem 0.9rem;
    background: rgba(15, 55, 88, 0.02);
}

.c360-clv-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.35rem;
}

.c360-clv-toolbar-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c360-muted);
    margin-right: 0.35rem;
}

.c360-clv-granularity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
}

.c360-clv-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--c360-text);
    cursor: pointer;
}

.c360-clv-radio input {
    accent-color: var(--c360-accent);
}

.c360-clv-toolbar-hint {
    font-size: 0.65rem;
    color: var(--c360-muted);
    line-height: 1.4;
    max-width: 48rem;
    margin: 0 0 0.5rem;
}

.c360-clv-zoom-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.c360-clv-zoom-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c360-muted);
}

.c360-clv-zoom {
    width: 7rem;
    accent-color: var(--c360-accent);
    cursor: pointer;
}

.c360-clv-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.45) transparent;
}

.c360-clv-viewport::-webkit-scrollbar {
    height: 6px;
}

.c360-clv-viewport::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 999px;
}

.c360-clv-viewport-inner {
    --c360-clv-zoom: 1;
    width: calc(100% * var(--c360-clv-zoom));
    min-width: 100%;
    transition: width 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
    .c360-clv-viewport-inner {
        transition: none;
    }
}

.c360-clv-detail-data-host {
    display: none !important;
}

.c360-clv-track-surface {
    position: relative;
    width: 100%;
    min-width: 0;
    padding-top: 0.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.c360-clv-shell {
    margin-top: 0.35rem;
    overflow: visible;
    max-width: 100%;
}

.c360-clv-rail {
    position: relative;
    width: 100%;
    min-width: 0;
}

.c360-clv-track-hover-wrap:hover .c360-clv-milestone-label,
.c360-clv-track-hover-wrap:focus-within .c360-clv-milestone-label {
    opacity: 1;
}

.c360-clv-track-block {
    position: relative;
    padding-top: 34px;
}

.c360-clv-heat-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    z-index: 0;
    pointer-events: none;
}

.c360-clv-heat-grid {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 100%;
    padding: 0 4px;
    border-radius: 10px;
    background: rgba(15, 55, 88, 0.03);
    box-sizing: border-box;
}

.c360-clv-heat-cell {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.c360-clv-heat-fill {
    display: block;
    width: 100%;
    min-height: 2px;
    max-height: 100%;
    border-radius: 2px 2px 1px 1px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.22), rgba(37, 99, 235, 0.38));
    opacity: 0.65;
}

.c360-clv-events-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(34px + 26px);
    pointer-events: none;
    z-index: 3;
}

.c360-clv-timeline-track {
    display: flex;
    gap: 5px;
    height: 26px;
    border-radius: 13px;
    overflow: hidden;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.06),
        0 2px 12px rgba(15, 55, 88, 0.06);
    position: relative;
    z-index: 1;
}

.c360-clv-timeline-track.c360-timeline-track--visible,
#c360-timeline-track.c360-timeline-track--visible {
    transform: scaleX(1);
}

.c360-clv-timeline-seg {
    min-width: 8px;
    border-radius: 8px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
    opacity: 0.42;
}

.c360-clv-timeline-seg--fidel {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.c360-clv-timeline-seg--alta {
    background: linear-gradient(180deg, #f87171 0%, #b91c1c 100%);
}

.c360-clv-timeline-seg--media {
    background: linear-gradient(180deg, #fbbf24 0%, #ca8a04 100%);
}

.c360-clv-timeline-seg--baja {
    background: linear-gradient(180deg, #4ade80 0%, #166534 100%);
}

.c360-clv-milestones {
    position: relative;
    width: 100%;
    height: 2rem;
    margin-top: 0.4rem;
    margin-bottom: 0.15rem;
}

.c360-clv-milestone {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: 4rem;
    pointer-events: none;
    z-index: 10;
}

.c360-clv-milestone-line {
    width: 1px;
    height: 14px;
    border-radius: 2px;
    background: rgba(99, 102, 241, 0.35);
}

.c360-clv-milestone-label {
    margin-top: 2px;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c360-muted);
    opacity: 0;
    transition: opacity 0.18s ease;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--c360-border);
}

.c360-clv-axis {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.15rem;
    padding: 0 2px;
}

.c360-clv-axis--multi-creacion {
    flex-wrap: wrap;
    row-gap: 0.65rem;
}

.c360-clv-axis--multi-creacion .c360-clv-axis-label--start {
    max-width: 34%;
}

.c360-clv-axis-mid-creaciones {
    flex: 1 1 12rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem 1rem;
    min-width: 0;
}

.c360-clv-axis-label--mid {
    max-width: 11rem;
}

.c360-clv-axis-contracts {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--c360-muted);
    line-height: 1.2;
    margin-top: 0.08rem;
    word-break: break-word;
}

.c360-clv-axis-label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    max-width: 42%;
    min-width: 0;
}

.c360-clv-axis-label--end {
    flex-direction: row-reverse;
    text-align: right;
}

.c360-clv-axis-pin {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 0.15rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(15, 55, 88, 0.2);
}

.c360-clv-axis-pin--start {
    background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.c360-clv-axis-pin--end {
    background: linear-gradient(145deg, #818cf8, var(--c360-accent));
}

.c360-clv-axis-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    font-size: 0.68rem;
    color: var(--c360-muted);
    line-height: 1.25;
}

.c360-clv-axis-text strong {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c360-text);
}

.c360-clv-axis-date {
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--c360-text);
    word-break: break-word;
}

.c360-clv-event {
    position: absolute;
    bottom: 11px;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--c360-primary);
    box-shadow: 0 1px 8px rgba(15, 55, 88, 0.18);
    pointer-events: auto;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.c360-clv-event--multi {
    width: 15px;
    height: 15px;
    margin-left: -7.5px;
    bottom: 9px;
    border-width: 2px;
}

.c360-clv-event--outlier {
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45), 0 2px 10px rgba(217, 119, 6, 0.25);
}

.c360-clv-event-badge {
    position: absolute;
    right: -5px;
    top: -6px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--c360-accent);
    color: #fff;
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.45);
    pointer-events: none;
}

.c360-clv-event:hover,
.c360-clv-event:focus-visible {
    transform: scale(1.25);
    z-index: 6;
    outline: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.c360-clv-event--selected {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45), 0 4px 16px rgba(99, 102, 241, 0.35);
    border-color: var(--c360-accent);
    z-index: 7;
}

body.c360-clv-drawer-open {
    overflow: hidden;
}

.c360-clv-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.c360-clv-drawer-backdrop[hidden] {
    display: none !important;
}

.c360-clv-drawer-backdrop--open {
    opacity: 1;
    visibility: visible;
}

.c360-clv-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    max-width: 100%;
    z-index: 10001;
    background: var(--c360-card);
    border-left: 1px solid var(--c360-border);
    box-shadow: -16px 0 48px rgba(15, 55, 88, 0.14);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.c360-clv-drawer[hidden] {
    display: none !important;
}

.c360-clv-drawer--open {
    transform: translateX(0);
}

.c360-clv-drawer-inner {
    padding: 1rem 1.1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.c360-clv-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.c360-clv-drawer-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--c360-text);
}

.c360-clv-drawer-close {
    border: none;
    background: rgba(15, 55, 88, 0.06);
    color: var(--c360-muted);
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.c360-clv-drawer-close:hover {
    background: rgba(185, 28, 28, 0.12);
    color: #b91c1c;
}

.c360-clv-drawer-total-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.28);
}

.c360-clv-drawer-total-label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c360-muted);
}

.c360-clv-drawer-total-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--c360-text);
    letter-spacing: -0.02em;
}

.c360-clv-drawer-total-meta {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--c360-muted);
}

.c360-clv-drawer-table-wrap {
    border: 1px solid var(--c360-border);
    border-radius: 10px;
    overflow: hidden;
}

.c360-clv-drawer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.c360-clv-drawer-table thead {
    background: rgba(15, 55, 88, 0.06);
}

.c360-clv-drawer-table th {
    text-align: left;
    padding: 0.45rem 0.65rem;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c360-muted);
}

.c360-clv-drawer-th-num {
    text-align: right;
}

.c360-clv-drawer-table td {
    padding: 0.5rem 0.65rem;
    border-top: 1px solid var(--c360-border);
}

.c360-clv-drawer-td-num {
    text-align: right;
    font-weight: 700;
    color: var(--c360-primary);
    white-space: nowrap;
}

.c360-clv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.15rem;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    font-size: 0.72rem;
    color: var(--c360-muted);
    align-items: center;
}

.c360-clv-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    opacity: 0.5;
}

.c360-clv-legend-swatch--fidel { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.c360-clv-legend-swatch--alta { background: linear-gradient(180deg, #f87171, #b91c1c); }
.c360-clv-legend-swatch--media { background: linear-gradient(180deg, #fbbf24, #ca8a04); }
.c360-clv-legend-swatch--baja { background: linear-gradient(180deg, #4ade80, #166534); }

.c360-clv-legend-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #d97706;
    margin-right: 6px;
    vertical-align: middle;
    box-sizing: border-box;
}

.c360-clv-legend-events {
    margin-left: auto;
}

.c360-timeline-meta {
    font-size: 0.82rem;
    color: var(--c360-muted);
    margin: 0 0 0.75rem 0;
    line-height: 1.45;
}

/* Popover temporal para eventos de timeline */
.c360-tl-popover {
    position: fixed;
    z-index: 9999;
    max-width: 290px;
    padding: 0.6rem 0.75rem;
    background: var(--c360-card);
    border: 1px solid var(--c360-border);
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(15, 55, 88, 0.18);
    pointer-events: none;
    opacity: 0;
    transform: translate(10px, 10px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    font-size: 0.82rem;
    color: var(--c360-text);
    display: none;
    white-space: pre-line;
}

.c360-tl-popover--visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 768px) {
    .c360-sidebar {
        width: 100%;
        flex-direction: column;
        height: auto;
        max-height: min(44vh, 380px);
        flex-shrink: 0;
    }
    .c360-layout { flex-direction: column; }
    .c360-gauges { justify-content: flex-start; }
    .c360-clv-legend-events { margin-left: 0; flex-basis: 100%; }
    .c360-clv-axis {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .c360-clv-axis--multi-creacion .c360-clv-axis-label--start {
        max-width: 100%;
    }
    .c360-clv-axis-mid-creaciones {
        justify-content: flex-start;
    }
    .c360-clv-axis-label--mid {
        max-width: 100%;
    }
    .c360-clv-axis-label,
    .c360-clv-axis-label--end {
        max-width: 100%;
        flex-direction: row;
        text-align: left;
    }
    .c360-clv-axis-label--end {
        flex-direction: row-reverse;
        text-align: right;
    }
    .c360-clv-card {
        padding: 0.85rem 0.9rem 1rem;
    }
    .c360-clv-kpi-strip {
        grid-template-columns: 1fr 1fr;
    }
    .c360-clv-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .c360-clv-zoom-wrap {
        justify-content: space-between;
    }
    .c360-clv-zoom {
        flex: 1;
        max-width: 100%;
    }
    .c360-clv-drawer {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: min(58dvh, 520px);
        max-height: 85dvh;
        border-left: none;
        border-top: 1px solid var(--c360-border);
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -12px 40px rgba(15, 55, 88, 0.12);
    }

    .c360-clv-drawer--open {
        transform: translateY(0);
    }
}

@media print {
    html.c360-html,
    html:has(body.carla-360) {
        overflow: visible !important;
        height: auto !important;
    }

    body.carla-360,
    body.carla-360 * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.carla-360 {
        margin: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
    }

    .c360-layout {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .c360-sidebar,
    .c360-topbar,
    .c360-fab-anotaciones,
    .c360-fab-notas-cartera,
    .c360-modal,
    .c360-help,
    .c360-clv-toolbar,
    .c360-clv-drawer {
        display: none !important;
    }

    .c360-main {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .c360-content {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        padding: 8mm !important;
    }

    .c360-print-meta {
        display: block !important;
        margin: 0 0 6mm 0 !important;
        padding: 4mm 5mm !important;
        border: 1px solid var(--c360-border) !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        box-shadow: 0 4px 16px rgba(15, 55, 88, 0.08) !important;
    }

    .c360-print-meta-title {
        margin: 0 0 2.5mm 0 !important;
        color: var(--c360-primary) !important;
        font-size: 13pt !important;
        font-weight: 800 !important;
        letter-spacing: 0.01em !important;
    }

    .c360-print-meta-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2mm 4mm !important;
    }

    .c360-print-meta-grid p {
        margin: 0 !important;
        font-size: 9.6pt !important;
        color: var(--c360-text) !important;
        line-height: 1.35 !important;
    }

    .c360-print-suplemento {
        display: block !important;
        margin: 6mm 0 0 0 !important;
        padding: 0 !important;
    }

    .c360-print-suplemento-title {
        margin: 0 0 2mm 0 !important;
        font-size: 11pt !important;
        font-weight: 800 !important;
        color: var(--c360-primary) !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .c360-print-suplemento-intro {
        margin: 0 0 3mm 0 !important;
        font-size: 8.5pt !important;
        line-height: 1.4 !important;
        color: var(--c360-muted) !important;
    }

    .c360-print-suplemento-msg,
    .c360-print-suplemento-empty {
        margin: 0 !important;
        font-size: 9pt !important;
        color: var(--c360-text) !important;
    }

    .c360-print-suplemento-tabla {
        width: 100% !important;
        font-size: 8pt !important;
        margin: 0 0 4mm 0 !important;
        border-collapse: collapse !important;
    }

    .c360-print-suplemento-tabla th,
    .c360-print-suplemento-tabla td {
        border: 1px solid #cbd5e1 !important;
        padding: 1.5mm 2mm !important;
        vertical-align: top !important;
        word-break: break-word !important;
    }

    .c360-print-suplemento-tabla th {
        background: rgba(15, 55, 88, 0.08) !important;
        font-weight: 700 !important;
    }

    #carla_informe_wrap {
        overflow: visible !important;
    }

    .c360-section,
    .c360-scorecard,
    .c360-hero,
    .c360-print-meta,
    .c360-table-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Mascotas — tabMascotas Contrato.parent = c.name */
.c360-mascotas-section {
    margin-bottom: 1.5rem;
}

.c360-mascotas-section h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.35rem 0;
    color: var(--c360-text);
}

.c360-mascotas-h2-count {
    font-weight: 700;
    color: var(--c360-muted);
    font-size: 0.88em;
}

.c360-mascotas-intro {
    margin: 0 0 0.85rem 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-mascotas-summary {
    margin: 0 0 0.9rem 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--c360-text);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
}

.c360-mascotas-summary-k {
    font-weight: 600;
    color: var(--c360-muted);
}

.c360-mascotas-summary-r {
    font-weight: 600;
    color: var(--c360-muted);
}

.c360-mascotas-priority {
    margin-bottom: 1rem;
}

.c360-mascotas-block-title {
    margin: 0 0 0.55rem 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c360-accent);
}

.c360-mascotas-empty--soft {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    color: var(--c360-muted);
    background: rgba(15, 55, 88, 0.04);
    border-radius: 10px;
    border: 1px dashed var(--c360-border);
}

.c360-mascotas-historico {
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--c360-border);
}

.c360-mascotas-btn-retiradas {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--c360-text);
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.c360-mascotas-btn-retiradas:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(100, 116, 139, 0.55);
}

.c360-mascotas-btn-retiradas:focus-visible {
    outline: 2px solid var(--c360-accent);
    outline-offset: 2px;
}

.c360-mascotas-panel-retiradas {
    margin-top: 0.75rem;
    padding: 0.85rem 0.9rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(185, 28, 28, 0.2);
    background: rgba(254, 242, 242, 0.45);
}

.c360-mascotas-panel-hint {
    margin: 0 0 0.65rem 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--c360-muted);
}

.c360-mascotas-grid--retiradas .c360-mascota-card {
    opacity: 0.97;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.08);
}

.c360-mascotas-empty,
.c360-mascotas-error {
    margin: 0;
    font-size: 0.85rem;
    color: var(--c360-muted);
}

.c360-mascotas-module--error {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    background: rgba(254, 226, 226, 0.45);
}

.c360-mascotas-error {
    color: #991b1b;
    font-weight: 600;
}

.c360-mascotas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.c360-mascota-card {
    border: 1px solid var(--c360-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--c360-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.c360-mascota-card-visual {
    flex-shrink: 0;
}

.c360-mascota-imgwrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    overflow: hidden;
}

.c360-mascota-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c360-mascota-especie-fallback {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem;
    background: linear-gradient(160deg, #f8fafc 0%, #e8eef5 100%);
    pointer-events: none;
}

.c360-mascota-imgwrap--err .c360-mascota-especie-fallback {
    display: flex;
}

.c360-mascota-especie-emoji {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(15, 55, 88, 0.12));
}

.c360-mascota-especie-sinfoto {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c360-muted);
}

.c360-mascota-especie-fallback--felino .c360-mascota-especie-emoji {
    filter: drop-shadow(0 2px 4px rgba(15, 55, 88, 0.12)) hue-rotate(-8deg);
}

.c360-mascota-especie-fallback--canino .c360-mascota-especie-emoji {
    filter: drop-shadow(0 2px 4px rgba(15, 55, 88, 0.12)) hue-rotate(12deg);
}

.c360-mascota-especie-fallback--ave .c360-mascota-especie-emoji {
    filter: drop-shadow(0 2px 4px rgba(15, 55, 88, 0.12)) hue-rotate(35deg);
}

.c360-mascota-especie-fallback--reptil .c360-mascota-especie-emoji {
    filter: drop-shadow(0 2px 4px rgba(15, 55, 88, 0.12)) hue-rotate(85deg) saturate(1.1);
}

.c360-mascota-imgwrap--err .c360-mascota-img {
    display: none;
}

.c360-mascota-card-body {
    padding: 0.75rem 0.85rem 0.9rem;
    flex: 1;
}

.c360-mascota-name {
    margin: 0 0 0.5rem 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--c360-text);
    line-height: 1.3;
}

.c360-mascota-dl {
    margin: 0;
    font-size: 0.76rem;
}

.c360-mascota-dl-row {
    display: grid;
    grid-template-columns: 4.2rem 1fr;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    align-items: baseline;
}

.c360-mascota-dl-row:last-child {
    margin-bottom: 0;
}

.c360-mascota-dl dt {
    margin: 0;
    font-weight: 700;
    color: var(--c360-muted);
    text-transform: uppercase;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.c360-mascota-dl dd {
    margin: 0;
    font-weight: 600;
    color: var(--c360-text);
    word-break: break-word;
}

/* Estado del contrato en tarjeta mascota (mismos colores que desglose por contrato) */
.c360-mascota-card .c360-estado-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.c360-mascota-card .c360-estado-activo {
    background: rgba(16, 185, 129, 0.25);
    color: #047857;
}

.c360-mascota-card .c360-estado-atrasado {
    background: rgba(245, 158, 11, 0.28);
    color: #b45309;
}

.c360-mascota-card .c360-estado-retirado {
    background: rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

.c360-mascota-estado-none {
    color: var(--c360-muted);
    font-weight: 600;
}

.c360-mascotas-nota {
    margin: 0.85rem 0 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--c360-muted);
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(15, 55, 88, 0.04);
    border: 1px dashed var(--c360-border);
}
