:root {
    --bg-deep: #050608;
    --glass-bg: rgba(15, 17, 22, 0.9);
    --neon-blue: #00d2ff;
    --accent-cyan: #22d3ee;
    --border-white: rgba(255, 255, 255, 0.1);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Fondo Animado Sutil */
.bg-mesh {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.07), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(157, 80, 187, 0.07), transparent 40%);
    z-index: -1;
}

/* Navbar Unificado */
.navbar {
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-white);
    padding: 15px 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--neon-blue) !important;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim) !important;
    transition: 0.3s;
}

.nav-link:hover { color: var(--neon-blue) !important; }

/* Botón de Lenguaje */
#lang-switch {
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s;
}

#lang-switch:hover {
    background: var(--neon-blue);
    color: var(--bg-deep);
}

.token-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-white);
    border-radius: 28px;
    padding: 45px;
    backdrop-filter: blur(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.token-card::after{
    content:"";
    position:absolute;
    inset:-1px;
    background: radial-gradient(
        520px circle at var(--x, 50%) var(--y, 50%),
        rgba(0,210,255,0.14),
        transparent 45%
    );
    opacity:0;
    transition: opacity .35s ease;
    pointer-events:none;
    z-index:0;
}

.token-card > *{ position:relative; z-index:1; }
.token-card:hover::after{ opacity:1; }

.token-card:hover {
    transform: translateY(-12px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.15);
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-weight: 500;
}

.btn-act {
    background: linear-gradient(135deg, #00ff88 0%, #00bd68 100%) !important;
    color: #050608 !important;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 16px 40px;
    border-radius: 12px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-act:hover {
    background: #00ff88 !important;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    transform: translateY(-4px) scale(1.02);
    color: #000000 !important;
}

.btn-act::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: 0.5s;
}

.btn-act:hover::before { left: 100%; }
.btn-act:active { transform: translateY(-1px) scale(0.98); }

/* --- CONFIGURACIÓN FLIP CARDS (POR CLICK) --- */
.flip-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
    display: block;
    cursor: pointer; /* Para que el usuario sepa que puede hacer click */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* En lugar de :hover, usamos la clase .flipped */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 28px;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 30px;
}

.flip-card-front {
    background: var(--glass-bg);
    border: 1px solid var(--border-white);
    z-index: 2;
    transform: rotateY(0deg);
}

.flip-card-back {
    background: linear-gradient(145deg, rgba(5, 79, 125, 0.4), rgba(15, 17, 22, 0.95));
    color: white;
    transform: rotateY(180deg);
    border: 1px solid var(--neon-blue);
}

/* --- RESTO DEL CÓDIGO (INFO CARDS, LOGO, FOOTER, MODAL) --- */
.orbitron { font-family: 'Orbitron', sans-serif; letter-spacing: 1px; }

.info-card {
    background: rgba(15, 17, 22, 0.4);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    border-color: #00f3ff;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.2);
    transform: translateY(-8px);
}

section { padding: 100px 0; position: relative; }

.section-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 60px;
    color: #fff;
}

.bg-divider {
    background-color: #050608;
    position: relative;
    z-index: 1;
    padding: 100px 0;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.bg-divider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to bottom, rgba(0, 210, 255, 0.05), transparent);
    pointer-events: none;
}

.badge.text-danger:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3);
    transform: scale(1.05);
}

.modal-backdrop { background-color: #000 !important; }

.modal-backdrop.show {
    opacity: 0.85 !important;
    backdrop-filter: blur(8px);
}

.logo-container { position: relative; overflow: hidden; }

.logo-v2::after {
    content: "";
    position: absolute;
    top: -50%; left: -60%; width: 20%; height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.7s;
    animation: scan 5s infinite;
}

@keyframes scan {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-grid{
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 90px 90px;
    opacity: 0.10;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,1), rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 85%);
}

@media (prefers-reduced-motion: reduce){
    * { animation:none !important; transition:none !important; }
}

footer {
    background: #000;
    border-top: 1px solid var(--border-white);
    padding: 80px 0 40px;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 8px;
}

.footer-link:hover { color: var(--neon-blue); padding-left: 5px; }

.x-small { font-size: 0.65rem; color: #444; }

.btn-verify {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.4s;
}

.btn-verify:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
    color: white;
}

.nav-link.active, .footer-link.active {
    color: var(--neon-blue) !important;
    font-weight: 700;
    position: relative;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

.nav-link.active::after, .footer-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    box-shadow: 0 2px 10px var(--neon-blue);
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.5; transform: scaleX(0.8); }
}

.act-link {
    color: #ffc107 !important; /* Cambia el color del enlace a un tono deseado */
    text-decoration: none; /* Elimina el subrayado */
}

.act-link:hover {
    color: #ffc107; /* Cambia el color al pasar el cursor */
    text-decoration: underline; /* Añade subrayado al pasar el cursor */
}

.act-text {
    color: #ff6b6b !important;
}