/* Visual fixes for TECHTIVITY card — upload via FileZilla (no npm build required) v2 */

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}

@keyframes nodeGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 16px rgba(17,197,255,0.12), inset 0 1px 0 rgba(255,255,255,0.08); }
    50% { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 28px rgba(17,197,255,0.28), inset 0 1px 0 rgba(255,255,255,0.1); }
}

@keyframes techBreathe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 32px rgba(17,197,255,0.25), inset 0 0 20px rgba(17,197,255,0.08); }
    50% { transform: scale(1.04); box-shadow: 0 0 44px rgba(17,197,255,0.4), inset 0 0 24px rgba(17,197,255,0.12); }
}

@keyframes infraLineIn {
    from { opacity: 0; stroke-dasharray: 0 200; }
    to { opacity: 1; stroke-dasharray: 200 0; }
}

/* ─── Hero actions ─── */
.action-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
}
.action-grid > .btn-diagnostic,
.action-grid > :first-child { grid-column: 1 / -1 !important; }
.action-grid .btn-ghost {
    min-height: 3rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.8125rem !important;
    gap: 0.625rem !important;
    border-color: rgba(17, 197, 255, 0.22) !important;
    background: rgba(17, 197, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}
.action-grid .btn-ghost svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0 !important;
}

/* ─── Process timeline ─── */
.process-timeline { position: relative !important; }
.process-timeline__track {
    position: absolute !important;
    top: 1.375rem !important;
    left: 12.5% !important;
    right: 12.5% !important;
    height: 2px !important;
    background: rgba(17, 197, 255, 0.25) !important;
    border-radius: 1px !important;
    z-index: 0 !important;
    display: block !important;
}
.process-timeline__progress {
    height: 100% !important;
    background: linear-gradient(90deg, #11c5ff, #1aa9ff) !important;
    box-shadow: 0 0 12px rgba(17, 197, 255, 0.45) !important;
}
.process-timeline__steps {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
}
.process-step {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.process-step__number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin-bottom: 1rem !important;
    border-radius: 0.7rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #11c5ff !important;
    background: #020b1c !important;
    border: 1px solid rgba(17, 197, 255, 0.5) !important;
    box-shadow: 0 0 0 6px #020b1c, 0 0 18px rgba(17, 197, 255, 0.22) !important;
}
.process-step__title {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 0.5rem !important;
}
.process-step__desc {
    font-size: 0.8125rem !important;
    color: #9db3c8 !important;
    line-height: 1.5 !important;
}

/* ─── Diagnostic timeline (5 steps) ─── */
.diagnostic-timeline { position: relative !important; }
.diagnostic-timeline__track {
    position: absolute !important;
    top: 1.375rem !important;
    left: 10% !important;
    right: 10% !important;
    height: 2px !important;
    background: rgba(17, 197, 255, 0.25) !important;
    border-radius: 1px !important;
    z-index: 0 !important;
    display: block !important;
    overflow: visible !important;
}
.diagnostic-timeline__progress {
    height: 100% !important;
    background: linear-gradient(90deg, rgba(17,197,255,0.4), rgba(17,197,255,0.95)) !important;
    box-shadow: 0 0 12px rgba(17,197,255,0.45) !important;
}
.diagnostic-timeline__steps {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
}
.diagnostic-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.diagnostic-step__number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin-bottom: 0.875rem !important;
    border-radius: 0.7rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #11c5ff !important;
    background: #020b1c !important;
    border: 1px solid rgba(17, 197, 255, 0.5) !important;
    box-shadow: 0 0 0 6px #020b1c, 0 0 18px rgba(17, 197, 255, 0.22) !important;
}
.diagnostic-step__title {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.35 !important;
    margin-bottom: 0.375rem !important;
}
.diagnostic-step__desc {
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
    color: #9db3c8 !important;
}

