/* ==========================================
   PALETA DE COLORES (URAVEX LIGHT THEME)
   ========================================== */
:root {
    --bg-app: #F5F4FA; /* Morado blanco muy sutil (Fondo general) */
    --surface: #FFFFFF; /* Cajas y tarjetas blancas */
    
    --text-dark: #1A1D27; 
    --text-muted: #8E95A7; 
    
    --primary-purple: #7B40F2; 
    --primary-purple-light: #F0EBFF; 
    
    --cyan: #00E6F2; 
    --green: #0BB783; 
    --green-light: #E6F7F4; 
    --pink: #F23D7F; 
    
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.03); 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-app);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 110px; /* Aumentado para que el contenido no quede detrás del menú flotante */
}

.app { width: 100%; max-width: 480px; margin: 0 auto; position: relative; min-height: 100vh; }

/* ==========================================
   NUEVO MENÚ INFERIOR (ESTILO BURBUJA FLOTANTE)
   ========================================== */
.bottom-nav {
    position: fixed;
    bottom: 20px; /* Lo separa del fondo para que flote */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px); /* Deja márgenes a los lados */
    max-width: 448px;
    height: 70px;
    background: var(--surface); /* Burbuja blanca */
    border-radius: 35px; /* Bordes totalmente redondeados */
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(123, 64, 242, 0.15); /* Sombra lila para el efecto flotante */
    z-index: 1000;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #A0A5B5; /* Gris lila para los inactivos */
    font-size: 10px;
    font-weight: 500;
    width: 65px;
    height: 56px; /* Altura interior ajustada para no tocar los bordes */
    border-radius: 20px; /* Bordes redondos para el botón activo */
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Efecto cuando está activo (Botón completo en lila) */
.nav-item.active {
    background: var(--primary-purple-light); /* Fondo para todo el botón */
    color: var(--primary-purple);
    font-weight: 600;
}

.nav-item.active .nav-icon {
    color: var(--primary-purple);
}

/* ==========================================
   ANIMACIÓN TICKER Y FORMULARIOS
   ========================================== */
.actividad-container {
    height: 150px; 
    overflow: hidden;
    position: relative;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}
.actividad-scroll {
    animation: scrollVertical 15s linear infinite;
    display: flex;
    flex-direction: column;
}
.actividad-container:hover .actividad-scroll { animation-play-state: paused; }
@keyframes scrollVertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* ==========================================
   NUEVO DISEÑO DE LOGIN / REGISTRO
   ========================================== */
.auth-page {
    min-height: 100vh;
    background-color: #F8F9FB;
    display: flex;
    flex-direction: column;
}
.auth-hero {
    height: 42vh;
    background: url('img/auth-bg.jpg') center/cover no-repeat, linear-gradient(135deg, #F4F1FF 0%, #E6E0FF 100%);
    position: relative;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.auth-hero-content {
    position: relative;
    z-index: 2;
}
.auth-card {
    flex: 1;
    background: var(--surface);
    border-radius: 32px 32px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 3;
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(123, 64, 242, 0.08);
}
.bolt-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-purple-light);
    color: var(--primary-purple);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.auth-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.auth-card h2 span {
    color: var(--primary-purple);
}
.auth-card > p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.auth-input-group {
    width: 100%;
    display: flex;
    align-items: center;
    border: 1.5px solid #F0F2F5;
    border-radius: 16px;
    padding: 0 16px;
    height: 54px;
    margin-bottom: 16px;
    transition: all 0.3s;
}
.auth-input-group:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px var(--primary-purple-light);
}
.auth-input-group i.left-icon {
    color: var(--primary-purple);
    font-size: 18px;
    margin-right: 12px;
}
.auth-input-group input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
}
.auth-input-group input::placeholder {
    color: #A0A5B5;
}
.auth-input-group i.right-icon {
    color: #A0A5B5;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}
.auth-input-group i.right-icon:hover {
    color: var(--primary-purple);
}
.auth-options {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 24px;
}
.auth-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    cursor: pointer;
}
.auth-options input[type="checkbox"] {
    accent-color: var(--primary-purple);
    width: 16px;
    height: 16px;
    cursor: pointer;
    border-radius: 4px;
}
.auth-options a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}
.btn-auth {
    width: 100%;
    height: 54px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(123, 64, 242, 0.3);
    transition: transform 0.2s;
}
.btn-auth:active {
    transform: scale(0.98);
}
.btn-auth i {
    font-size: 14px;
    background: transparent;
    border: 1px solid white;
    border-radius: 50%;
    padding: 3px;
    display: grid;
    place-items: center;
}
.auth-divider {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--primary-purple);
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #F0F2F5;
}
.auth-divider span {
    padding: 0 10px;
    font-size: 14px;
}
.auth-link-bottom {
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    padding-top: 20px;
}
.auth-link-bottom b {
    color: var(--primary-purple);
    font-weight: 700;
}