        /* --- Estilos Generales --- */
        html {
            box-sizing: border-box;
        }
        *, *:before, *:after {
            box-sizing: inherit;
        }
        body {
            margin: 0;
            font-family: 'Roboto', Arial, sans-serif;
            background-color: #f0f2f5;
        }

        .page-container {
            display: grid;
            grid-template-columns: 290px 1fr;
            grid-template-rows: 1fr auto;
            grid-template-areas:
                "sidebar main"
                "footer footer";
            height: 100vh;
            padding: 0;
            gap: 40px;
        }
        
        /* --- Barra Lateral (Sidebar) --- */
        .sidebar {
            grid-area: sidebar;
            background-color: #0a4624;
            color: white;
            display: flex;
            flex-direction: column;
            padding: 25px;
            border-radius: 0; 
        }
        
        /* --- Contenido a la derecha (Header y Main) --- */
        .content-wrapper {
            grid-area: main;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }



        /* --- ESTILOS DE COMPONENTES --- */
        .sidebar-top, .sidebar-middle, .sidebar-bottom {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        .sidebar-middle {
            flex-grow: 1;
            justify-content: center;
        }

        .user-profile {
            display: flex;
            align-items: center;
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 8px;
            padding: 10px;
            font-size: 14px;
        }

        .user-profile i {
            font-size: 22px;
            margin-right: 12px;
            padding: 5px;
            background-color: rgba(0, 0, 0, 0.2);
            border-radius: 50%;
        }
        
        .main-logo {
            width: 180px;
            margin-bottom: 25px;
        }

        .sidebar-title {
            font-size: 36px;
            font-weight: 700;
            text-align: center;
            line-height: 1.2;
            margin: 0;
        }
        
        .top-bar {
            position: relative;
            margin-top: 25px;
            background-color: #0a4624;
            padding: 15px 40px; 
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 0;
            min-height: 70px; 
            }

        .top-bar .logo-ecc {
            position: absolute;
            left: 40px;
            padding: 3px 5px;
            top: 50%; 
            transform: translateY(-50%);
        }

        .top-bar .logo-ecc img {
            max-width: 100px;
            max-height: 100px;
        }


        .top-bar nav a {
            color: #ffffff;
            margin-left: 35px;
            text-decoration: none;
            font-size: 19px;
            font-weight: 500;
            padding-bottom: 5px;
            border-bottom: 3px solid transparent;
        }
        
        .top-bar nav a.active {
            border-bottom: 3px solid #ffffff;
        }
        
        .content-area {
            flex-grow: 1;
        }


        /* --- Pie de Página (Footer) --- */
        .footer {
            grid-area: footer;
            background-color: #0a4624;
            color: white;
            padding: 6px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0;
            width: 100%;
            border-radius: 0; 
        }

        .footer-logos {
            padding: 5px 5px;
            display: flex;
            justify-content: space-between;
            width: 300px;
        }

        .footer-logos img {
            max-height: 60px;
            opacity: 0.8;
        }

        .footer-enlaces a {
            color: white;
            text-decoration: none;
            margin-left: 40px;
            font-size: 14px;
        }