/* ─── Living infrastructure ─── */
.living-infra {
    position: relative !important;
    margin: 0 auto !important;
    max-width: 560px !important;
}
.living-infra__panel {
    position: relative !important;
    min-height: 560px !important;
    padding: 2.5rem 1.5rem 3.5rem !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(7,28,56,0.72) 0%, rgba(4,20,42,0.58) 100%) !important;
    border: 1px solid rgba(17,197,255,0.18) !important;
    box-shadow: 0 12px 48px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06) !important;
    overflow: hidden !important;
}
.living-infra__hud {
    position: relative !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 9999px !important;
    font-family: ui-monospace, monospace !important;
    font-size: 0.5rem !important;
    letter-spacing: 0.12em !important;
    color: #11c5ff !important;
    background: rgba(2,11,28,0.7) !important;
    border: 1px solid rgba(17,197,255,0.2) !important;
}
.living-infra__hud-dot {
    width: 0.375rem !important;
    height: 0.375rem !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 8px rgba(34,197,94,0.8) !important;
    animation: badgePulse 2s ease-in-out infinite !important;
}
.living-infra__lines {
    position: absolute !important;
    inset: 2.5rem 1rem 3.5rem !important;
    width: calc(100% - 2rem) !important;
    height: calc(100% - 6rem) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
.living-infra__orbit-ring {
    fill: none !important;
    stroke: rgba(17,197,255,0.12) !important;
    stroke-width: 1 !important;
    stroke-dasharray: 6 8 !important;
    animation: logoRotate 40s linear infinite !important;
    transform-origin: center !important;
}
.living-infra__line {
    stroke: #11c5ff !important;
    stroke-width: 1.5 !important;
    stroke-linecap: round !important;
    opacity: 0.55 !important;
    animation: infraLineIn 0.6s ease forwards !important;
    animation-delay: calc(0.15s + var(--line-i) * 0.1s) !important;
}
.living-infra__flow-dot {
    fill: #11c5ff !important;
    opacity: 0.95 !important;
    filter: drop-shadow(0 0 4px rgba(17,197,255,0.9)) !important;
}
.living-infra__core {
    position: absolute !important;
    top: 47% !important;
    left: 50% !important;
    z-index: 4 !important;
    width: 5.5rem !important;
    height: 5.5rem !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.living-infra__core-ring {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(17,197,255,0.25) !important;
    animation: logoRotate 20s linear infinite !important;
}
.living-infra__core-ring--2 {
    inset: -14px !important;
    animation-direction: reverse !important;
    animation-duration: 28s !important;
    opacity: 0.45 !important;
}
.living-infra__core-ring--3 {
    inset: -28px !important;
    animation-duration: 36s !important;
    opacity: 0.25 !important;
    border-style: dashed !important;
}
.living-infra__core-dot {
    position: relative !important;
    z-index: 1 !important;
    width: 4.25rem !important;
    height: 4.25rem !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.125rem !important;
    background: linear-gradient(145deg, rgba(7,28,56,0.95), rgba(2,11,28,0.98)) !important;
    border: 1px solid rgba(17,197,255,0.45) !important;
    box-shadow: 0 0 32px rgba(17,197,255,0.3) !important;
    animation: techBreathe 4s ease-in-out infinite !important;
    color: #11c5ff !important;
}
.living-infra__core-label {
    font-family: ui-monospace, monospace !important;
    font-size: 0.4375rem !important;
    letter-spacing: 0.14em !important;
    color: #11c5ff !important;
}
.living-infra__nodes {
    position: absolute !important;
    inset: 2.5rem 1rem 3.5rem !important;
    z-index: 5 !important;
}
.living-infra__node {
    position: absolute !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    width: max-content !important;
    /* Center the hub on the SVG tip (radius 148 / 400 = 37%) */
    transform: translate(-50%, -1.75rem) !important;
}
.living-infra__node:nth-child(1) { left: 50% !important; top: 13% !important; }      /* IA aplicada */
.living-infra__node:nth-child(2) { left: 82% !important; top: 31.5% !important; }   /* Integraciones API */
.living-infra__node:nth-child(3) { left: 82% !important; top: 68.5% !important; }   /* Cloud Enterprise */
.living-infra__node:nth-child(4) { left: 50% !important; top: 87% !important; }      /* Automatización */
.living-infra__node:nth-child(5) { left: 18% !important; top: 68.5% !important; }   /* Datos en tiempo real */
.living-infra__node:nth-child(6) { left: 18% !important; top: 31.5% !important; }   /* Operación conectada */
.living-infra__node:hover {
    transform: translate(-50%, -1.85rem) scale(1.05) !important;
}
.living-infra__node-hub {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, rgba(17,197,255,0.14), rgba(7,28,56,0.9)) !important;
    border: 1px solid rgba(17,197,255,0.35) !important;
    color: #11c5ff !important;
    animation: nodeGlow 3s ease-in-out infinite !important;
    animation-delay: calc(var(--node-i) * 0.4s) !important;
}
.living-infra__icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
}
.living-infra__node-status {
    position: absolute !important;
    bottom: 2px !important;
    right: 2px !important;
    width: 0.5rem !important;
    height: 0.5rem !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    border: 2px solid rgba(2,11,28,0.9) !important;
    box-shadow: 0 0 6px rgba(34,197,94,0.7) !important;
}
.living-infra__node-label {
    padding: 0.25rem 0.5rem !important;
    border-radius: 6px !important;
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    white-space: nowrap !important;
    max-width: 8.5rem !important;
    text-align: center !important;
    line-height: 1.25 !important;
    background: rgba(2,11,28,0.75) !important;
    border: 1px solid rgba(17,197,255,0.12) !important;
}

