/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* Reset y variables */
:root {
    --primary-color: #6e44ff;
    --secondary-color: #ff7834;
    --bg-color: #000819;
    --text-color: #ffffff;
    --transition-speed: 0.3s;
    --orbit-animation-duration: 60s;
}

/* Estilos base */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #000819;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    overflow: hidden;
}

/* Eliminar reglas de visibilidad que pueden estar interfiriendo */
body * {
    visibility: visible;
}

/* Canvas de estrellas - Asegurar que esté en la capa correcta */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent;
    opacity: 1;
}

/* Ajustar z-index de capas principales */
.orbital-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: transparent !important; /* Forzar transparencia */
    pointer-events: auto;
}

.center-logo {
    position: absolute;
    z-index: 3;
    width: 200px;  /* Aumentado de 150px a 200px */
    height: 200px; /* Aumentado de 150px a 200px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s ease;
    overflow: hidden;
    box-shadow: 0 0 60px #ffd045,  /* Aumentado el resplandor proporcionalmente */
                0 0 120px #ffa53d,
                0 0 180px #ff7c39;
}

.center-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.center-logo span {
    position: absolute;
    color: white;
    font-size: 1.6em;  /* Aumentado de 1.4em a 1.6em para mantener proporción */
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5); /* Aumentado el sombreado */
    transition: opacity 0.3s ease;
}

/* Eliminar el pseudo-elemento anterior */
.center-logo::before {
    content: none;
}

.center-logo:hover {
    transform: scale(1.1);
}

.center-logo.expanded {
    width: 90vw;
    height: 90vh;
    border-radius: 20px;
}

.center-logo.expanded img,
.center-logo.expanded span {
    opacity: 0;
}

.chart-container {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.chart-container .modal-content {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: rgba(110,68,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.chart-container .iframe-container {
    flex: 1;
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.chart-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.chart-container h2 {
    margin: 0;
    color: white;
    font-size: 1.5em;
}

.center-logo.expanded .chart-container {
    opacity: 1;
    pointer-events: auto;
}

.center-logo.expanded span {
    opacity: 0;
}

.orbital-navigation {
    position: relative;
    width: 800px;  /* Volver al tamaño original */
    height: 800px; /* Volver al tamaño original */
    transform-style: preserve-3d;
    perspective: 2000px;
}

/* Agregar media queries para ajustar el contenedor orbital */
@media screen and (min-width: 769px) {
    .orbital-navigation {
        width: 1000px;  /* Más grande para escritorio */
        height: 1000px;
    }
}

@media screen and (max-width: 768px) {
    .orbital-navigation {
        width: 800px;
        height: 800px;
        transform: scale(0.8); /* Ajustar escala para móviles si es necesario */
    }
}

.orbital-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 90px;   /* Reducido de 120px a 90px */
    height: 90px;  /* Reducido de 120px a 90px */
    margin: -45px; /* Ajustado a la mitad del nuevo tamaño */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
    font-size: 16px; /* Reducido de 18px a 16px */
    text-align: center;
    overflow: visible; /* Cambiado de hidden a visible */
    font-family: 'Orbitron', sans-serif;
    z-index: 2; /* Asegurar que está por encima del fondo */
    
    /* Mejorar efecto de cristal */
    background: radial-gradient(
        circle at 30% 30%,
        var(--item-color) 0%,
        var(--item-color) 40%,
        var(--item-dark-color) 100%
    );
    
    /* Mejorar efecto de borde */
    border: 2px solid rgba(255, 255, 255, 0.2);
    
    /* Mejorar efecto de resplandor */
    box-shadow: 
        inset 2px 2px 15px rgba(255, 255, 255, 0.2),
        inset -2px -2px 15px rgba(0, 0, 0, 0.5),
        0 0 15px var(--glow-color),
        0 0 30px var(--glow-color);
        
    /* Efecto 3D */
    transform-style: preserve-3d;
    perspective: 1000px;

    /* Mejorar texto */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Ajuste específico para el elemento whitepaper */
#whitepaper.orbital-item {
    /* Usar las mismas dimensiones que las otras bolas */
    width: 90px;
    height: 90px;
    margin: -45px;
    border-radius: 50%;
    padding: 0;
    /* Ajustes específicos para el texto */
    font-size: 11px; /* Reducir ligeramente el tamaño de fuente */
    line-height: 1.1; /* Reducir el espaciado entre líneas */
    word-break: break-word;
    hyphens: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Heredar los mismos colores y efectos que las otras bolas */
    --glow-color: rgba(160, 82, 45, 0.5);
    --item-color: rgb(160, 82, 45);
    --item-dark-color: rgb(94, 38, 18);
}

.orbital-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(
        circle at 70% 70%,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    transform: translateZ(1px);
    z-index: 1;
    opacity: 0.5;
}

.orbital-item:hover {
    transform: scale(1.2) translateZ(30px);
    border-color: rgba(255, 255, 255, 0.4);
    background: radial-gradient(
        circle at 30% 30%,
        var(--item-color) 0%,
        var(--item-color) 60%,
        var(--item-dark-color) 100%
    );
    box-shadow: 
        inset 2px 2px 20px rgba(255, 255, 255, 0.3),
        inset -2px -2px 20px rgba(0, 0, 0, 0.6),
        0 0 25px var(--glow-color),
        0 0 50px var(--glow-color);
}

/* Animación de rotación del brillo */
@keyframes rotatePlanetGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Colores específicos para cada planeta */
#about.orbital-item { 
    --glow-color: rgba(75, 139, 190, 0.5);
    --item-color: rgb(75, 139, 190);
    --item-dark-color: rgb(45, 83, 114);
}
#apps.orbital-item { 
    --glow-color: rgba(205, 92, 92, 0.5);
    --item-color: rgb(205, 92, 92);
    --item-dark-color: rgb(139, 0, 0);
}
#tools.orbital-item { 
    --glow-color: rgba(218, 165, 32, 0.5);
    --item-color: rgb(218, 165, 32);
    --item-dark-color: rgb(153, 101, 21);
}
#news.orbital-item { 
    --glow-color: rgba(222, 184, 135, 0.5);
    --item-color: rgb(222, 184, 135);
    --item-dark-color: rgb(160, 82, 45);
}
#whitepaper.orbital-item { 
    --glow-color: rgba(160, 82, 45, 0.5);
    --item-color: rgb(160, 82, 45);
    --item-dark-color: rgb(94, 38, 18);
    border-radius: 50%; /* Restaurar la forma circular */
    width: 110px;
    height: 110px; /* Igualar altura y anchura para forma circular */
    margin: -55px; /* Ajustar margen basado en la mitad del tamaño */
    font-size: 14px; /* Ajustar tamaño de fuente si es necesario */
}

