:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --primary-orange: #D97D00; /* Naranja botones */
    --gradient-top: #2D1A00;
    --gradient-bottom: #D97D00;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* Evita scroll en todo el body, lo manejamos por vistas */
}

#app-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Sistema de Vistas */
.view {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
}

.view.active {
    display: flex;
}

/* Utilidades de Fondo */
.dark-bg { background-color: var(--bg-dark); }
.gradient-bg {
    background: linear-gradient(to bottom, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
}

/* --- ESTILOS DE LOGIN --- */
.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 4rem;
}

.logo-icon {
    color: #FACC15; /* Amarillo icono */
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transform: rotate(-45deg);
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--text-muted);
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px 0;
    font-size: 1rem;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 10px;
    color: var(--text-muted);
}

.btn-primary {
    width: 100%;
    background-color: #C28E00; /* Color botón Iniciar Sesión */
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.forgot-link {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- ESTILOS GENERALES (Headers y Bottom Nav) --- */
.app-header {
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px 80px 15px; /* Espacio para el nav abajo */
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #333;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary-orange);
}

.hidden { display: none !important; }