/* --- Variables y Reset --- */
:root {
    --primary: #7b2ff7;
    --secondary: #a64dff;
    --bg-dark: #05000a;
    --glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(123, 47, 247, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at center, #1a0033 0%, #0a0015 40%, #000000 100%);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* --- Header --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.circle {
    background: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-login-nav {
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 6px 18px;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-login-nav:hover {
    background: var(--primary);
    color: white;
}

/* --- Hero y Planeta Grande --- */
.bienvenida-usuario {
    padding: 60px 0 20px 0;
}

.planeta-grande {
    width: 350px; /* Tamaño grande */
    max-width: 85%;
    filter: drop-shadow(0 0 30px var(--primary));
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

h1 { font-size: 2.8rem; margin-bottom: 10px; }
.subtitulo { color: #aaa; font-size: 1.1rem; margin-bottom: 40px; }

/* --- CARRUSEL INFINITO --- */
.carousel-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scroll-loop 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused; /* Se detiene al pasar el mouse */
}

@keyframes scroll-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.beneficio-card {
    flex: 0 0 300px;
    background: var(--glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.beneficio-card:hover {
    background: rgba(123, 47, 247, 0.15);
    transform: translateY(-5px);
}

.beneficio-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.beneficio-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.beneficio-card p { font-size: 0.9rem; color: #ccc; }

/* --- Accesos y Roles --- */
.separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-glass), transparent);
    margin: 40px 0;
}

.roles-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.role-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    width: 340px;
    transition: 0.3s;
    text-align: left;
}

.role-card:hover {
    background: var(--glass);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(123, 47, 247, 0.2);
}

.role-card.admin {
    border-style: dashed; /* Diferenciar admin visualmente */
}

.role-icon { font-size: 2rem; }
.role-info h4 { margin-bottom: 4px; }
.role-info p { font-size: 0.85rem; color: #888; }

/* --- CTA Registro --- */
.cta-registro { margin-top: 50px; }
.cta-registro p { margin-bottom: 15px; color: #aaa; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(123, 47, 247, 0.4);
}

.footer {
    padding: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .planeta-grande { width: 250px; }
    h1 { font-size: 2rem; }
    .role-card { width: 100%; }
}