/* --- assets/css/indexNew.css --- */

/* ==========================================================================
   1. CABECERA Y TEXTOS
   ========================================================================== */
#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
    padding-top: 0.5em;
}

#header h1 {
    font-size: 3.25em;
    margin: 0 0 0.55em 0;
}

.culi-banner {
    text-align: center;
    color: #f5c842;
    font-size: 0.85em;
    margin-bottom: 0.8em;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-submsg {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1em;
    animation: glowText 3s ease-in-out infinite alternate;
}

@keyframes glowText {
    from {
        text-shadow: 0 0 5px #1cb495;
    }

    to {
        text-shadow: 0 0 15px #1cb495;
    }
}

/* ==========================================================================
   2. SISTEMA ORBITAL / REACTOR (TAMAÑO EQUILIBRADO)
   ========================================================================== */

/* Contenedor principal: define el tamaño del sistema */
.orbit-system-container {
    position: relative;

    /* CAMBIO: Tamaño controlado (65% de la altura de la pantalla) */
    width: 65vh;
    height: 65vh;

    /* Límites en píxeles para pantallas muy grandes o muy pequeñas */
    min-width: 550px;
    min-height: 550px;
    max-width: 800px;
    max-height: 800px;

    /* Centrado en la página */
    margin: 2rem auto 4rem auto;
    display: flex;
    justify-content: center;
    align-items: center;

    /* CRÍTICO: Visible para que los iconos puedan salirse por los lados */
    overflow: visible;
}

/* EL REACTOR (NÚCLEO) */
.reactor-core {
    position: relative;
    width: 100%;
    /* Ocupa el 100% del contenedor definido arriba */
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

/* El Anillo Giratorio */
.reactor-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 4px solid rgba(245, 200, 66, 0.9);
    /* Dorado */
    border-bottom: 4px solid rgba(28, 180, 149, 0.9);
    /* Verde */
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    animation: reactorSpin 25s linear infinite;
    box-shadow: inset 0 0 50px rgba(28, 180, 149, 0.1), 0 0 40px rgba(245, 200, 66, 0.1);
}

@keyframes reactorSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- DATOS CRIPTO --- */
.reactor-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 12;
    text-align: center;
    /* Espacio superior para dejar sitio al icono de Clima */
    margin-top: 130px;
}

.crypto-main {
    margin-bottom: 1.5rem;
}

.crypto-label {
    font-size: 1.4rem;
    font-weight: 900;
    color: #f5c842;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 5px;
    opacity: 0.9;
}

/* BTC (Ajustado al nuevo tamaño) */
.crypto-value-large {
    font-family: 'Montserrat', sans-serif;
    font-size: 6.5rem;
    /* Un poco menos bestia que antes, perfecto para 65vh */
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 0.9;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: -2px;
    white-space: nowrap;
}

.crypto-main.up .crypto-value-large {
    color: #1cb495;
    text-shadow: 0 0 40px rgba(28, 180, 149, 0.3);
}

.crypto-main.down .crypto-value-large {
    color: #ff3e4d;
    text-shadow: 0 0 40px rgba(255, 62, 77, 0.3);
}

.crypto-secondary-row {
    display: flex;
    gap: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.crypto-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crypto-mini.up .val {
    color: #1cb495;
}

.crypto-mini.down .val {
    color: #ff3e4d;
}

.crypto-mini .lbl {
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 700;
    margin-bottom: 4px;
}

.crypto-mini .val {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

/* --- SATÉLITES --- */
.satellite {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 20;
    width: 140px;
    border-bottom: none !important;
}

.satellite:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
    border-bottom: none !important;
}

.satellite.private-nav-item {
    border: none !important;
}

.satellite.private-nav-item:hover {
    background-color: transparent !important;
    box-shadow: none !important;
    transform: scale(1.15);
}

.satellite.private-nav-item:hover .sat-icon {
    border-color: #1cb495 !important;
    box-shadow: 0 0 30px rgba(28, 180, 149, 0.5) !important;
    color: #fff !important;
    background: rgba(28, 180, 149, 0.15) !important;
}

.sat-icon {
    font-size: 3.5rem;
    color: #e0e0e0;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

.satellite:hover .sat-icon {
    border-color: #1cb495;
    box-shadow: 0 0 30px rgba(28, 180, 149, 0.5);
    color: #fff;
    background: rgba(28, 180, 149, 0.15);
}

.sat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* === POSICIONAMIENTO FINAL === */

/* CLIMA: Dentro del círculo, parte superior */
.sat-north {
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
}

.sat-north .sat-icon {
    width: 100px;
    height: 100px;
    font-size: 4.5rem;
    border-color: #f5c842;
}

.sat-north .sat-icon i {
    color: #f5c842;
}

.sat-north:hover {
    transform: translateX(-50%) scale(1.1);
}


/* RUTAS: Esquina Superior Izquierda (Hombro) */
.sat-west {
    top: 0;
    left: -40px;
    transform: none;
}

.sat-west:hover {
    transform: scale(1.1);
}

.sat-east {
    top: 0;
    right: -40px;
    transform: none;
}

.sat-east:hover {
    transform: scale(1.1);
}

.sat-sw {
    bottom: 0;
    left: -40px;
    transform: none;
}

.icon-private {
    color: #aaa;
    border-color: rgba(255, 255, 255, 0.1);
}

.sat-se {
    bottom: 0;
    right: -40px;
    transform: none;
}

.sat-south {
    display: none;
}


/* ==========================================================================
   3. WALLET, NFTS & AIRDROP 
   ========================================================================== */
#solBalance {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    display: none;
}

#solBalance:not(:empty) {
    display: block;
}