/* Secciones de contenido */
.sections-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.content-section {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 8, 25, 0.85);
    backdrop-filter: blur(10px);
    transition: right 0.5s ease-in-out;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: auto;
    padding: 1rem;
}

.content-section.active {
    right: 0;
    display: block;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Animación orbital */
@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg);
    }
}

/* Ocultar elementos antiguos */
.solar-system, 
.sun, 
.orbit, 
.planet, 
.planet-label,
nav,
header {
    display: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitRotation {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes planetPulse {
    0% { box-shadow: 0 0 20px rgba(255,255,255,0.2); }
    50% { box-shadow: 0 0 30px rgba(255,255,255,0.4); }
    100% { box-shadow: 0 0 20px rgba(255,255,255,0.2); }
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 8, 25, 0.95);
    z-index: 5;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(110,68,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal .close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Planet-specific styles */
#about-planet { background: linear-gradient(45deg, #4B8BBE, #1E90FF); }
#apps-planet { background: linear-gradient(45deg, #CD5C5C, #8B0000); }
#tools-planet { background: linear-gradient(45deg, #DAA520, #B8860B); }
#news-planet { background: linear-gradient(45deg, #DEB887, #CD853F); }
#whitepaper-planet { background: linear-gradient(45deg, #A0522D, #8B4513); }

/* New styles for the orbital navigation */
.selected-section {
    position: absolute;
    top: 16px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 16px;
}

.selected-section.hidden {
    display: none;
}

.back-button {
    background-color: white;
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

/* ...existing code... */

.chart-modal,
.chart-preview,
.chart-header,
.logo-content {
    display: none;
}

/* Ajustar el estilo de la sección de noticias */
#news .whitepaper-content {
    background: rgba(110,68,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1rem;
}

/* Eliminar reglas que ocultan contenido innecesariamente */
body > *:not(.orbital-container):not(.sections-container):not(.modal) {
    display: block;
}

/* ...existing code... */

/* Limpiar residuos y mejorar estilos */
body * {
    visibility: visible; /* Cambiar esto a visible */
}

.orbital-container,
.orbital-container *,
.sections-container,
.sections-container *,
.modal,
.modal *,
#starfield {
    visibility: visible;
}

/* Estilos para la sección de noticias */
#news .whitepaper-content {
    background: rgba(110,68,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1rem;
}

.news-date {
    color: #8892b0;
    font-size: 0.9em;
    margin-bottom: 1rem;
}

.news-highlights {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.news-highlights li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.divine-announcement {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    font-style: italic;
}

.market-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.stat-title {
    display: block;
    color: #8892b0;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
}

/* Estilos unificados para todas las secciones */
.content-section {
    /* ...existing code... */
    padding: 1rem;
}

.content-section > h2 {
    margin-bottom: 2rem;
    font-size: 2em;
    text-align: center;
}

.content-section > div {
    background: rgba(110,68,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos unificados para las tarjetas y elementos */
.app-card, .tool-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.app-card:hover, .tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
}

/* Estilos para las imágenes en Apps */
.app-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Ajustes para el grid de contenido */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Estilos para el modal de discípulos */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 8, 25, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(110,68,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.weekly-top {
    margin-top: 2rem;
}

.disciple-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.disciple-card .rank {
    font-size: 1.5em;
    min-width: 40px;
}

.disciple-card h4 {
    margin: 0;
    flex-grow: 1;
}

.disciple-card p {
    margin: 0.5rem 0;
}

.rating-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

/* ...existing code... */

/* Estilos para el botón de información */
.info-btn {
    background: rgba(255, 120, 52, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 0.25rem;
}

.info-btn:hover {
    background: rgba(255, 120, 52, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 120, 52, 0.2);
}

.info-btn:active {
    transform: translateY(0);
}

/* ...existing code... */

/* Estilos para las secciones de información */
.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.info-section ul {
    margin-left: 0;
    padding-left: 0;
}

.info-section ul li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-section ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ...existing code... */

/* Estilos para los botones de Tools */
.analysis-btn {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, 
        rgba(110, 68, 255, 0.2), 
        rgba(255, 120, 52, 0.2));
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.analysis-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.analysis-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 68, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, 
        rgba(110, 68, 255, 0.3), 
        rgba(255, 120, 52, 0.3));
}

.analysis-btn:hover::before {
    left: 100%;
}

.analysis-btn:active {
    transform: translateY(0);
}

.analysis-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Estilo específico para el botón SOON */
.analysis-btn:disabled,
.analysis-btn[disabled] {
    background: linear-gradient(135deg, 
        rgba(110, 68, 255, 0.1), 
        rgba(255, 120, 52, 0.1));
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.5);
}

.analysis-btn:disabled:hover,
.analysis-btn[disabled]:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* ...existing code... */

.modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal .close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Eliminar los estilos del header */
header {
    display: none;
}

/* Actualizar estilos del footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 1rem;
    background: rgba(0, 8, 25, 0.85);
    backdrop-filter: blur(10px);
}

.footer-content {
    text-align: center;
}

.footer-content .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-content .header-text {
    font-size: 1.1em;
    margin: 0.5rem 0;
}

.footer-info {
    margin-top: 1rem;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.celestial-love {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.coordinates {
    margin-top: 0.5rem;
    color: var(--secondary-color);
    font-family: monospace;
}

/* ...existing code... */

/* Actualizar estilos para el título cinematográfico */
.space-title {
    position: fixed;
    top: 5%; /* Cambiado de 50% a 5% */
    left: 50%;
    transform: translate(-50%, 0); /* Eliminado el translateY */
    z-index: 2;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.cinematic-title {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Aumentado el espacio entre líneas */
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.main-title {
    font-size: 3rem; /* Aumentado de 2.5rem a 3rem */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(110, 68, 255, 0.5),
                 0 0 20px rgba(110, 68, 255, 0.3),
                 0 0 30px rgba(110, 68, 255, 0.2);
    transform: perspective(500px) translateZ(0);
    animation: titleFloat 8s ease-in-out infinite;
}

.sub-title {
    font-size: 1.8rem; /* Aumentado de 1.4rem a 1.8rem */
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 15px rgba(255, 120, 52, 0.5);
    transform: perspective(500px) translateZ(0);
    animation: titleFloat 8s ease-in-out infinite reverse;
}

/* ...existing code... */

@keyframes titleFloat {
    0%, 100% {
        transform: perspective(500px) translateZ(0);
        opacity: 0.8;
    }
    50% {
        transform: perspective(500px) translateZ(50px);
        opacity: 1;
    }
}

/* ...existing code... */
