/* Estilos para index.html: diseño más elaborado conforme al guion */
/* Reseteo y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
}

body {
    background-color: #ecf0f1;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 100vh;
    grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background-color: #34495e;
    color: #ecf0f1;
    grid-area: header;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
}

.site-header .container {
    display: flex;
    align-items: center;
    flex-direction: column ;
    padding: 0;

}

.site-header h1 {
    font-size: 1.75rem;
    text-align: left;

}

img.logo {
    height: 60px;
    width: auto;
    margin-left: 1.5rem;
    padding: 0.5rem;
    display: flex;
}

.site-header .cab_subtitle {
    font-size: 1rem;
    margin: 0;
    color: #a0a0a0;
}
.site-header .horario {
    font-size: 12px;
    align-self: flex-end;
    color: #ccc;
    padding: 0 1rem;
}

/* Navegación */
.main-nav {
    background-color: #2c3e50;
    grid-area: nav;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li+li {
    margin-left: 1rem;
}

.main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #ecf0f1;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.main-nav a:hover {
    background-color: #1abc9c;
}

.main-nav .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.main-nav .user-info span {
    font-weight: bold;
    color: #ecf0f1;
    display: flex;
    align-items: center;
}

.main-nav .user-info a.boton-salir {
    background-color: #e74c3c;
    color: white;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav .user-info a.boton-salir:hover {
    background-color: #c0392b;
}

.main-nav .user-info a.boton-salir:active {
    background-color: #e74c3c;
}

.main-nav .user-info a.boton-salir:focus {
    outline: 2px solid #1abc9c;
    outline-offset: 2px;
}

/* Contenido principal */
.main-content {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
    width: 90%;
    max-width: 1200px;
}

.content {
    flex: 3 1 600px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #34495e;
    display: flex;
    justify-content: center;
}

.content p {
    margin-bottom: 1.5rem;
}

.sidebar {
    flex: 1 1 250px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar section+section {
    margin-top: 2rem;
}

.sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #34495e;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.75rem;
}
.sidebar section {
    margin-bottom: 2rem;
}

.sidebar hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

.sidebar-user {
    text-align: center;
}

.perfil-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #1abc9c;
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: #34495e;
    color: #bdc3c7;
    grid-area: footer;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: #1abc9c;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #16a085;
}

.boton {
    display: inline-block;
    background-color: #004080;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}
.perfil-dropdown {
    position: relative;
    display: inline-block;
}

.perfil-btn {
    background-color: transparent;
    color: #ecf0f1;
    border: none;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center; /* ✅ centrado vertical */
    height: 100%;
}


.perfil-btn:hover {
    background-color: #1abc9c;
    border-radius: 4px;
}

.perfil-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #2c3e50;
    border: 1px solid #1abc9c;
    min-width: 160px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
}

.perfil-menu a {
    color: white;
    padding: 10px;
    display: block;
    text-decoration: none;
}

.perfil-menu a:hover {
    background-color: #1abc9c;
}

.perfil-dropdown:hover .perfil-menu {
    display: block;
}
