/* =========================================================================
   WIDGET: INTEGRACIONES (DIAGRAMA INTERACTIVO)
   ========================================================================= */

.c360-integration-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(13, 33, 55, 0.08);
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

/* ────── BACKGROUND PATTERN ────── */
.c360-integration-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ────── SVG CANVAS ────── */
.c360-int-canvas {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c360-int-svg {
    width: 100%;
    height: 100%;
    max-width: 600px;
    display: block;
    overflow: visible;
}

/* ────── SVG ELEMENTS ────── */

/* Connections */
.c360-int-svg .conn {
    stroke: var(--border);
    stroke-width: 2;
    stroke-dasharray: 6 6;
    fill: none;
    transition: all 0.3s ease;
}

.c360-int-svg .conn.active {
    stroke: #3B82F6; /* Blue */
    stroke-width: 3;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    animation: flowLine 1.5s linear infinite;
}

@keyframes flowLine {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}

/* Hub */
.c360-int-svg .hub-bg {
    fill: #1E293B;
    stroke: rgba(59, 130, 246, 0.5);
    stroke-width: 4;
    transition: all 0.3s ease;
}

.c360-int-svg .hub-pulse {
    fill: none;
    stroke: #3B82F6;
    stroke-width: 2;
    opacity: 0.5;
    animation: pulseHubRing 2s ease-out infinite;
    transform-origin: center;
}

@keyframes pulseHubRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Nodes */
.c360-int-svg .node-group {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.c360-int-svg .node-group:hover {
    transform: translateY(-4px);
}

.c360-int-svg .node-bg {
    fill: #FFFFFF;
    stroke: var(--border);
    stroke-width: 2;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.05));
    transition: all 0.3s ease;
}

.c360-int-svg .node-group.active .node-bg {
    stroke: #3B82F6;
    stroke-width: 3;
    fill: #EFF6FF;
    filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.25));
}

.c360-int-svg .node-icon-bg {
    fill: #F8FAFC;
    transition: fill 0.3s ease;
}

.c360-int-svg .node-group.active .node-icon-bg {
    fill: #DBEAFE;
}

/* Text inside SVG */
.c360-int-svg .node-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    fill: var(--ink);
    text-anchor: middle;
    pointer-events: none;
    transition: fill 0.3s ease;
}

.c360-int-svg .node-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 11px;
    fill: var(--ink-muted);
    text-anchor: middle;
    pointer-events: none;
}

.c360-int-svg .node-group.active .node-label {
    fill: #2563EB;
}

.c360-int-svg .hub-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    fill: #FFFFFF;
    text-anchor: middle;
    pointer-events: none;
}
.c360-int-svg .hub-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    fill: #94A3B8;
    text-anchor: middle;
    letter-spacing: 0.1em;
    pointer-events: none;
}


/* ────── DYNAMIC INFO PANEL ────── */
.c360-int-panel {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.c360-int-panel-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink-muted);
}

.c360-int-panel-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.c360-int-content {
    display: none;
    flex-direction: column;
    height: 100%;
    animation: fadeInSlide 0.4s ease-out;
}

.c360-int-content.active {
    display: flex;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.c360-int-content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.c360-int-content-icon {
    width: 56px;
    height: 56px;
    background: #EFF6FF;
    color: #3B82F6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.c360-int-content-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.c360-int-content-sub {
    font-size: 12px;
    font-weight: 600;
    color: #3B82F6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.c360-int-content-body {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.6;
    flex: 1;
}

.c360-int-features {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c360-int-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--ink);
}

.c360-int-feature-check {
    color: #10B981;
    background: #D1FAE5;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}