.wallet-btn {
    border: 1px solid #1cb495;
    background: rgba(28, 180, 149, 0.15);
    color: #fff;
}

.wallet-btn:hover {
    background-color: #1cb495;
    box-shadow: 0 4px 15px rgba(28, 180, 149, 0.4);
    color: #fff !important;
    transform: translateY(-2px);
}

#culiContainer {
    display: flex;
    text-align: center;
    margin-top: 20px;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.get-culi-style {
    background-color: #003366;
    color: white;
    border: 1px solid white;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.get-culi-style:hover {
    background-color: #005199;
}

#getCuliButton {
    display: none;
    width: 180px;
    height: 50px;
    font-size: 16px;
}

#getCuliButton:disabled {
    background-color: #555;
    opacity: 0.5;
    cursor: not-allowed;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.chapa-row {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-top: 2em;
    flex-wrap: wrap;
}

.chapa {
    text-align: center;
    max-width: 150px;
    color: white;
}

.chapa img {
    width: 100%;
    max-width: 150px;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

.chapa h3 {
    margin: 0.5em 0 0.2em 0;
    font-size: 1.1em;
    color: #ffd700;
}

.chapa p {
    margin: 0;
    font-size: 0.75em !important;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.mini-nft-btn {
    margin-top: 0.5em;
    padding: 6px 12px;
    font-size: 0.75em;
    display: inline-block;
}

#nftDetalle {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

#nftDetalle .nft-card {
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 0.9em;
    position: relative;
    z-index: 100;
}

#nftDetalle .nft-card img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

#nftDetalle .nft-card p {
    color: #ddd;
    font-size: 1em;
    line-height: 1.4;
    margin: 0.5em 0;
}

#nftDetalle .nft-card strong {
    color: #f5c842;
    font-weight: 700;
}

#nftDetalle button {
    margin-top: 20px;
    width: 100%;
    font-size: 1em;
}

.rain-culi {
    position: fixed;
    top: -50px;
    height: auto;
    pointer-events: none;
    z-index: 9999;
    animation: culiFall linear 2.4s forwards;
}

@keyframes culiFall {
    0% {
        transform: translateY(-150%);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh);
        opacity: 0.8;
    }
}


/* --- 2. RECUPERAR MOVIMIENTO DEL FONDO (Modificado) --- */
/* Nueva animación: Zoom + Movimiento INVERTIDO */
@keyframes bgPan {
    0% {
        transform: scale(1) translate(0, 0);
    }

    25% {
        /* Antes era -2% (izquierda), ahora 2% (derecha) */
        transform: scale(1.1) translate(2%, 1%);
    }

    50% {
        /* Antes era -1%, ahora 1% */
        transform: scale(1.15) translate(1%, 3%);
    }

    75% {
        /* Antes era 2%, ahora -2% */
        transform: scale(1.2) translate(-2%, -1%);
    }

    100% {
        transform: scale(1.25) translate(0, 0);
    }
}

/* Aplicar animación */
#bg div.visible {
    /* VELOCIDAD: Cambia '45s' por otro valor.
       - Menos segundos (ej. 20s) = Más RÁPIDO
       - Más segundos (ej. 60s) = Más LENTO */
    animation: bgPan 45s linear infinite !important;
}