/* ─── Video: content centered (not too low) ─── */
.corp-video__scene {
    align-items: center !important;
    justify-content: center !important;
    padding: 5.25rem 1.25rem 3.5rem !important;
}
.corp-video__hud-center {
    position: absolute !important;
    top: 2.6rem !important;
    left: 1.25rem !important;
    right: 1.25rem !important;
    text-align: center !important;
    z-index: 4 !important;
}
.corp-video__title,
.corp-video__subtitle {
    text-shadow: 0 2px 18px rgba(2,11,28,0.9) !important;
}
.scene-manual {
    width: 100% !important;
    max-width: 360px !important;
    margin-top: 1.25rem !important;
}
.scene-manual__doc {
    background: rgba(2,11,28,0.78) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* ─── Contact / FAQ icon sizes ─── */
.enterprise-center__channel-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
}
.enterprise-center__channel-icon svg {
    width: 1.375rem !important;
    height: 1.375rem !important;
    display: block !important;
}
.faq-item__icon {
    width: 1.125rem !important;
    height: 1.125rem !important;
}

/* ─── Particles canvas always visible layer ─── */
#particles-canvas {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .process-timeline__track,
    .diagnostic-timeline__track { display: none !important; }
    .process-timeline__steps,
    .diagnostic-timeline__steps {
        grid-template-columns: 1fr !important;
        gap: 1.1rem !important;
    }
    .process-step,
    .diagnostic-step {
        align-items: flex-start !important;
        text-align: left !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.75rem 1rem !important;
    }
    .process-step__number,
    .diagnostic-step__number {
        margin-bottom: 0 !important;
        box-shadow: 0 0 14px rgba(17,197,255,0.18) !important;
    }
    .process-step__title,
    .process-step__desc,
    .diagnostic-step__title,
    .diagnostic-step__desc {
        flex: 1 1 calc(100% - 3.5rem) !important;
    }
    .process-step__desc,
    .diagnostic-step__desc {
        flex-basis: 100% !important;
        padding-left: 3.75rem !important;
    }
    .living-infra__panel {
        min-height: 520px !important;
        padding: 2rem 0.75rem 2.75rem !important;
    }
    .living-infra__lines,
    .living-infra__nodes {
        inset: 2rem 0.5rem 2.75rem !important;
    }
    .living-infra__node {
        transform: translate(-50%, -1.5rem) !important;
    }
    .living-infra__node:hover {
        transform: translate(-50%, -1.6rem) scale(1.04) !important;
    }
    .living-infra__node-hub {
        width: 3rem !important;
        height: 3rem !important;
    }
    .living-infra__node-label {
        font-size: 0.5625rem !important;
        max-width: 6.5rem !important;
        white-space: normal !important;
    }
}
