:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --border: #e2e4e9;
    --text: #1f2430;
    --text-muted: #6b7280;
    --accent: #2451c4;
    --accent-hover: #1c3fa0;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

button, input, select {
    font-family: inherit;
    font-size: 1rem;
}

/* Login */

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    text-align: center;
}

.login-card label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-card input {
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}

.login-card .error {
    background: #fdeceb;
    color: #b3261e;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 0;
}

.login-card button {
    margin-top: 0.5rem;
    padding: 0.65rem;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.login-card button:hover {
    background: var(--accent-hover);
}

/* Topbar */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.empresa-switch select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.link-button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

.link-button:hover {
    color: var(--text);
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Cards grid */

.cards-grid {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s, transform 0.15s;
}

.card-fixed {
    border-color: var(--accent);
    cursor: pointer;
}

.card-fixed:hover {
    box-shadow: 0 4px 14px rgba(36, 81, 196, 0.18);
    transform: translateY(-2px);
}

.card-dummy {
    opacity: 0.6;
}

.card-icon {
    font-size: 2rem;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

/* Empty state */

.empty-state {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 380px;
}

.empty-state button {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
}

/* Dashboard stub */

.dashboard-stub {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}