/* ==========================================================================
   7. RESPONSIVE MÓVIL (TRANSFORMACIÓN A PILA VERTICAL)
   ========================================================================== */

@media screen and (max-width: 900px) {

    /* 1. Ajustes Generales de Texto */
    #header {
        /* Empujamos el contenido bastante abajo para librar la barra doble */
        padding-top: 145px !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 0 !important;
    }

    body.is-authenticated #header {
        padding-top: 90px !important;
    }

    #header h1 {
        font-size: 2em;
        line-height: 1.2;
    }

    .hero-submsg {
        font-size: 0.9em;
        padding: 0 10px;
    }

    /* 2. Contenedor del Sistema: Fluido y sin altura fija */
    .orbit-system-container {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 1.5rem 0 !important;

        /* Aseguramos que sea una columna limpia */
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: visible;
    }

    /* 3. El Núcleo: Se convierte en una tarjeta vertical */
    .reactor-core {
        width: 95%;
        /* Usar casi todo el ancho disponible */
        max-width: 400px;
        height: auto !important;
        /* Importante: Altura automática para que quepa todo */
        aspect-ratio: auto;
        /* Anular ratio cuadrado si existiera */

        border-radius: 20px;
        padding: 20px 15px 30px 15px;
        /* Padding inferior extra */
        margin-bottom: 20px;

        /* CRÍTICO: Organizar contenido en columna vertical */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .reactor-ring {
        display: none;
        /* Ocultar anillo */
    }

    /* 4. Datos Crypto (BTC): Arriba del todo */
    .reactor-data {
        margin-top: 0 !important;
        margin-bottom: 25px !important;
        /* Espacio antes de los botones */
        width: 100%;
        position: relative;
        top: auto;
    }

    .crypto-value-large {
        font-size: 3.5rem !important;
    }

    .crypto-label {
        font-size: 1.2rem;
    }

    .crypto-secondary-row {
        gap: 15px;
        padding-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* 5. SATÉLITES -> BOTONES DE LISTA */
    /* Reseteo agresivo de todas las posiciones */
    .satellite,
    .sat-north,
    .sat-west,
    .sat-east,
    .sat-sw,
    .sat-se {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 0 12px 0 !important;
        /* Margen inferior entre botones */
    }

    .satellite {
        /* Estilo del botón */
        width: 100%;
        max-width: 350px;
        /* Ancho máximo del botón */
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;

        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px;
        padding: 10px 15px;
    }

    /* Iconos dentro del botón */
    .sat-icon,
    .sat-north .sat-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.4rem !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;

        /* Centrar icono en su cajita */
        display: flex;
        align-items: center;
        justify-content: center;
        color: #e0e0e0;
    }

    /* Asegurar que el icono del clima (north) no sea gigante */
    .sat-north .sat-icon i {
        font-size: 1.4rem !important;
    }

    /* Texto del botón */
    .sat-label {
        font-size: 1rem;
        background: transparent !important;
        padding: 0 !important;
        text-shadow: none !important;
        color: #fff;
        text-align: left;
        flex: 1;
        /* Ocupar el resto del espacio */
    }

    /* Hover en móvil */
    .satellite:active {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Ocultar satélite sur si no se usa */
    .sat-south {
        display: none;
    }

    /* 6. Wallet y Otros */
    .wallet-promo-section {
        padding: 0 15px;
    }

    #solBalance {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
}

/* ==========================================================================
   8. PANTALLAS ANCHAS: EXPANSIÓN DE ÓRBITA COMPLETA (Estilo "Tech")
   ========================================================================== */

@media screen and (min-width: 1600px) {

    /* --- LADO IZQUIERDO (Rutas + Fitness) --- */

    /* 1. Mover ambos satélites a la izquierda */
    .sat-west,
    .sat-sw {
        left: -220px !important;
    }

    /* 2. Dibujar líneas conectoras (Desde el icono hacia el núcleo) */
    .sat-west::after,
    .sat-sw::after {
        content: '';
        position: absolute;
        top: 50%;
        /* Centrada verticalmente respecto al icono */
        left: 110px;
        /* Nace a la derecha del icono */
        width: 170px;
        /* Longitud de la línea */
        height: 1px;
        background: linear-gradient(90deg, #1cb495 0%, rgba(28, 180, 149, 0) 100%);
        z-index: -1;
        opacity: 0.6;
    }

    /* 3. Puntos de conexión en el núcleo (Lado Izquierdo) */
    .sat-west::before,
    .sat-sw::before {
        content: '';
        position: absolute;
        top: calc(50% - 2px);
        left: 280px;
        /* Al final de la línea, tocando el núcleo */
        width: 4px;
        height: 4px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 5px #1cb495;
    }


    /* --- LADO DERECHO (Natación + Archivos) --- */

    /* 1. Mover ambos satélites a la derecha */
    .sat-east,
    .sat-se {
        right: -220px !important;
    }

    /* 2. Dibujar líneas conectoras (Desde el icono hacia el núcleo) */
    .sat-east::before,
    .sat-se::before {
        content: '';
        position: absolute;
        top: 50%;
        right: 110px;
        width: 170px;
        height: 1px;
        background: linear-gradient(-90deg, #1cb495 0%, rgba(28, 180, 149, 0) 100%);
        z-index: -1;
        opacity: 0.6;
    }

    /* 3. Puntos de conexión en el núcleo (Lado Derecho) */
    .sat-east::after,
    .sat-se::after {
        content: '';
        position: absolute;
        top: calc(50% - 2px);
        right: 280px;
        width: 4px;
        height: 4px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 0 5px #1cb495;
    }
}

/* ==========================================================================
   9. NUEVA CÁPSULA DE NAVEGACIÓN (Reemplazo H1)
   ========================================================================== */

.nav-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* Un poco más de aire entre elementos */

    background: rgba(0, 0, 0, 0.75);
    /* Fondo un pelín más opaco para contraste */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Borde un poco más visible */
    border-bottom: 1px solid #f5c842;
    border-radius: 50px;

    /* AJUSTE DE GROSOR: De 5px a 8px vertical */
    padding: 8px 35px;

    margin: 0 auto 2rem auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);

    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Items de Navegación (Enlaces) */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;

    /* BLANCO PURO Y BRILLANTE */
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    /* Sombra sutil para despegar del fondo */

    font-family: 'Montserrat', sans-serif;

    /* TAMAÑO Y TEXTO NATURAL */
    font-size: 0.95rem;
    /* Un pelín más grande para leer mejor */
    font-weight: 600;
    /* Bajamos de 700 a 600 para que se vea menos "tosco" */

    text-transform: none;
    /* <--- IMPORTANTE: Respeta mayúsculas/minúsculas */
    text-decoration: none !important;
    border-bottom: none !important;

    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    /* Menos espaciado que en mayúsculas */
    line-height: 1;
}

.nav-item i {
    font-size: 1rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    top: -1px;
}

/* Separador Vertical */
.nav-divider {
    width: 1px;
    height: 16px;
    /* Ajustado a la nueva altura */
    background-color: rgba(255, 255, 255, 0.25);
    /* Un poco más visible */
}

/* Hover */
.nav-item:hover {
    color: #1cb495;
    /* Verde Neon */
    text-shadow: 0 0 15px rgba(28, 180, 149, 0.6);
    transform: translateY(-1px);
}

.nav-item:hover i {
    color: #f5c842;
    /* Dorado */
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(245, 200, 66, 0.5);
}

/* ==========================================================================
   RESPONSIVE: CÁPSULA EN MÓVIL (GRID 2x2)
   ========================================================================== */

@media screen and (max-width: 700px) {
    .nav-capsule {
        /* Cambiamos de fila flexible a cuadrícula */
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 columnas iguales */

        width: 90%;
        /* Ocupa casi todo el ancho */
        max-width: 350px;
        /* Que no se haga gigante */

        padding: 10px;
        /* Menos padding contenedor */
        border-radius: 20px;
        /* Bordes menos redondeados para aprovechar espacio */
        gap: 8px;
        /* Espacio entre botones */

        margin-bottom: 1.5rem;
    }

    /* Ocultamos los separadores verticales (no tienen sentido en grid) */
    .nav-divider {
        display: none;
    }

    /* Estilo de cada botón individual en móvil */
    .nav-item {
        /* Los convertimos en "teclas" o botones visuales */
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;

        padding: 8px 5px;
        justify-content: center;
        /* Centrar contenido */
        font-size: 0.8rem;
    }

    /* Pequeño efecto al tocar en móvil */
    .nav-item:active {
        background: rgba(28, 180, 149, 0.2);
        border-color: #1cb495;
    }
}