:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --bg-color: #f5f7fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: var(--primary-gradient);
    color: white;
    height: 75px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    opacity: 0.9;
    transition: 0.3s;
    line-height: 1;
}

.nav-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.user-welcome {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

/* Dropdown */
.dropdown { position: relative; }

.dropbtn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-header {
    padding: 15px 20px;
    font-size: 12px;
    color: #888;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
}

.dropdown-content a, .logout-btn {
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
}

.dropdown-content a:hover, .logout-btn:hover {
    background: #f5f7fa;
    color: #6a11cb;
}

.main-content { flex: 1; padding: 40px 20px; width: 100%; max-width: 1200px; margin: 0 auto; }

.main-footer { text-align: center; padding: 5px; color: #888; font-size: 14px; }

/* --- RESPONSIVE TELEFONOS --- */
@media (max-width: 576px) {
    .navbar { height: 60px; padding: 0 15px; }
    
    .nav-left { gap: 15px; }

    .nav-logo-img { height: 35px; }

    .nav-link {
        font-size: 14px;
        font-weight: 500;
    }

    .user-welcome { display: none; }

    .dropbtn { padding: 6px 10px; font-size: 16px; }
}