/* Contenedor del isotipo 3D (js/crm-logo3d.js). Mientras no haya 3D se ve
   la imagen fija; al montarse el canvas, la imagen se desvanece y entra el 3D. */
.crm-logo3d {
    position: relative;
}
.crm-logo3d-fallback,
.crm-logo3d canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease;
}
.crm-logo3d-fallback {
    object-fit: contain;
    padding: 12%;
}
.crm-logo3d canvas {
    opacity: 0;
}
.crm-logo3d.is-3d canvas {
    opacity: 1;
}
.crm-logo3d.is-3d .crm-logo3d-fallback {
    opacity: 0;
}

/* Login: el isotipo flota al centro del panel derecho, sobre la foto. */
.authentication-bg {
    position: relative;
}
.crm-auth-logo3d {
    position: absolute;
    inset: 24% 26%;
    z-index: 1;
}
.crm-auth-tagline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9%;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    letter-spacing: 0.04em;
    text-align: center;
}

/* Dashboard: saludo compacto (fecha, resumen del día y accesos rápidos)
   con el isotipo 3D a la derecha. Es el encabezado de esa pantalla. */
.crm-dash-hero .card-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 18px 22px;
}
.crm-dash-hero-main {
    flex: 1;
    min-width: 0;
}
.crm-dash-hero-date {
    color: #4a5670;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
}
.crm-dash-hero-title {
    margin: 2px 0 10px;
    color: #141E30;
    font-size: 1.45rem;
    font-weight: 700;
}
.crm-dash-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.crm-dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid #d3deee;
    border-radius: 999px;
    color: #141E30;
    background: rgba(255, 255, 255, .75);
    font-size: 12.5px;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease;
}
a.crm-dash-chip:hover {
    color: #35577D;
    border-color: #5A7FA8;
    background: #fff;
}
.crm-dash-chip i {
    color: #5A7FA8;
    font-size: 15px;
}
.crm-dash-chip.is-warn i { color: #c58c0b; }
.crm-dash-chip.is-danger { border-color: rgba(255, 61, 96, .4); }
.crm-dash-chip.is-danger i { color: #ff3d60; }
.crm-dash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.crm-dash-hero .crm-logo3d {
    flex: 0 0 150px;
    height: 112px;
}
@media (max-width: 575.98px) {
    .crm-dash-hero .crm-logo3d {
        display: none;
    }
}

/* Embudo de ventas 3D (js/crm-funnel3d.js): sin 3D solo se ve la lista. */
.crm-funnel3d {
    display: none;
    position: relative;
    height: 290px;
}
.crm-funnel3d canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.crm-funnel-layout.has-3d {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}
.crm-funnel-layout.has-3d .crm-funnel3d {
    display: block;
}
.crm-funnel3d-tip {
    position: absolute;
    left: 50%;
    bottom: 6px;
    z-index: 1;
    translate: -50% 0;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 30, 48, 0.88);
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}
.crm-funnel-row {
    margin-left: -8px;
    margin-right: -8px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}
.crm-funnel-row.is-active {
    background: rgba(53, 87, 125, 0.08);
}
@media (max-width: 575.98px) {
    .crm-funnel-layout.has-3d {
        grid-template-columns: 1fr;
    }
}

/* Fotos de perfil verticales (4:5, ver _my_account_panel.html) en avatares
   redondos: se encuadra la parte de arriba, donde suele estar la cara. La
   vista previa de la ventana "Fotografía de perfil" usa el mismo 30%. */
img.logout-avatar {
    object-fit: cover;
    object-position: 50% 30%;
}
