/* Galaxy Interactive Component - COSMO Style */
.galaxy-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin: 20px 0;
    background: rgba(15, 23, 42, 0);
    border-radius: 20px;
}

.galaxy-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Planets */
.planet {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform-origin: center;
}

/* Planet hover effect */
.planet:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Specific hover effects for positioned planets */
.planet.core {
    transform: translate(-50%, -50%) scale(1.05);
}

.planet.insights:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Business model elements - COSMO Style colors */
.planet.core {
    width: 140px;
    height: 140px;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    position: absolute;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    transform-origin: center;
    background: radial-gradient(circle at 70% 24%, #0032FF, #001980, #0032FF);
    box-shadow:
        inset -20px -20px 40px rgba(255, 255, 255, 0.15),
        inset 20px 20px 60px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(6, 0, 173, 0.6),
        0 0 80px rgba(0, 123, 255, 0.3);
}

.planet.insights {
    width: 90px;
    height: 90px;
    top: 25%;
    left: 37%;
    transform: translate(-50%, -50%);
    z-index: 5;
    position: absolute;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    transform-origin: center;
 background: radial-gradient(circle at 70% 24%, #00ff96, #008833, #00ff96);
    box-shadow: inset -20px -20px 40px rgba(255, 255, 255, 0.15), inset 20px 20px 60px rgba(0, 0, 0, 0.25), 0 0 30px rgba(34, 197, 94, 0.5), 0 0 80px rgba(0, 123, 255, 0.3);
}

.planet.insights::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
}

.planet.culture {
    width: 85px;
    height: 85px;
    top: 6%;
    left: 60%;
    position: absolute;
    z-index: 3;
 background: radial-gradient(circle at 70% 24%, #00ff96, #008833, #00ff96);
    box-shadow: inset -20px -20px 40px rgba(255, 255, 255, 0.15), inset 20px 20px 60px rgba(0, 0, 0, 0.25), 0 0 30px rgba(34, 197, 94, 0.5), 0 0 80px rgba(0, 123, 255, 0.3);
}

.planet.strategy {
    width: 125px;
    height: 125px;
    top: 59%;
    left: 26%;
    position: absolute;
    z-index: 3;
	background: radial-gradient(circle at 70% 24%, #00ff96, #008833, #00ff96);
    box-shadow: inset -20px -20px 40px rgba(255, 255, 255, 0.15), inset 20px 20px 60px rgba(0, 0, 0, 0.25), 0 0 30px rgba(34, 197, 94, 0.5), 0 0 80px rgba(0, 123, 255, 0.3);
}

.planet.environment {
    width: 95px;
    height: 95px;
    top: 28%;
    left: 80%;
    position: absolute;
    z-index: 3; 
	background: radial-gradient(circle at 70% 24%, #00ff96, #008833, #00ff96);
    box-shadow: inset -20px -20px 40px rgba(255, 255, 255, 0.15), inset 20px 20px 60px rgba(0, 0, 0, 0.25), 0 0 30px rgba(34, 197, 94, 0.5), 0 0 80px rgba(0, 123, 255, 0.3);
}


.planet.consumption {
    width: 95px;
    height: 95px;
    top: 21%;
    left: 14%;
    position: absolute;
    z-index: 3;
    background: radial-gradient(circle at 70% 24%, #00ff96, #008833, #00ff96);
    box-shadow:
        inset -20px -20px 40px rgba(255, 255, 255, 0.15),
        inset 20px 20px 60px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(34, 197, 94, 0.5),
        0 0 80px rgba(0, 123, 255, 0.3);
}

.planet.innovation {
    width: 140px;
    height: 140px;
    top: 67%;
    left: 53%;
    position: absolute;
    z-index: 3;
	background: radial-gradient(circle at 70% 24%, #00ff96, #008833, #00ff96);
    box-shadow: inset -20px -20px 40px rgba(255, 255, 255, 0.15), inset 20px 20px 60px rgba(0, 0, 0, 0.25), 0 0 30px rgba(34, 197, 94, 0.5), 0 0 80px rgba(0, 123, 255, 0.3);
}

.planet.perspectives {
    width: 115px;
    height: 115px;
    top: 42%;
    left: 60%;
    position: absolute;
    z-index: 9;
    background: radial-gradient(circle at 70% 24%, #00ff96, #008833, #00ff96);
    box-shadow:
        inset -20px -20px 40px rgba(255, 255, 255, 0.15),
        inset 20px 20px 60px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(34, 197, 94, 0.5),
        0 0 80px rgba(0, 123, 255, 0.3);

}

/* Orbit lines - COSMO Style */
.orbit-line {
    position: absolute;
    border: 3px solid rgba(98, 231, 147, 0.39);
	border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.orbit-line.first-ring {
    width: 36%;
    height: 49%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    top: 39%;
}

.orbit-line.second-ring {
    width: 53%;
    height: 70%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    top: 44%;
}

.orbit-line.tertiary-ring {
    width: 68%;
    height: 94%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Planet names */
.planet-name {
    position: absolute;
    color: #e2e8f0;
    font-size: 8px;
    font-weight: bold;
    text-align: center;
    white-space: normal;
    text-shadow: 1px 1px 1px rgb(0, 0, 0);
    z-index: 5;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    line-height: 1;
}

.planet.core .planet-name {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8);
    z-index: 15;
    max-width: 160px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
}

/* Adjust planet sizes to accommodate names */
.planet.insights .planet-name,
.planet.perspectives .planet-name,
.planet.innovation .planet-name,
.planet.culture .planet-name,
.planet.strategy .planet-name,
.planet.environment .planet-name,
.planet.consumption .planet-name {
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

/* Business model info tooltip - COSMO Style */
.planet-info {
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 30px;
    border-radius: 20px;
    font-size: 14px;
    max-width: 500px;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(15px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.planet-info.show {
    opacity: 1;
    visibility: visible;
}

/* Close button for tooltip */
.tooltip-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #2CDFBB;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 101;
    background-color: transparent;
}

.tooltip-close:hover {
    background-color: transparent;
    color: white;
}

.business-info h3 {
    margin: 0 0 8px 0;
    color: #2CDFBB;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.business-info .description {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    text-align: justify;
    word-wrap: break-word;
}

.business-info .type-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.business-info .type-element {
    background: linear-gradient(45deg, #2CDFBB, #2CDFBB);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

/* Responsive design - Tablets */
@media (max-width: 768px) {
    .galaxy-container {
        height: 500px;
    }

    /* Planetas ajustados para tablet - transición suave hacia móvil */
    .planet.core {
        width: 120px;
        height: 120px;
    }

    .planet.insights {
        width: 70px;
        height: 70px;
    }

    .planet.culture {
        width: 75px;
        height: 75px;
    }

    .planet.strategy {
        width: 110px;
        height: 110px;
    }

    .planet.environment {
        width: 80px;
        height: 80px;
    }

    .planet.consumption {
        width: 80px;
        height: 80px;
    }

    .planet.innovation {
        width: 120px;
        height: 120px;
    }

    .planet.perspectives {
        width: 90px;
        height: 90px;
    }

    .planet-info {
        max-width: 90%;
        min-width: 250px;
        font-size: 12px;
        padding: 20px;
    }

    .business-info .description {
        font-size: 11px;
        line-height: 1.5;
    }

    .tooltip-close {
        top: -7px;
        right: -19px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        color: #2CDFBB;
        font-size: 32px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 101;
        background-color: transparent;
    }
}

/* Mobile responsive design - hasta 640px */
@media (max-width: 640px) {
    .galaxy-container {
        height: 400px;
    }

    /* Planetas ajustados para móvil - manteniendo distribución similar a PC */
    .planet.core {
        width: 100px;
        height: 100px;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .planet.insights {
        width: 60px;
        height: 60px;
        top: 25%;
        left: 37%;
        transform: translate(-50%, -50%);
    }

    .planet.culture {
        width: 65px;
        height: 65px;
        top: 6%;
        left: 60%;
    }

    .planet.strategy {
        width: 90px;
        height: 90px;
        top: 59%;
        left: 26%;
    }

    .planet.environment {
        width: 70px;
        height: 70px;
        top: 28%;
        left: 80%;
    }

    .planet.consumption {
        width: 70px;
        height: 70px;
        top: 21%;
        left: 14%;
    }

    .planet.innovation {
        width: 100px;
        height: 100px;
        top: 67%;
        left: 53%;
    }

    .planet.perspectives {
        width: 80px;
        height: 80px;
        top: 42%;
        left: 60%;
    }

    /* Órbitas ajustadas para móvil - manteniendo proporciones similares a PC */
    .orbit-line.first-ring {
        width: 36%;
        height: 49%;
        top: 39%;
    }

    .orbit-line.second-ring {
        width: 53%;
        height: 70%;
        top: 44%;
    }

    .orbit-line.tertiary-ring {
        width: 68%;
        height: 94%;
    }

    /* Nombres de planetas ajustados */
    .planet-name {
        font-size: 6px;
    }

    .planet.core .planet-name {
        font-size: 14px;
        max-width: 120px;
    }

    .planet.insights .planet-name,
    .planet.perspectives .planet-name,
    .planet.innovation .planet-name,
    .planet.culture .planet-name,
    .planet.strategy .planet-name,
    .planet.environment .planet-name,
    .planet.consumption .planet-name {
        font-size: 10px;
    }

    /* Tooltip ajustado para móvil */
    .planet-info {
        max-width: 95%;
        min-width: 200px;
        font-size: 11px;
        padding: 15px;
    }

    .business-info h3 {
        font-size: 16px;
    }

    .business-info .description {
        font-size: 10px;
        line-height: 1.4;
    }

    .business-info .type-element {
        font-size: 9px;
        padding: 4px 10px;
    }
}