:root {
    --primary: #1a3a6b;
    --primary-light: #2a5298;
    --primary-dark: #0e2240;
    --accent: #e8a418;
    --accent-light: #f5c842;
    --bg: #f4f6f9;
    --bg-white: #ffffff;
    --text: #2c3e50;
    --text-light: #6b7b8d;
    --border: #dce1e8;
    --border-light: #eef1f5;
    --success: #27ae60;
    --success-bg: #eafaf1;
    --warning: #f39c12;
    --warning-bg: #fef9e7;
    --danger: #e74c3c;
    --danger-bg: #fdedec;
    --info: #3498db;
    --info-bg: #ebf5fb;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --container-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    padding: 30px 0;
}

.header {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: var(--accent-light);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.6rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-perfil {
    color: var(--accent-light) !important;
    font-weight: 600;
}

.btn-logout {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #ff8a80 !important;
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.4) !important;
}

.btn-login, .btn-register {
    font-weight: 600;
}

.btn-register {
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
}

.btn-register:hover {
    background: var(--accent-light) !important;
}

.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
}
