/* Ajustes generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow: hidden; /* Eliminar scroll del navegador */
}

/* Encabezado */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    height: 50px;
    margin-right: 20px;
    margin-top: 5px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
}

/* Hero */
.hero {
    background: url('hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.main-title {
    font-size: 3em;
    margin-bottom: 10px;
    animation: fadeIn 1s;
}

.description {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.buttons {
    margin-top: 20px;
}

.button {
    display: inline-block;
    margin: 0 10px;
    padding: 15px 30px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.gallery {
    text-align: center;
    margin: 40px 0;
}

.gallery-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-images img {
    width: 300px;
    height: 150px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-images img:hover {
    transform: scale(1.1);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Text Shadow */
.hero h1 {
    font-size: 64px;
    color: white;
    text-shadow: 
        2px 2px 0 rgba(128, 0, 128, 1),
        -2px -2px 0 rgba(128, 0, 128, 1),
        2px -2px 0 rgba(128, 0, 128, 1),
        -2px 2px 0 rgba(128, 0, 128, 1);
}

.hero p {
    font-size: 32px;
    color: white;
    text-shadow: 
        1px 1px 0 rgba(128, 0, 128, 1),
        -1px -1px 0 rgba(128, 0, 128, 1),
        1px -1px 0 rgba(128, 0, 128, 1),
        -1px 1px 0 rgba(128, 0, 128, 1);
}

/* Dashboard y Menú Lateral */
.dashboard {
    display: flex;
    height: 100vh; /* Usar toda la altura de la ventana */
    overflow: hidden; /* Evitar el desbordamiento del contenedor */
}

.sidebar {
    width: 220px; /* Ancho fijo */
    background-color: #333;
    color: #fff;
    padding: 20px;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    border-radius: 10px;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0; /* Evitar que se reduzca */
}

.sidebar h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #007BFF;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
    transition: background-color 0.3s ease;
}

.sidebar ul li:hover {
    background-color: #444;
    border-radius: 5px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #007BFF;
    text-decoration: none;
}

.content {
    flex-grow: 1; /* Toma el espacio restante */
    padding: 20px;
    overflow-y: auto; /* Habilitar scroll solo en el contenido */
    box-sizing: border-box;
    width: calc(100% - 240px); /* Ancho ajustado para la sidebar */
    max-width: 100%; /* Asegura que no exceda el ancho del contenedor */
}

/* Estilo para el header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #282c34;
    color: white;
}

.header-user {
    position: relative;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    color: black;
    min-width: 100px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

main {
    flex: 1;
    overflow-y: auto; /* Permite desplazamiento vertical dentro de main */
    -ms-overflow-style: none; /* Oculta barra en IE y Edge */
    scrollbar-width: none; /* Oculta barra en Firefox */
}

main::-webkit-scrollbar {
    display: none; /* Oculta barra en Chrome, Safari y Edge */
}

#main-content, .sidebar {
    height: 100%; /* Ocupa todo el espacio del contenedor */
    overflow-y: auto; /* Desplazamiento interno */
    -ms-overflow-style: none; /* IE y Edge */
    scrollbar-width: none; /* Firefox */
}

#main-content {
    flex-grow: 1; /* Toma el espacio restante */
    padding: 20px;
    overflow-y: auto; /* Habilitar scroll solo en el contenido */
    box-sizing: border-box;
    max-width: calc(100% - 220px); /* Restar el ancho de la sidebar */
    width: 100%; /* Hacer que use el 100% de su contenedor */
    transition: transform 0.3s ease; /* Suaviza el cambio de tamaño */
}
#main-content::-webkit-scrollbar, .sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Edge */
}
