:root {
    --naranja-humanizar: #f07d00;
    --negro-texto: #333333;
    --gris-fondo: #f4f4f4;
    --blanco: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--negro-texto);
    background-color: var(--blanco);
}

a { text-decoration: none; color: inherit; }

/* HEADER */
.header {
    text-align: center;
    padding: 20px 0;
}
.header img {
    max-width: 250px;
}

/* NAVBAR */
.navbar {
    background-color: var(--naranja-humanizar);
    display: flex;
    justify-content: center;
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.navbar li {
    position: relative;
}
.navbar a {
    display: block;
    color: var(--blanco);
    padding: 15px 20px;
    font-weight: bold;
    font-size: 15px;
}
.navbar a:hover {
    background-color: #d66f00;
}

/* DROPDOWN */
.dropdown-menu {
    display: none !important; /* El !important fuerza a que se oculte pase lo que pase */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--blanco);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 1000;
    list-style: none;
    padding: 0;
}

/* Y esto para que aparezca al pasar el mouse */
.navbar li:hover .dropdown-menu {
    display: block !important; 
}

.navbar li:hover .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    color: var(--negro-texto);
    padding: 12px 15px;
    font-weight: normal;
    border-bottom: 1px solid #eee;
}
.dropdown-menu a:hover {
    background-color: var(--gris-fondo);
    color: var(--naranja-humanizar);
}

/* LAYOUT PRINCIPAL */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

.content {
    flex: 7;
}
.content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--naranja-humanizar);
    padding-bottom: 10px;
}

/* SIDEBAR */
.sidebar {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.widget {
    background-color: var(--gris-fondo);
    border-left: 5px solid var(--naranja-humanizar);
    padding: 20px;
    border-radius: 4px;
}
.widget h3 {
    margin-top: 0;
    color: var(--negro-texto);
    font-size: 18px;
}
.widget p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}
.widget .btn {
    display: inline-block;
    margin-top: 10px;
    background-color: var(--naranja-humanizar);
    color: var(--blanco);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}
.widget .btn:hover {
    background-color: #d66f00;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #777;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    .dropdown-menu {
        position: relative;
        box-shadow: none;
    }
}