body {
    background-color: #0A0A0A;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Gilroy Bold', sans-serif;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: #FF00FF;
    color: #FFFFFF !important;
    border: 2px solid #FF00FF;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #00FFFF;
    color: #0A0A0A !important;
    border-color: #00FFFF;
    box-shadow: 0 0 15px #00FFFF;
    transform: scale(1.05);
}

.nomadx-nucleus {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.nomadx-nucleus h2 {
    font-size: 2.5em;
    margin-bottom: 80px;
    color: #FFFFFF;
}

.nucleus-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 500px;
}

.nucleus-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
    pointer-events: none;
}

.nucleus-line {
    fill: none;
    stroke: rgba(0, 255, 255, 0.2);
    stroke-width: 1px;
}

.nucleus-line-animated {
    fill: none;
    stroke: #FF00FF;
    stroke-width: 2px;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.nucleus-line-animated.active {
    stroke-dashoffset: 0;
}

.arrow-head {
    fill: #FF00FF;
}

.nucleus-core {
    width: 100px;
    height: 100px;
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 1; 
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
    animation: pulse 4s infinite ease-in-out;
}

.nucleus-core img {
    width: 50px;
    height: 50px;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 25px rgba(0, 255, 255, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 45px rgba(0, 255, 255, 0.7); }
    100% { transform: scale(0.95); box-shadow: 0 0 25px rgba(0, 255, 255, 0.3); }
}

.nucleus-node {
    position: absolute;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.nucleus-node:hover {
    transform: scale(1.1);
}


.nucleus-node .icon-container {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    background-color: #0A0A0A;
    position: relative; 
    z-index: 12;     
}

.nucleus-node .icon-container img {
    width: 40px;
    height: 40px;
    filter: invert(1);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.nucleus-node h3 {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    position: relative; 
    z-index: 15;     
}

.nucleus-node.active .icon-container {
    border-color: #FF00FF;
    box-shadow: 0 0 20px #FF00FF;
}

.nucleus-node.active .icon-container img {
    opacity: 1;
}

.nucleus-node.active h3 {
    color: #FFFFFF;
}

#node-adaptacion { top: 0; left: 50%; transform: translateX(-50%); }
#node-potencial { bottom: 0; left: 10%; }
#node-alianza { bottom: 0; right: 10%; }

.nucleus-description {
    margin-top: 40px;
    min-height: 100px;
    perspective: 800px;
}

#description-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 25px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: rotateX(-30deg) scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    position: relative;
}

#description-box.active {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
}

.nucleus-description p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #DDDDDD;
    display: none;
}

.nucleus-description p.active {
    display: block;
}

.llamado-accion {
    padding: 80px 0;
    text-align: center;
}

.llamado-accion p {
    color: #DDDDDD;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1em;
    }

    .nomadx-nucleus {
        padding: 60px 20px;
    }

    .nucleus-container {
        display: block;
        min-height: auto;
    }

    .nucleus-core, .nucleus-connections {
        display: none; 
    }

    .nucleus-node {
        position: relative; 
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin-bottom: 40px;
    }

    .nucleus-description {
        margin-top: 0;
    }

    #description-box {
        padding: 20px;
    }
}