
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
}

:root {
    --bg: #111;
    --card: #1a1a1a;
    --text: #ffffff;
    --muted: #888;
    --accent: #444;
    --accent-2: #f59e0b;
    --border: #333;
    --shadow: 0 6px 20px rgba(0, 0, 0, .4);
    --radius: 8px;
    --font: 'Trebuchet MS', sans-serif;
}


body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}


.app-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.muted {
    color: var(--muted);
    text-align: center;
    margin-bottom: 20px;
}

/* --- CARD --- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

/* --- INPUTS --- */
.input {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    color: white;
    margin-bottom: 12px;
}

.input::placeholder { color: #666; }
.input:focus { outline: none; border-color: #666; }

/* --- BOTONES --- */
.btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover { background: #666; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(1); }

.btn-sm { width: auto; padding: 8px 16px; font-size: 0.85rem; }
.btn-success { background: #f59e0b; }

/* --- RESULTADO --- */
.resultado {
    margin-top: 14px;
    border: 1px dashed #444;
    border-radius: 8px;
    padding: 12px;
    min-height: 48px;
    line-height: 1.3;
    font-size: 0.9rem;
}

.exitoConexion { background: #0a3; }
.errorConexion { background: #2a0a0a; border-color: #7f1d1d; color: #fca5a5; }

/* --- LOGO --- */
.logo img {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.contenedor {
    width: 100%;
    max-width: 700px;
    padding: 20px;
    text-align: center;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.menu button {
    padding: 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    background: #444;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.menu button:hover { background: #666; }

/* --- UTILS --- */
.hidden { display: none !important; }
