body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background: #0a0a12;
    color: white;
    scroll-behavior: smooth;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(15,15,25,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    color: #00f7ff;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #00f7ff;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}


/* HERO PRINCIPAL */
.hero {
    position: relative;          /* necesario para partículas */
    overflow: hidden;            /* evita desbordes */
    min-height: 75vh;            /* más compacto que 90vh */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #1f1f3d, #0a0a12);
    text-align: center;
    padding: 120px 20px 80px 20px; /* para dejar espacio arriba y abajo */
}

/* Partículas fondo */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Contenido encima de partículas */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Título animado */
.hero h2 {
    font-size: 3rem;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00f7ff; }
    to { text-shadow: 0 0 25px #ff00ff; }
}

/* Botón principal */
button {
    background: linear-gradient(45deg, #00f7ff, #ff00ff);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
}

/* ESTADÍSTICAS DEL HERO */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hero-stats h3 {
    font-size: 2rem;
    color: #00f7ff;
}

.hero-stats p {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* SECTIONS */
.section {
    padding: 80px 20px;
    text-align: center;
}

/* CARDS */
.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: #141426;
    padding: 25px;
    border-radius: 15px;
    width: 280px;
    position: relative;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #00f7ff;
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff00ff;
    padding: 5px 10px;
    font-size: 0.7rem;
    border-radius: 20px;
}

/* RANKING */
.ranking-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: auto;
}

.ranking-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    background: #141426;
    border-radius: 10px;
}

.points {
    color: #00f7ff;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin: auto;
}

input, select {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #1f1f3d;
    color: white;
}

#mensaje {
    margin-top: 15px;
    font-weight: bold;
    color: #00ff99;
}

/* FOOTER */
footer {
    background: #111;
    padding: 20px;
    margin-top: 50px;
}




.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;        /* tamaño ideal para header */
    height: 60px;
    object-fit: contain;
    transition: 0.3s;   /* Transición suave para el hover */
}

.logo img:hover {
    transform: rotate(5deg) scale(1.1); /* Efecto de rotación y escala */
}

.logo span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00f7ff;
}

