/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding-top: 60px; /* Para compensar el menú fijo */
}

.header {
    background-color: #2c3e50;
    color: #ecf0f1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-brand:hover {
    color: #1abc9c;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top:1%;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;   
    color: #ecf0f1;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.nav-link:hover {   
    background-color: #1abc9c;
    color: #ffffff;
}

.nav-submenu {   
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.nav-item:hover .nav-submenu {
    display: block;
}

.nav-submenu li {
    padding: 0;
}

.nav-sublink {
    text-decoration: none;
    color: #ecf0f1;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s;
}

.nav-sublink:hover {
    background-color: #1abc9c;
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.5rem;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

.user-icon {
    text-decoration: none;
    color: #ecf0f1;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.user-icon:hover {
    color: #1abc9c;
}

.dropdown-menu {
    min-width: 160px;
    background-color: #34495e;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.dropdown-item {
    padding: 10px 15px;
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background-color: #1abc9c;
    color: #ffffff;
}

.dropdown-divider {
    height: 1px;
    margin: 5px 0;
    background-color: #ecf0f1;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: #2c3e50;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

.login-container {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem 1rem;
    }

h2 {
    text-align: center;
    }

.form-group {
    margin-bottom: 15px;
    }

.form-group label {
    display: block;
    margin-bottom: 5px;
    margin-left: 3%;
    }

.form-group input {
    width: 90%;
    margin-left:3%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    }

.form-group button {
    width: 50%;
    margin-left:25%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    }

.form-group button:hover {
    background-color: #218838;
    }

@media (max-width: 600px) {
    .login-container {
    padding: 15px;
    }
h2 {
    font-size: 1.5em;
    }
    }

.tituloCabeceraLogin{
    width:86%;
    margin-left: 7%;
    margin-top: 1%;
    color:#1565C0;
    font-size: 20pt;
    font-weight: bold;
    text-align: center;
   font-family: "Consolas", monospace;
  margin-bottom:5%;
  }

.footer {
    background-color: #F5F5F5;
    padding: 10px 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
    position: fixed;
    width: 100%;
    bottom: 0;
}
.content {
    margin-left: 100px;
    margin-right:100px;
    margin-top:5%;
    padding: 80px 20px 20px 20px; /* Ajuste para navbar */
    transition: margin-left 0.3s;
    flex-grow: 1;
    }
.content.collapsed {
    margin-left: 80px;
    }
.content h1 {
    margin-bottom: 20px;
    }
.container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    }
